This is a project template for Khaos, a simple project scaffolder.
npm install -g khaos
khaos create vuejs/webpack-boilerplate my-project
# answer prompts...
cd my-project
npm install
npm run dev
-
npm run dev
: Webpack +vue-loader
with hot-reload development setup. -
npm run build
: Production ready build with minification and CSS extraction. -
npm run test
: Unit tests in PhantomJS with Karma + karma-webpack, supporting all webpack loaders and ES2015.
You will likely need to do some tuning to suit your own needs:
-
Install additional libraries that you need, e.g.
vue-router
,vue-resource
,vuex
, etc... -
Use your preferred
.eslintrc
config; -
Add your preferred CSS pre-processor, for example:
npm install less-loader --save-dev
-
In
build/webpack.base.conf.js
, adddevServer.proxy
field to work with an existing backend server. See docs for webpack dev server proxy.
You can fork this repo to create your own boilerplate, and use it with Khaos:
khaos create username/repo my-project