meta: rename watch script to dev in package.json and documentation
This commit is contained in:
parent
992fcdda84
commit
64466943c9
|
@ -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.
|
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.
|
You should try to the use the node version `npm run electron-version` reports, since that is the node version the app runs on.
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ For more information, check [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||||
|
|
||||||
- `npm install`, the postinstall script compiles native node modules for electron
|
- `npm install`, the postinstall script compiles native node modules for electron
|
||||||
- might need to install some build tools depending on your platform
|
- 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`
|
- `npm start`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -22,13 +22,13 @@
|
||||||
"typeorm:migrate:library": "typeorm migration:run -c library",
|
"typeorm:migrate:library": "typeorm migration:run -c library",
|
||||||
"typeorm:migrate:store": "typeorm migration:run -c store",
|
"typeorm:migrate:store": "typeorm migration:run -c store",
|
||||||
"build:webpack": "webpack --config webpack.config.js",
|
"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",
|
"build:index": "node buildfile.js",
|
||||||
"watch:index": "node buildfile.js --watch --dev",
|
"dev:index": "node buildfile.js --watch --dev",
|
||||||
"build:ts": "tsc",
|
"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\"",
|
"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:fast": "mocha --grep \"@(slow|spectron)\" --invert",
|
||||||
"test": "mocha",
|
"test": "mocha",
|
||||||
"coverage:fast": "nyc npm run test:fast",
|
"coverage:fast": "nyc npm run test:fast",
|
||||||
|
|
Loading…
Reference in New Issue