meta: rename watch script to dev in package.json and documentation

This commit is contained in:
Xymorot 2020-10-31 21:47:18 +01:00
parent 992fcdda84
commit 64466943c9
3 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ Run `npm install` in a terminal window opened to the cloned repository, all depe
Then run `npm run build` to build the app, and `npm start` to run it.
The `npm run watch` script watches files and rebuilds the app on changes.
The `npm run dev` script watches files and rebuilds the app on changes.
You should try to the use the node version `npm run electron-version` reports, since that is the node version the app runs on.

View File

@ -19,7 +19,7 @@ For more information, check [CONTRIBUTING.md](CONTRIBUTING.md).
- `npm install`, the postinstall script compiles native node modules for electron
- might need to install some build tools depending on your platform
- `npm run watch` for code transpilation (starts watchers)
- `npm run dev` for code transpilation (starts watchers)
- `npm start`
## Usage

View File

@ -22,13 +22,13 @@
"typeorm:migrate:library": "typeorm migration:run -c library",
"typeorm:migrate:store": "typeorm migration:run -c store",
"build:webpack": "webpack --config webpack.config.js",
"watch:webpack": "webpack --config webpack.config.js --mode development -w",
"dev:webpack": "webpack --config webpack.config.js --mode development -w",
"build:index": "node buildfile.js",
"watch:index": "node buildfile.js --watch --dev",
"dev:index": "node buildfile.js --watch --dev",
"build:ts": "tsc",
"watch:ts": "tsc -w --pretty --preserveWatchOutput",
"dev:ts": "tsc -w --pretty --preserveWatchOutput",
"build": "concurrently -c green,yellow,cyan -n webpack,index,typescript \"npm run build:webpack\" \"npm run build:index\" \"npm run build:ts\"",
"watch": "concurrently -c green,yellow,cyan -n webpack,index,typescript \"npm run watch:webpack\" \"npm run watch:index\" \"npm run watch:ts\"",
"dev": "concurrently -c green,yellow,cyan -n webpack,index,typescript \"npm run dev:webpack\" \"npm run dev:index\" \"npm run dev:ts\"",
"test:fast": "mocha --grep \"@(slow|spectron)\" --invert",
"test": "mocha",
"coverage:fast": "nyc npm run test:fast",