Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Metnew/vue-element-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Vue-Element-Starter

Sponsor

bitHound Overall Score bitHound Dependencies Known Vulnerabilities

Includes:

Out-of-box:

(theme color is purple, but you can use your own color, more info below)

Folder structure:

app
β”œβ”€β”€ build // webpack config files
β”œβ”€β”€ client - Your App
β”‚   └── components - your components
β”‚   β”œβ”€β”€ router - routing
β”‚   β”œβ”€β”€ store - Vuex store
β”‚   β”œβ”€β”€ styles - styles folder with scss vars, mixins, etc.
β”‚   β”œβ”€β”€ views - your pages
β”‚   β”œβ”€β”€ app.js - import dependencies and App component
β”‚   β”œβ”€β”€ index.js - main file
β”‚   β”œβ”€β”€ pwa.js - for PWA apps
β”œβ”€β”€ dist - build.
β”œβ”€β”€ static - static assets, etc.
β”œβ”€β”€ tests - Your tests
β”œβ”€β”€ theme - Element UI generated theme

Template built based on Vuepack bolirplate

To start:

 git clone https://github.com/Metnew/vue-element-starter.git vue-project  
 cd vue-project && rm -rf .git
 npm install
 npm run generate_default_styles # run this command to generate default_styles for Element-theme

Element-theme generates default styles. Just change primary-color in ./client/element-variables.css and run:

 npm run generate_theme

Now app is ready and you can run it with:

 npm run dev

Make production build:

 npm run build

Also

PRs, issues, questions, <something-another> are always welcome.
Feel free to contact me (or add new issue).

Author

Vladimir Metnew vladimirmetnew@gmail.com

LICENSE

MIT