前端开发脚手架工具
接入了Vue-cli脚手架,可以生成基于webpack的Vue模版
npm install knit-cli -g
Usage: knit <command> [options]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
list List all the templates
init Generate a new project from a template
$ knit list
Please select a development template:
★ simple -- gulp + browser-sync + jade + less + es5
★ vue -- A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
★ vue-pwa -- PWA template for vue-cli based on the webpack template
$ knit init
Template name: my-tpl-name
Project name: new-project-name