使用esajs3.0组织构建的vue2.0项目,结构如下:
├───modules
│ ├───seajs
│ │ sea.js
│ │ seajs-text.js
│ │
│ └───vuejs
│ vue-resource.js
│ vue-router.js
│ vue.js
├───static
│ ├───css
│ │ app.css
│ │
│ ├───images
│ └───js
├───views
│ ├───components
│ │ footer.js
│ │ footer.tpl
│ │ header.js
│ │ header.tpl
│ home.js
│ home.tpl
│ login.js
│ login.tpl
│ app.js
│ config.js
│ index.html
│ package.json
Run:
# npm install
# npm start
# http://localhost:8000