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": {
|
2019-08-28 17:36:23 +00:00
|
|
|
"audit": "npm audit & lerna exec --no-bail 'echo $LERNA_PACKAGE_NAME & npm audit'",
|
|
|
|
"audit:fix": "npm audit fix & lerna exec 'echo $LERNA_PACKAGE_NAME & 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:*",
|
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",
|
2020-11-20 10:39:34 +00:00
|
|
|
"cypress:dev:run": "npm run cypress -- run",
|
|
|
|
"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-03-27 14:46:20 +00:00
|
|
|
"lint:js": "eslint .",
|
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",
|
2020-04-21 08:11:20 +00:00
|
|
|
"start": "npm-run-all ensure-env -p develop:server serve:client",
|
2021-02-25 20:02:35 +00:00
|
|
|
"start-ci": "npm-run-all ensure-env -p start:server serve:client",
|
|
|
|
"start:server": "cd ./api-server && npm start",
|
|
|
|
"test": "npm-run-all ensure-env build:curriculum -p test:*",
|
2021-03-27 14:46:20 +00:00
|
|
|
"test-curriculum-full-output": "cd ./curriculum && npm run test:full-output",
|
2020-08-27 16:34:04 +00:00
|
|
|
"test:client": "cd ./client && npm test",
|
|
|
|
"test:curriculum": "cd ./curriculum && npm test",
|
2020-02-24 14:03:21 +00:00
|
|
|
"test:curriculum-js": "jest --rootDir ./curriculum",
|
2020-08-27 16:34:04 +00:00
|
|
|
"test:server": "cd ./api-server && npm test",
|
2019-09-26 14:27:26 +00:00
|
|
|
"test:tools": "jest ./tools",
|
2019-11-05 13:29:34 +00:00
|
|
|
"test:utils": "jest --rootDir ./utils"
|
2018-09-06 13:58:51 +00:00
|
|
|
},
|
2021-03-27 14:46:20 +00:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"linters": {
|
|
|
|
"*.css": [
|
|
|
|
"prettier --write",
|
|
|
|
"git add"
|
|
|
|
],
|
|
|
|
"*.js": [
|
|
|
|
"eslint --fix",
|
|
|
|
"git add"
|
|
|
|
],
|
|
|
|
"./curriculum/challenges/**/*.md": "node ./tools/scripts/lint/index.js"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2021-03-27 15:27:57 +00:00
|
|
|
"dotenv": "8.2.0"
|
2021-03-27 14:46:20 +00:00
|
|
|
},
|
2018-09-05 12:30:54 +00:00
|
|
|
"devDependencies": {
|
2021-04-15 23:13:05 +00:00
|
|
|
"@testing-library/cypress": "7.0.6",
|
2021-03-27 15:27:57 +00:00
|
|
|
"babel-eslint": "10.1.0",
|
|
|
|
"cross-env": "7.0.3",
|
2021-04-12 18:06:20 +00:00
|
|
|
"cypress": "6.9.1",
|
2021-03-27 15:27:57 +00:00
|
|
|
"debug": "4.3.1",
|
|
|
|
"docsify-cli": "4.4.3",
|
2021-04-12 21:09:25 +00:00
|
|
|
"eslint": "7.24.0",
|
2021-04-13 22:02:08 +00:00
|
|
|
"eslint-config-prettier": "8.2.0",
|
2021-03-27 15:27:57 +00:00
|
|
|
"eslint-plugin-babel": "5.3.1",
|
|
|
|
"eslint-plugin-import": "2.22.1",
|
|
|
|
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
|
|
"eslint-plugin-prefer-object-spread": "1.2.1",
|
2021-04-15 14:56:08 +00:00
|
|
|
"eslint-plugin-prettier": "3.4.0",
|
2021-04-13 00:48:17 +00:00
|
|
|
"eslint-plugin-react": "7.23.2",
|
2021-03-27 15:27:57 +00:00
|
|
|
"eslint-plugin-react-hooks": "2.5.1",
|
|
|
|
"execa": "4.0.3",
|
|
|
|
"gray-matter": "4.0.2",
|
|
|
|
"husky": "3.1.0",
|
|
|
|
"jest": "24.9.0",
|
|
|
|
"jest-dom": "4.0.0",
|
|
|
|
"js-yaml": "3.14.1",
|
|
|
|
"lerna": "4.0.0",
|
|
|
|
"lint-staged": "8.2.1",
|
|
|
|
"lodash": "4.17.21",
|
|
|
|
"markdownlint": "0.21.0",
|
|
|
|
"npm-run-all": "4.1.5",
|
|
|
|
"ora": "5.4.0",
|
|
|
|
"prettier": "2.2.1",
|
|
|
|
"prismjs": "1.23.0",
|
|
|
|
"readdirp-walk": "1.7.0",
|
|
|
|
"shx": "0.3.3",
|
|
|
|
"sinon": "7.4.1",
|
|
|
|
"sinon-express-mock": "2.2.1",
|
|
|
|
"start-server-and-test": "1.12.1"
|
2021-02-25 20:02:35 +00:00
|
|
|
}
|
2020-10-10 15:56:13 +00:00
|
|
|
}
|