fix: update scripts + remove unused (#49740)

* chore: remove unused scripts

* fix: update scripts for pnpm + typescript

* fix(scripts): use localhost for start-test

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

---------

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
This commit is contained in:
Oliver Eyton-Williams
2023-03-20 09:58:21 +01:00
committed by GitHub
parent 830763da05
commit 65a7b0f9ff

View File

@@ -40,10 +40,8 @@
"create:utils": "tsc -p utils",
"precypress": "node ./cypress-install.js",
"cypress": "cypress",
"cypress:dev:run": "pnpm run cypress -- run --spec cypress/e2e/default/**/*.js",
"cypress:dev:watch": "pnpm run cypress -- open",
"cypress:prd:run": "pnpm run cypress -- run --spec cypress/e2e/default/**/*.js",
"cypress:prd:watch": "pnpm run cypress -- open",
"cypress:dev:run": "pnpm run cypress run --spec cypress/e2e/default/**/*.{t,j}s",
"cypress:dev:watch": "pnpm run cypress open",
"cypress:install": "cypress install && echo 'for use with ./cypress-install.js'",
"cypress:install-build-tools": "sh ./cypress-install.sh",
"predevelop": "npm-run-all create:*",
@@ -52,10 +50,10 @@
"develop:server": "pnpm run predevelop && cd ./api-server && pnpm run develop",
"docs:serve": "docsify serve ./docs -o --port 3400",
"e2e": "pnpm run e2e:dev:run",
"e2e:dev:run": "start-test develop ':3000/status/ping|8000' cypress:dev:run",
"e2e:dev:watch": "start-test develop ':3000/status/ping|8000' cypress:dev:watch",
"e2e:prd:run": "pnpm run build && start-test ':3000/status/ping|8000' cypress:dev:run",
"e2e:prd:watch": "pnpm run build && start-test ':3000/status/ping|8000' cypress:dev:watch",
"e2e:dev:run": "start-test develop 'localhost:3000/status/ping|localhost:8000' cypress:dev:run",
"e2e:dev:watch": "start-test develop 'localhost:3000/status/ping|localhost:8000' cypress:dev:watch",
"e2e:prd:run": "pnpm run build && start-test 'localhost:3000/status/ping|localhost:8000' cypress:dev:run",
"e2e:prd:watch": "pnpm run build && start-test 'localhost:3000/status/ping|localhost:8000' cypress:dev:watch",
"download-trending": "ts-node ./tools/scripts/build/download-trending.ts",
"ensure-env": "cross-env DEBUG=fcc:* ts-node ./tools/scripts/build/ensure-env.ts",
"format": "run-s format:eslint format:prettier",
@@ -64,8 +62,6 @@
"format:curriculum:prettier": "prettier --write ./curriculum",
"format:eslint": "eslint . --fix",
"format:prettier": "prettier --write .",
"hooks:install": "node node_modules/husky/husky.js install",
"hooks:uninstall": "node node_modules/husky/husky.js uninstall",
"knip": "pnpm dlx knip --include files",
"knip:all": "pnpm dlx knip",
"prelint": "pnpm run -F=client predevelop",