diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a47985a..fb13c7a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/README.md b/README.md index 17ded97..5a5bc1d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index f621549..8e8826c 100644 --- a/package.json +++ b/package.json @@ -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",