Vue + Vuex + Vue Router + Vue Impression + Webpack 3
First, install Yeoman and generator-vue-impression:
yarn global add yo generator-vue-impressionThen generate your new project:
yo vue-impressionOR upgrade existed project:
cd YOUR_PROJECT_FOLDER
yo vue-impression --upgradeFirst, run following command in your project folder:
yarn startThen, open your browser with http://localhost:8080.
First, add your Qiniu key to package.json:
{
"deploy": {
"ACCESS_KEY": "",
"SECRET_KEY": ""
}
}Then run following command to release patch version:
npm version patch -m 'Release version %s'OR release minor version:
npm version minor -m 'Release version %s'-
Proxy API request
First, update proxy table in
package.json. For example:{ "proxy": { "/api": { "target": "http://localhost:3000", "changeOrigin": true } } }Then restart development server:
yarn start
-
Folloing standard of style-guide
-
Divide store by using Vuex#Module
-
Update nested state by using Ramda#assocPath
-
Write styles with CSS Modules
MIT