620b4f3ddb1a0c1d4402a78693b7e9426dd7924d
nw-vue-cli-example
NW.js + Vue-CLI 3 example
- Vue
- Vue-DevTools
- Babel
- ESLint
- Jest
- Nightwatch (not working)
Running Locally for development
npm installnpm start- An empty window will pop up while Webpack warm ups
- Once Webpack is running, refresh the window and you're golden
Building for distribution
npm run build:cleanwill delete your./distand./dist-vuefoldersnpm run build:vuewill build just your Vue app for distribution (./dist-vue)npm run build:nwwill build just your NW.js app (./dist)npm run buildis your all-in-one command. It will clean out the old dist folders and build your Vue and NW.js app
IMPORTANT NOTE ABOUT BUILDS!!!
They take a long time. If you do npm run build expect it to take 10-15 minutes. This can be adjusted by changing the build params in the package.json. The more platforms and build types, the longer it takes.
Automated quality enforcment
- Linting:
npm run lint- Uses rules in./eslint.json - Unit tests:
npm run test:unit- Jest. - End-to-end:
npm run test:e2e- Accepting PR to make tests run in NW.js. - Nightwatch.
Customize configuration
Description
freecodecamp.com Gwen Faraday: Live Coding Project: Create an Hour Tracking App using Vue.js
813 KiB
0 Stars
1 Watchers
0 Forks
Languages
Vue
54.3%
JavaScript
43.8%
HTML
1.9%