To help eliminate redundant tasks around the development process, please take note of some of the NPM scripts available to you. The following commands should be ran from your project's root directory.
Build your app for production and package. More info can be found in the Building your app section.
Run app in development.
Lint all your app/src
's JS & Vue component files.
Lint all your app/src
's JS & Vue component files and attempt to fix issues.
Linting errors found within Vue component files cannot be automatically corrected. This is a architectural issue with eslint
's plugin system. More information.
Run both npm run pack:main
& npm run pack:renderer
. Although these commands are available, there may not be many cases where it is need as npm run build
will do this before hand.
Run webpack to bundle main
process source code.
Run webpack to bundle renderer
process source code.
Run unit tests with Karma + Jasmine. More information on Unit testing.
Run end-to-end tests with Spectron + Mocha. More information on End-to-end testing.
Runs both npm run unit
& npm run e2e
. More information on Testing.