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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-vsc

v1.0.4

Published

vue project build tools

Downloads

24

Readme

vue-vsc

A vue.js project tool that customizes the project template 一个自定义了项目模板的vue.js项目工具

项目采用的vue,vue-router,axios版本
"axios": "^0.18.0",
"vue": "^2.5.2",
"vue-router": "^3.0.1"

本工具只是用来构建一套自己常用的vue项目的模板,并无其他功能,所以,进行以下几步操作后,和vue-cli的用法就完全一致了:

npm install -g vue-vsc
$ vsc <project-name>
$ cd <project-name>
$ npm install

Project structure(项目结构)

---my-project
   --build
     --build.js
     --check-versions.js
     --utils.js
     --vue-loader.conf.js
     --webpack.base.conf.js
     --webpack.dev.conf.js
     --webpack.prod.conf.js
   --config
     --dev.env.js  // 开发环境变量
     --index.js  
     --prod.env.js  // 生产环境变量
     --test.env.js  // 测试环境变量
   --src
     --api // api请求文件夹
       --axios.js 
     --common //放一些公共的css、js、图片文件等
       --css
       --image
       --js
     --components //组件
     --router //路由
       --index.js
     --utils // 公共工具方法
       --utils.js
     --App.vue
     --main.js
   --static
     --.gitkeep
   --.babelrc
   --.babelrc
   --.editorconfig
   --.gitignore
   --.postcssrc.js
   --index.html // 本文件中添加了针对移动端js+rem布局的代码,用不到可自行删除
   --package.json
   --package-lock.json
   --README.md

Installation(安装)

 npm install -g vue-vsc

Usage(用法)

 $ vsc <project-name>
 $ cd <project-name>
 $ npm install

Example(例子):

$ vsc my-project
$ cd my-project
$ npm install

Others(其他说明)

Other usage is the same as vue-cli usage when you install this project
项目install下来后,其他用法和vue-cli的用法一样
特别说明:
在项目中运行如下命令
 npm run  dev // 开发环境
 npm run  test // 测试环境打包
 npm run  build //生产环境打包