From 236cad4df07007793396351f76fc03a12ada72b5 Mon Sep 17 00:00:00 2001 From: Inga Date: Wed, 20 Nov 2024 13:16:54 +0000 Subject: [PATCH] fixed npm commands --- README.md | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0318b13..c5ce98f 100644 --- a/README.md +++ b/README.md @@ -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.) diff --git a/package.json b/package.json index 0c41a51..0c4f243 100644 --- a/package.json +++ b/package.json @@ -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",