├── .eslintignore ├── .gitattributes ├── .yo-rc.json ├── .gitignore ├── generators └── app │ ├── templates │ ├── _gitignore │ ├── _babelrc │ ├── _styles.css │ ├── _editorconfig │ ├── _main.js │ ├── _index.html │ ├── _webpack.config.js │ ├── _app.vue │ ├── _package.json │ ├── _webpack.production.js │ └── _eslintrc │ └── index.js ├── .travis.yml ├── .editorconfig ├── README.md ├── test └── test-app.js ├── package.json ├── LICENSE.md └── .eslintrc /.eslintignore: -------------------------------------------------------------------------------- 1 | app/templates/*.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.yo-rc.json: -------------------------------------------------------------------------------- 1 | { 2 | "generator-generator": {} 3 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | *.sublime-project 4 | *.sublime-workspace -------------------------------------------------------------------------------- /generators/app/templates/_gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | .yo-rc.json 4 | *.log -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - 'iojs' 5 | - '0.12' 6 | - '0.10' 7 | -------------------------------------------------------------------------------- /generators/app/templates/_babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['es2015'], 3 | plugins: ['transform-runtime'] 4 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /generators/app/templates/_styles.css: -------------------------------------------------------------------------------- 1 | .browsehappy { 2 | margin: 0.2em 0; 3 | background: #ccc; 4 | color: #000; 5 | padding: 0.2em 0; 6 | } 7 | 8 | /* Space out content a bit */ 9 | body { 10 | padding-top: 20px; 11 | padding-bottom: 20px; 12 | } 13 | -------------------------------------------------------------------------------- /generators/app/templates/_editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **This repo is no longer maintained, please use vue-cli instead** 2 | 3 | A simple Vue + Webpack yeoman generator 4 | 5 | **NOTE:** It only supports Vue 1.0.x now 6 | 7 | ## Installation && Usage 8 | ``` 9 | $ npm install -g generator-vuejs 10 | $ mkdir myproject && cd myproject 11 | $ yo vuejs 12 | ``` 13 | 14 | ## Command 15 | ``` 16 | npm run dev 17 | npm run build 18 | ``` 19 | ## License 20 | 21 | MIT 22 | -------------------------------------------------------------------------------- /generators/app/templates/_main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import app from './app.vue'<% if (includeRouter) { %> 3 | import VueRouter from 'vue-router'<% } %> 4 | <% if (includeVuestrap) { %> 5 | import 'bootstrap/dist/css/bootstrap.css'<% } %> 6 | import './styles.css' 7 | 8 | Vue.config.debug = process.env.NODE_ENV !== 'production' 9 | <% if (includeRouter) {%> 10 | Vue.use(VueRouter) 11 | 12 | const router = new VueRouter() 13 | const App = Vue.extend(app) 14 | 15 | router.start(App, 'body')<% } else { %> 16 | const App = new Vue({ 17 | el: 'body', 18 | components: { 19 | app 20 | } 21 | })<% } %> 22 | -------------------------------------------------------------------------------- /generators/app/templates/_index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |