A yeoman generator for vue2 app with vue-router2/vuex2/vue-resource/mint-ui/mockjs.
First, install generator-vue2:
npm install -g generator-vue2Then create a new folder and cd into it
yo vue2Now you`ve got a new seed project!
You can add a new view with
yo vue2:viewThen you have a folder under views folder, named with [specifiedViewName], and there you can also get other related things, like component folder, vuex moudle folder. Besides, the route config has already been generated, without manual operation.
You can also get a component with
yo vue2:componentAnd you need to specify a folder where you want to place your new component.
Now, start your coding!