docs/en/npm_scripts.md
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. And of course, you can run any of the below commands using yarn run <command>.
npm run buildBuild your app for production and package. More info can be found in the Building Your App section.
npm run devRun app in development.
You can also pass command line paramaters to the application with:
npm run dev --arg1=val1 --arg2
npm run lintLint all your src/'s and test/'s JS & Vue component files.
npm run lint:fixLint all your src/'s and test/'s JS & Vue component files and attempt to fix issues.
npm run packRun both npm run pack:main & npm run pack:renderer. Although these commands are available, there are not many cases where you will need to manually do this as npm run build will handle this step.
npm run pack:mainRun webpack to bundle main process source code.
npm run pack:rendererRun webpack to bundle renderer process source code.
npm run unitRun unit tests with Karma + Jasmine. More information on Unit Testing.
npm run e2eRun end-to-end tests with Spectron + Mocha. More information on End-to-end Testing.
npm testRuns both npm run unit & npm run e2e. More information on Testing.