Vue CLI 3 scalfold plugin for klook typescript spa ( node v8+ )
- axios wrapper
- auto online deployment
- i18n integrated
- svg sprite
- basic utils and css
- ts store prototype
You need Vue CLI 3 installed globally as a pre-requisite. If you don't have it, please run
npm install -g @vue/cli
use vue-cli3 choose feature : babel ,typescript , router, vuex, css-Preprocessor( sass ):
vue create ${project_git_name}
vue add klkspa
add project git name so it can auto-generate deploy.sh for your online deployment,use
cd /srv/builds/{project_git_name} && sh deploy.sh origin/master
- theme color change modify @/assets/scss/variable.scss
- add node to tsconfig.json types:
"types": [
"webpack-env",
"node"
],