mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: migrate (some) curriculum files to TypeScript (#62228)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0d44fff1ff
commit
4a635c1b32
+10
-10
@@ -19,9 +19,9 @@
|
||||
"author": "freeCodeCamp <team@freecodecamp.org>",
|
||||
"main": "none",
|
||||
"scripts": {
|
||||
"audit-challenges": "pnpm run create:shared && tsx tools/challenge-auditor/index.ts",
|
||||
"audit-challenges": "pnpm run compile:ts && tsx tools/challenge-auditor/index.ts",
|
||||
"analyze-bundle": "webpack-bundle-analyzer",
|
||||
"prebuild": "npm-run-all create:shared",
|
||||
"prebuild": "npm-run-all compile:ts",
|
||||
"build": "npm-run-all -p build:*",
|
||||
"build-workers": "cd ./client && pnpm run prebuild",
|
||||
"build:client": "cd ./client && pnpm run build",
|
||||
@@ -34,13 +34,13 @@
|
||||
"clean-and-develop": "pnpm run clean && pnpm install && pnpm run develop",
|
||||
"clean:api": "cd api && pnpm clean",
|
||||
"clean:client": "cd ./client && pnpm run clean",
|
||||
"clean:curriculum": "rm -rf ./shared/config/curriculum.json",
|
||||
"clean:curriculum": "rm -rf ./shared-dist/config/curriculum.json",
|
||||
"clean:packages": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
|
||||
"create:shared": "tsc -p shared",
|
||||
"compile:ts": "tsc --build --clean curriculum && tsc --build curriculum",
|
||||
"create-new-project": "cd ./tools/challenge-helper-scripts/ && pnpm run create-project",
|
||||
"create-new-language-block": "cd ./tools/challenge-helper-scripts/ && pnpm run create-language-block",
|
||||
"create-new-quiz": "cd ./tools/challenge-helper-scripts/ && pnpm run create-quiz",
|
||||
"predevelop": "npm-run-all -p create:shared -s build:curriculum",
|
||||
"predevelop": "npm-run-all -p compile:ts -s build:curriculum",
|
||||
"develop": "npm-run-all -p develop:*",
|
||||
"develop:client": "cd ./client && pnpm run develop",
|
||||
"develop:api": "cd ./api && pnpm run develop",
|
||||
@@ -51,13 +51,13 @@
|
||||
"knip": "npx -y knip@5 --include files",
|
||||
"knip:all": "npx -y knip@5 ",
|
||||
"prelint": "pnpm run -F=client predevelop",
|
||||
"lint": "NODE_OPTIONS=\"--max-old-space-size=7168\" npm-run-all create:shared -p lint:*",
|
||||
"lint": "NODE_OPTIONS=\"--max-old-space-size=7168\" npm-run-all compile:ts -p lint:*",
|
||||
"lint:challenges": "cd ./curriculum && pnpm run lint",
|
||||
"lint:js": "eslint --cache --max-warnings 0 .",
|
||||
"lint:ts": "tsc && tsc -p shared && tsc -p api && tsc -p client",
|
||||
"lint:ts": "tsc && tsc -p shared && tsc -p api && tsc -p client && tsc -p curriculum",
|
||||
"lint:prettier": "prettier --list-different .",
|
||||
"lint:css": "stylelint '**/*.css'",
|
||||
"preseed": "npm-run-all create:shared",
|
||||
"preseed": "npm-run-all compile:ts",
|
||||
"playwright:install-build-tools": "npx playwright install --with-deps",
|
||||
"rename-challenges": "tsx tools/challenge-helper-scripts/rename-challenge-files.ts",
|
||||
"seed": "pnpm seed:surveys && pnpm seed:exams && DEBUG=fcc:* node ./tools/scripts/seed/seed-demo-user",
|
||||
@@ -69,8 +69,8 @@
|
||||
"seed:ms-username": "DEBUG=fcc:* node ./tools/scripts/seed/seed-ms-username",
|
||||
"serve:client": "cd ./client && pnpm run serve",
|
||||
"serve:client-ci": "cd ./client && pnpm run serve-ci",
|
||||
"start": "npm-run-all create:shared -p develop:server serve:client",
|
||||
"test": "NODE_OPTIONS='--max-old-space-size=7168' run-s create:shared build:curriculum build-workers test:**",
|
||||
"start": "npm-run-all compile:ts -p develop:server serve:client",
|
||||
"test": "NODE_OPTIONS='--max-old-space-size=7168' run-s compile:ts build:curriculum build-workers test:**",
|
||||
"test:api": "cd api && pnpm test",
|
||||
"test:tools:challenge-helper-scripts": "cd ./tools/challenge-helper-scripts && pnpm test run",
|
||||
"test:tools:scripts-build": "cd ./tools/scripts/build && pnpm test run",
|
||||
|
||||
Reference in New Issue
Block a user