Skip to content
forked from vuejs/vue-cli

Simple CLI for scaffolding Vue.js projects

License

Notifications You must be signed in to change notification settings

danqihao/vue-cli

 
 

Repository files navigation

demo: https://taylorchen709.github.io/vue-admin/

开始

This is a project template for vue-cli

关于代码风格

cnpm i -g eslint cnpm i -g eslint-plugin-vue

字符串使用单引号,缩进使用一个tab。

# install dependencies
npm install

# serve with hot reload at localhost:8081
npm run dev

# build for production with minification
npm run build

文件结构

  • build - webpack config files
  • config - webpack config files
  • dist - build
  • src -your app
    • api
    • assets
    • common
    • components - your vue components
    • mock
    • styles
    • views - your pages
    • vuex
    • App.vue
    • main.js - main file
    • routes.js
  • static - static assets

Theme

You can change theme by

  1. Generate theme packages by https://elementui.github.io/theme-preview/#/
  2. Put theme packages in src/assets/theme/
  3. Edit src/main.js
   import 'element-ui/lib/theme-default/index.css'
   to
   import './assets/theme/your-theme/index.css'
  1. Edit src/styles/vars.scss

theme-blue theme-green

Browser support

Modern browsers and IE 10+.

License

MIT

About

Simple CLI for scaffolding Vue.js projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 85.1%
  • JavaScript 14.1%
  • Other 0.8%