npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@vue-framework/vue-framework

v0.3.1

Published

vue framework

Readme

vue-framework

使用

在项目中引入 vue-framework 及相关模板、插件,例如:

npm install --save-dev @vue-framework/vue-framework @vue-framework/template-pc-inner-less @vue-framework/plugin-hmr

在项目根目录中新增 vue-framework.config.js 配置文件:

module.exports = {
  template: '@vue-framework/template-pc-inner-less',
  plugins: [
    '@vue-framework/plugin-hmr'
  ]
}

在项目的 package.json 中配置指令,如:

{
  "scripts": {
    "dev": "vue-framework dev",
    "build": "vue-framework build"
  }
}

项目开发中,在项目根目录下执行:

npm run dev

则进入开发模式,监听代码变更并自动进行编译并推送变更到已打开的页面。

项目部署前,执行:

npm run build

则将代码进行打包。

可以参照 example/pc-inner-lessexample/plugin 两个 DEMO 项目。

开发说明

** 调试 **

本地调试模块:

  • 待调试模块目录下,执行“npm link“,将模块发布为本机全局模块(链接形式)
  • 使用待调试模块的应用目录下,执行“npm link @vue-framework/xxx”以创建到本机全局目录下该模块的链接

也可以简化在使用待调试的应用目录下执行“npm link ../../xxx”的方式,原理也是先创建全局模块再引用。

注意:待调试模块如果使用了额外的依赖模块,在应用目录下解析依赖的模块可能会有问题。这种情况暂且只能放弃调试,改为发布 alpha 版本用于测试:

# 待调试模块目录
npm publish --tag alpha --access public
# 应用目录
npm install @vue-framework/xxx@alpha

** 发布 **

发布带有 scope 的模块:

npm publish --access public

@vue-framework 对应的发布账号包括“koa-framework-admin”,需要先登录改账号(npm login --scope=@vue-framework)再发布。