Prechádzať zdrojové kódy

Rename serve:live npm command to devserver

Danilo Bargen 7 rokov pred
rodič
commit
95aba1c31c
2 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 3 3
      README.md
  2. 2 2
      package.json

+ 3 - 3
README.md

@@ -35,11 +35,11 @@ Install development dependencies:
 
 Run the dev server:
 
-    npm run serve:live
+    npm run devserver
 
 Then open the URL in your browser:
 
-    chromium http://localhost:9966
+    firefox http://localhost:9966
 
 *(Note that this setup should not be used in production. To run Threema
 Web on a server, please follow the instructions at
@@ -51,7 +51,7 @@ Web on a server, please follow the instructions at
 To run tests:
 
     npm run build && npm run build:tests
-    chromium tests/testsuite.html
+    firefox tests/testsuite.html
 
 To run linting checks:
 

+ 2 - 2
package.json

@@ -9,8 +9,8 @@
     "build:css:watch": "node-sass -w -r --source-map true --source-map-embed true -o public/css/ --output-style compressed src/sass/",
     "build:tests": "browserify -p tsify tests/ts/main.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -o dist/ts-tests.js",
     "dist": "npm run build && echo \"\" && node dist/build-package.js",
-    "serve": "npm run build:css && budo src/app.ts:dist/app.js -- -d -p tsify -t [ babelify --presets [ es2015 ] --extensions .ts ]",
-    "serve:live": "npm run build:css && concurrently --kill-others --names \"css,server\" -p name \"npm run build:css:watch\" \"budo src/app.ts:dist/app.js -d . -d public -d src --live -- -d -p tsify -t [ babelify --presets [ es2015 ] --extensions .ts ]\"",
+    "serve:live": "echo 'NOTE: serve:live command has been renamed to devserver'",
+    "devserver": "npm run build:css && concurrently --kill-others --names \"css,server\" -p name \"npm run build:css:watch\" \"budo src/app.ts:dist/app.js -d . -d public -d src --live -- -d -p tsify -t [ babelify --presets [ es2015 ] --extensions .ts ]\"",
     "test": "npm run build:tests && karma start --single-run --log-level=debug --colors",
     "lint": "tslint -c tslint.json --project tsconfig.json --exclude \"**/src/config.ts\"",
     "clean": "rm -rf js/ build/ dist/app*"