From e75ca53f5f4e6a2febbabd91334cdb382a3bf80d Mon Sep 17 00:00:00 2001 From: Francesc Rosas Date: Fri, 6 Mar 2020 09:27:37 +0000 Subject: [PATCH] =?UTF-8?q?npm=20run=20watch=20=E2=86=92=20npm=20run=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 37f1bedf..4f410e0b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ```bash $ npm i -$ npm run watch +$ npm run dev ``` Open http://localhost:8080 @@ -14,5 +14,5 @@ Open http://localhost:8080 In the browser console: ```js -navigator.serviceWorker.controller.postMessage('toggleDebugging') -``` \ No newline at end of file +navigator.serviceWorker.controller.postMessage("toggleDebugging"); +``` diff --git a/package.json b/package.json index a6083c74..67e5c9ac 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "lint-typescript": "tsc", "test": "concurrently -n lint,unit-test,build \"npm run lint\" \"npm run test-unit\" \"npm run build\"", "test-unit": "npm run babel-node -- node_modules/.bin/mocha 'src/**/*.test.ts'", - "watch": "npm_config_loglevel=silent concurrently -k -n webpack-dev-server,lint,test-unit \"npm run webpack-dev-server\" \"npm run watch-lint\" \"npm run watch-test-unit\"", + "dev": "npm_config_loglevel=silent concurrently -k -n webpack-dev-server,lint,test-unit \"npm run webpack-dev-server\" \"npm run watch-lint\" \"npm run watch-test-unit\"", "watch-lint": "concurrently -k -n typescript,eslint \"npm run watch-lint-typescript\" \"npm run watch-lint-eslint\"", "watch-lint-eslint": "onchange -ki --exclude-path .gitignore '**/*.{js,ts,tsx}' -- npm run lint-eslint -- --fix", "watch-lint-typescript": "npm run lint-typescript -- --watch --preserveWatchOutput --pretty",