From 0dafa6dbbc42d4552cc0f85463278d3e34d6ccb1 Mon Sep 17 00:00:00 2001 From: Jonathan Bell Date: Sun, 25 Feb 2024 08:53:47 -0500 Subject: [PATCH] Update readme and npm scripts --- README.md | 2 +- frontend/package-lock.json | 13 +++++++++++++ frontend/package.json | 5 +++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e12d799c5..9643fb3da 100644 --- a/README.md +++ b/README.md @@ -46,5 +46,5 @@ automatically connect to the town with the friendly name "DEBUG_TOWN" (creating ### Running the frontend -In the `frontend` directory, run `npm run dev` (again, you'll need to run `npm install` the very first time). After several moments (or minutes, depending on the speed of your machine), a browser will open with the frontend running locally. +In the `frontend` directory, run `npm start` (again, you'll need to run `npm install` the very first time). After several moments (or minutes, depending on the speed of your machine), a browser will open with the frontend running locally. The frontend will automatically re-compile and reload in your browser if you change any files in the `frontend/src` directory. \ No newline at end of file diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 57266cf62..3efd13867 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -66,6 +66,7 @@ "@stryker-mutator/typescript-checker": "^6.1.2", "@testing-library/react": "^12.1.0", "@testing-library/user-event": "^14.2.1", + "@types/assert": "^1.5.10", "@types/linkify-it": "^3.0.2", "@typescript-eslint/eslint-plugin": "^5.30.6", "eslint-config-airbnb-typescript": "^17.0.0", @@ -6261,6 +6262,12 @@ "integrity": "sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==", "dev": true }, + "node_modules/@types/assert": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/@types/assert/-/assert-1.5.10.tgz", + "integrity": "sha512-qEO+AUgYab7GVbeDDgUNCU3o0aZUoIMpNAe+w5LDbRxfxQX7vQAdDgwj1AroX+i8KaV56FWg0srXlSZROnsrIQ==", + "dev": true + }, "node_modules/@types/babel__core": { "version": "7.20.1", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", @@ -24763,6 +24770,12 @@ "integrity": "sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==", "dev": true }, + "@types/assert": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/@types/assert/-/assert-1.5.10.tgz", + "integrity": "sha512-qEO+AUgYab7GVbeDDgUNCU3o0aZUoIMpNAe+w5LDbRxfxQX7vQAdDgwj1AroX+i8KaV56FWg0srXlSZROnsrIQ==", + "dev": true + }, "@types/babel__core": { "version": "7.20.1", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", diff --git a/frontend/package.json b/frontend/package.json index caf6ed810..bd32179a9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -58,10 +58,10 @@ }, "scripts": { "prestart": "npm run client", - "start": "next start", + "start": "next dev", "build": "next build", "export": "next export", - "dev": "next dev", + "serve": "next start", "test": "cross-env DEBUG_PRINT_LIMIT=0 jest", "test-watch": "jest --watch", "eject": "react-scripts eject", @@ -92,6 +92,7 @@ "@stryker-mutator/typescript-checker": "^6.1.2", "@testing-library/react": "^12.1.0", "@testing-library/user-event": "^14.2.1", + "@types/assert": "^1.5.10", "@types/linkify-it": "^3.0.2", "@typescript-eslint/eslint-plugin": "^5.30.6", "eslint-config-airbnb-typescript": "^17.0.0",