2018-09-05 12:30:54 +00:00
|
|
|
{
|
|
|
|
"name": "@freecodecamp/freecodecamp",
|
|
|
|
"version": "0.0.1",
|
2021-03-27 14:46:20 +00:00
|
|
|
"description": "The freeCodeCamp.org open-source codebase and curriculum",
|
|
|
|
"license": "BSD-3-Clause",
|
|
|
|
"private": true,
|
|
|
|
"engines": {
|
|
|
|
"node": ">= 14.0.0",
|
|
|
|
"npm": "^6.14.12"
|
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git"
|
|
|
|
},
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/freeCodeCamp/freeCodeCamp/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
|
|
|
|
"author": "freeCodeCamp <team@freecodecamp.org>",
|
|
|
|
"main": "none",
|
2018-09-06 13:58:51 +00:00
|
|
|
"scripts": {
|
2021-05-05 14:32:22 +00:00
|
|
|
"analyze-bundle": "webpack-bundle-analyzer",
|
2021-05-07 18:18:11 +00:00
|
|
|
"audit": "npm audit & npx lerna exec --no-bail --concurrency 1 --stream -- npm audit",
|
|
|
|
"audit:fix": "npm audit fix & npx lerna exec --no-bail --concurrency 1 --stream -- npm audit fix",
|
2021-03-27 14:46:20 +00:00
|
|
|
"bootstrap": "lerna bootstrap --ci",
|
2021-02-22 08:51:17 +00:00
|
|
|
"prebuild": "npm run ensure-env",
|
|
|
|
"build": "npm-run-all -p build:*",
|
2021-05-05 11:10:48 +00:00
|
|
|
"build-workers": "cd ./client && npm run prebuild",
|
2019-08-15 09:11:29 +00:00
|
|
|
"build:client": "cd ./client && npm run build",
|
2021-02-25 20:02:35 +00:00
|
|
|
"build:curriculum": "cd ./curriculum && npm run build",
|
2021-03-27 14:46:20 +00:00
|
|
|
"build:server": "cd ./api-server && npm run build",
|
2021-02-22 08:51:17 +00:00
|
|
|
"clean": "npm-run-all clean:client clean:server clean:packages clean:root-deps",
|
2019-09-27 07:30:34 +00:00
|
|
|
"clean-and-develop": "npm run clean && npm ci && npm run develop",
|
2020-05-14 13:10:46 +00:00
|
|
|
"clean:client": "cd ./client && npm run clean",
|
2021-02-25 20:02:35 +00:00
|
|
|
"clean:curriculum": "shx rm ./config/curriculum.json",
|
2020-05-14 13:10:46 +00:00
|
|
|
"clean:gatsby-site": "npm run clean:client",
|
2021-03-27 14:46:20 +00:00
|
|
|
"clean:packages": "lerna clean -y",
|
|
|
|
"clean:root-deps": "shx rm -rf node_modules",
|
|
|
|
"clean:server": "shx rm -rf ./api-server/lib",
|
2020-06-09 20:17:13 +00:00
|
|
|
"precypress": "node ./cypress-install.js",
|
2019-10-05 22:38:38 +00:00
|
|
|
"cypress": "cypress",
|
2021-06-14 18:14:43 +00:00
|
|
|
"cypress:dev:run": "npm run cypress -- run",
|
2020-11-20 10:39:34 +00:00
|
|
|
"cypress:dev:watch": "npm run cypress -- open",
|
2021-03-27 14:46:20 +00:00
|
|
|
"cypress:install": "cypress install && echo 'for use with ./cypress-install.js'",
|
|
|
|
"cypress:install-build-tools": "sh ./cypress-install.sh",
|
2020-11-20 10:39:34 +00:00
|
|
|
"cypress:prd:run": "npm run cypress -- run",
|
|
|
|
"cypress:prd:watch": "npm run cypress -- open",
|
2021-02-25 20:02:35 +00:00
|
|
|
"predevelop": "npm run ensure-env",
|
|
|
|
"develop": "npm-run-all build:curriculum -p develop:*",
|
2019-02-08 15:36:40 +00:00
|
|
|
"develop:client": "cd ./client && npm run develop",
|
2019-06-15 14:43:15 +00:00
|
|
|
"develop:server": "cd ./api-server && npm run develop",
|
2020-10-03 23:32:42 +00:00
|
|
|
"docs:serve": "docsify serve ./docs -o --port 3200",
|
2021-03-16 17:07:07 +00:00
|
|
|
"e2e": "npm run e2e:dev:run",
|
2020-06-13 09:24:15 +00:00
|
|
|
"e2e:dev:run": "start-test develop ':3000/status/ping|8000' cypress:dev:run",
|
2021-03-27 14:46:20 +00:00
|
|
|
"e2e:dev:watch": "start-test develop ':3000/status/ping|8000' cypress:dev:watch",
|
2020-06-13 09:24:15 +00:00
|
|
|
"e2e:prd:run": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:run",
|
2021-03-27 14:46:20 +00:00
|
|
|
"e2e:prd:watch": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:watch",
|
|
|
|
"ensure-env": "cross-env DEBUG=fcc:* node ./tools/scripts/build/ensure-env.js",
|
2019-06-24 08:45:38 +00:00
|
|
|
"format": "npm-run-all -p format:*",
|
|
|
|
"format:css": "npm run prettier -- --write",
|
2021-03-27 14:46:20 +00:00
|
|
|
"format:js": "npm run lint:js -- --fix",
|
2019-02-18 23:08:59 +00:00
|
|
|
"hooks:install": "node node_modules/husky/husky.js install",
|
|
|
|
"hooks:uninstall": "node node_modules/husky/husky.js uninstall",
|
2021-02-01 03:55:13 +00:00
|
|
|
"lint": "npm-run-all ensure-env -p lint:*",
|
2019-04-12 14:44:14 +00:00
|
|
|
"lint:challenges": "cd ./curriculum && npm run lint",
|
2019-06-24 08:45:38 +00:00
|
|
|
"lint:css": "npm run prettier -- --check",
|
2021-06-17 18:23:52 +00:00
|
|
|
"lint:js": "eslint --max-warnings 0 .",
|
2021-05-17 18:53:41 +00:00
|
|
|
"lint:ts": "tsc -p client",
|
2021-01-05 14:50:59 +00:00
|
|
|
"lint:translations": "cd ./client && npm run lint",
|
2019-02-18 23:08:59 +00:00
|
|
|
"postinstall": "npm run bootstrap",
|
2021-03-27 14:46:20 +00:00
|
|
|
"prettier": "prettier \"**/*.css\"",
|
2020-12-03 15:45:45 +00:00
|
|
|
"seed": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser",
|
|
|
|
"seed:certified-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser certUser",
|
2019-10-17 12:51:01 +00:00
|
|
|
"serve:client": "cd ./client && npm run serve",
|
2021-08-14 02:57:13 +00:00
|
|
|
"serve:client-ci": "cd ./client && npm run serve-ci",
|
2020-04-21 08:11:20 +00:00
|
|
|
"start": "npm-run-all ensure-env -p develop:server serve:client",
|
2021-08-14 02:57:13 +00:00
|
|
|
"start-ci": "npm-run-all ensure-env -p start:server serve:client-ci",
|
2021-02-25 20:02:35 +00:00
|
|
|
"start:server": "cd ./api-server && npm start",
|
2021-05-10 19:07:01 +00:00
|
|
|
"storybook": "cd ./tools/ui-components && npm run storybook",
|
2021-05-14 16:11:21 +00:00
|
|
|
"test": "run-s ensure-env build:curriculum build-workers test:*",
|
2021-05-16 12:38:04 +00:00
|
|
|
"test:source": "jest",
|
2020-08-27 16:34:04 +00:00
|
|
|
"test:curriculum": "cd ./curriculum && npm test",
|
2021-05-16 12:38:04 +00:00
|
|
|
"test-curriculum-full-output": "cd ./curriculum && npm run test:full-output",
|
|
|
|
"test-client": "jest client",
|
|
|
|
"test-curriculum-js": "jest curriculum",
|
|
|
|
"test-server": "jest api-server",
|
|
|
|
"test-tools": "jest tools",
|
|
|
|
"test-utils": "jest utils",
|
2021-06-07 07:01:20 +00:00
|
|
|
"test-ui-components": "jest tools/ui-components",
|
2021-05-06 06:51:38 +00:00
|
|
|
"prepare": "husky install"
|
2021-03-27 14:46:20 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
2021-05-06 06:25:48 +00:00
|
|
|
"*.css": "prettier --write",
|
2021-06-17 18:23:52 +00:00
|
|
|
"*.(js|ts|tsx)": "eslint --max-warnings 0 --cache --fix",
|
2021-05-06 06:25:48 +00:00
|
|
|
"./curriculum/challenges/**/*.md": "node ./tools/scripts/lint/index.js"
|
2021-03-27 14:46:20 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2021-06-04 11:08:21 +00:00
|
|
|
"dotenv": "10.0.0",
|
2021-05-04 20:15:40 +00:00
|
|
|
"invariant": "2.2.4"
|
2021-03-27 14:46:20 +00:00
|
|
|
},
|
2018-09-05 12:30:54 +00:00
|
|
|
"devDependencies": {
|
2021-09-02 22:35:44 +00:00
|
|
|
"@babel/eslint-parser": "7.15.4",
|
2021-06-10 08:43:07 +00:00
|
|
|
"@babel/plugin-proposal-function-bind": "7.14.5",
|
2021-09-02 22:35:44 +00:00
|
|
|
"@babel/preset-env": "7.15.4",
|
2021-06-10 08:43:07 +00:00
|
|
|
"@babel/preset-react": "7.14.5",
|
2021-08-04 22:36:43 +00:00
|
|
|
"@babel/preset-typescript": "7.15.0",
|
2021-07-20 17:13:51 +00:00
|
|
|
"@testing-library/cypress": "7.0.7",
|
2021-08-25 14:12:46 +00:00
|
|
|
"@testing-library/dom": "8.2.0",
|
2021-06-14 11:05:42 +00:00
|
|
|
"@testing-library/jest-dom": "5.14.1",
|
2021-07-25 14:05:43 +00:00
|
|
|
"@testing-library/user-event": "13.2.1",
|
2021-08-30 18:05:07 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "4.30.0",
|
|
|
|
"@typescript-eslint/parser": "4.30.0",
|
2021-03-27 15:27:57 +00:00
|
|
|
"babel-eslint": "10.1.0",
|
2021-05-16 18:56:05 +00:00
|
|
|
"babel-plugin-transform-imports": "2.0.0",
|
2021-03-27 15:27:57 +00:00
|
|
|
"cross-env": "7.0.3",
|
2021-07-08 03:05:05 +00:00
|
|
|
"cypress": "7.7.0",
|
2021-03-27 15:27:57 +00:00
|
|
|
"docsify-cli": "4.4.3",
|
2021-07-30 23:36:28 +00:00
|
|
|
"eslint": "7.32.0",
|
2021-05-02 22:18:19 +00:00
|
|
|
"eslint-config-prettier": "8.3.0",
|
2021-08-25 00:45:28 +00:00
|
|
|
"eslint-plugin-import": "2.24.2",
|
2021-06-07 07:01:20 +00:00
|
|
|
"eslint-plugin-jest-dom": "3.9.0",
|
2021-03-27 15:27:57 +00:00
|
|
|
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
|
|
"eslint-plugin-prefer-object-spread": "1.2.1",
|
2021-08-20 23:38:46 +00:00
|
|
|
"eslint-plugin-prettier": "3.4.1",
|
2021-08-30 13:54:15 +00:00
|
|
|
"eslint-plugin-react": "7.25.1",
|
2021-05-06 21:26:12 +00:00
|
|
|
"eslint-plugin-react-hooks": "2.5.1",
|
2021-09-06 11:21:51 +00:00
|
|
|
"eslint-plugin-testing-library": "4.12.1",
|
2021-06-08 18:18:39 +00:00
|
|
|
"execa": "5.1.1",
|
2021-08-25 02:55:25 +00:00
|
|
|
"husky": "7.0.2",
|
2021-08-27 12:01:20 +00:00
|
|
|
"jest": "27.1.0",
|
2021-03-27 15:27:57 +00:00
|
|
|
"js-yaml": "3.14.1",
|
|
|
|
"lerna": "4.0.0",
|
2021-08-06 07:51:08 +00:00
|
|
|
"lint-staged": "11.1.2",
|
2021-03-27 15:27:57 +00:00
|
|
|
"lodash": "4.17.21",
|
2021-08-31 04:49:10 +00:00
|
|
|
"markdownlint": "0.24.0",
|
2021-07-07 00:28:40 +00:00
|
|
|
"mock-fs": "5.0.0",
|
2021-03-27 15:27:57 +00:00
|
|
|
"npm-run-all": "4.1.5",
|
2021-06-08 18:18:39 +00:00
|
|
|
"ora": "5.4.1",
|
2021-06-26 11:15:02 +00:00
|
|
|
"prettier": "2.3.2",
|
2021-07-03 15:22:48 +00:00
|
|
|
"prismjs": "1.24.1",
|
2021-06-09 16:48:09 +00:00
|
|
|
"process": "0.11.10",
|
2021-03-27 15:27:57 +00:00
|
|
|
"shx": "0.3.3",
|
2021-09-02 19:52:34 +00:00
|
|
|
"start-server-and-test": "1.14.0",
|
2021-07-01 01:01:32 +00:00
|
|
|
"typescript": "4.3.5",
|
2021-05-17 14:50:40 +00:00
|
|
|
"webpack-bundle-analyzer": "4.4.2"
|
2021-02-25 20:02:35 +00:00
|
|
|
}
|
2021-07-06 10:28:51 +00:00
|
|
|
}
|