Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.56 KB

npm_scripts.md

File metadata and controls

36 lines (24 loc) · 1.56 KB

NPM Scripts

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.

npm run build

Build your app for production and package. More info can be found in the Building your app section.

npm run dev

Run app in development.

npm run lint

Lint all your app/src's JS & Vue component files.

npm run lint:fix

Lint all your app/src's JS & Vue component files and attempt to fix issues.

NOTE

Linting errors found within Vue component files cannot be automatically corrected. This is a architectural issue with eslint's plugin system. More information.

npm run pack

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.

npm run pack:main

Run webpack to bundle main process source code.

npm run pack:renderer

Run webpack to bundle renderer process source code.

npm run unit

Run unit tests with Karma + Jasmine. More information on Unit testing.

npm run e2e

Run end-to-end tests with Spectron + Mocha. More information on End-to-end testing.

npm test

Runs both npm run unit & npm run e2e. More information on Testing.