fixed npm commands

feature/modern-browsers
Inga 🏳‍🌈 1 month ago
parent 4ba2c894ca
commit 236cad4df0
  1. 2
      README.md
  2. 4
      package.json

@ -53,7 +53,7 @@ Source: https://www.programmfabrik.de/en/assignment-frontend-backend-developer-j
## Usage
* `npm ci` to install dependencies;
* `npm check-and-run` to run linting, typechecking, tests, build everything and serve it from `PORT` environment variable or from port 3000.
* `npm run check-and-start` to run linting, typechecking, tests, build everything and serve it from `PORT` environment variable or from port 3000.
(Yes, strictly speaking it's not just a static webpage with a bunch of client-side scripts.
It's better. See "User interface" section in "Design" for more details.)

@ -6,8 +6,8 @@
"build:clean": "rimraf dist",
"build:only": "tsc --project tsconfig.build.json",
"build:static": "copyfiles -u 1 \"src/frontend/static/**/*\" dist",
"build-and-run": "npm run build && npm run start",
"check-and-run": "npm run prerelease && npm run build-and-run",
"build-and-start": "npm run build && npm run start",
"check-and-start": "npm run prerelease && npm run build-and-start",
"lint": "eslint src",
"prerelease": "npm run lint && npm run typecheck && npm run test",
"start": "node ./dist/server.js",

Loading…
Cancel
Save