Boilerplate for a simple Desktop App made with Vue
Boilerplate for a simple Desktop App made with Vue.
What is this
This is a boilerplate for a simple desktop app. It comes with tips about common tasks for a desktop app.
Should I use this
Probably not? It's more of a proof of concept to see if you run all of the features of a Vue app without the need for a bundler, since the process of bundling is pretty pointless for a desktop app (no point in shaving off 25KB when you are shipping 100MB).
Still though, there are a lot of good tips for NW.js apps in there in general, that are applicable to any desktop app, whether it is using Vue & NW.js or React & Electron.
The following are already set up:
- Download and install Node.js
npm run lintwill lint your
.vuefiles according to the rules in
npm run fixthis will auto-fix any linting issues that
npm run lintfinds (not everything can be auto fixed)
npm run sasswill start watching for changes in the sass folder and process the changes to the css folder.
npm run sasslintwill lint your
npm run sassfixwill attempt to auto-fix Sass linting issues, however it may take several runs and not everything can be auto fixed
To do a build:
npm run build
All settings regarding the build are handled in the
If you want Vue-DevTools to be accessible in the Chromium DevTools in your app, you cannot use the minified version of Vue.js (use
All other instructions and details are inside the app.
TO DO List:
- Add in Vue-Test-Utils