freeCodeCamp/package.json

139 lines
5.4 KiB
JSON
Raw Normal View History

2018-09-05 12:30:54 +00:00
{
"name": "@freecodecamp/freecodecamp",
"version": "0.0.1",
"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",
"scripts": {
"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'",
"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",
"build:curriculum": "cd ./curriculum && npm run build",
"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",
"clean-and-develop": "npm run clean && npm ci && npm run develop",
"clean:client": "cd ./client && npm run clean",
"clean:curriculum": "shx rm ./config/curriculum.json",
"clean:gatsby-site": "npm run clean:client",
"clean:packages": "lerna clean -y",
"clean:root-deps": "shx rm -rf node_modules",
"clean:server": "shx rm -rf ./api-server/lib",
"precypress": "node ./cypress-install.js",
2019-10-05 22:38:38 +00:00
"cypress": "cypress",
"cypress:dev:run": "npm run cypress -- run",
"cypress:dev:watch": "npm run cypress -- open",
"cypress:install": "cypress install && echo 'for use with ./cypress-install.js'",
"cypress:install-build-tools": "sh ./cypress-install.sh",
"cypress:prd:run": "npm run cypress -- run",
"cypress:prd:watch": "npm run cypress -- open",
"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",
"develop:server": "cd ./api-server && npm run develop",
"docs:serve": "docsify serve ./docs -o --port 3200",
"e2e": "npm 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": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:run",
"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",
"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",
"lint": "npm-run-all ensure-env -p lint:*",
"lint:challenges": "cd ./curriculum && npm run lint",
2019-06-24 08:45:38 +00:00
"lint:css": "npm run prettier -- --check",
"lint:js": "eslint .",
"lint:translations": "cd ./client && npm run lint",
2019-02-18 23:08:59 +00:00
"postinstall": "npm run bootstrap",
"prettier": "prettier \"**/*.css\"",
"seed": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser",
"seed:certified-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser certUser",
"serve:client": "cd ./client && npm run serve",
"start": "npm-run-all ensure-env -p develop:server serve:client",
"start-ci": "npm-run-all ensure-env -p start:server serve:client",
"start:server": "cd ./api-server && npm start",
2021-05-05 11:10:48 +00:00
"test": "npm-run-all ensure-env build:curriculum build-workers -p test:*",
"test-curriculum-full-output": "cd ./curriculum && npm run test:full-output",
"test:client": "cd ./client && npm test",
"test:curriculum": "cd ./curriculum && npm test",
"test:curriculum-js": "jest --rootDir ./curriculum",
"test:server": "cd ./api-server && npm test",
2019-09-26 14:27:26 +00:00
"test:tools": "jest ./tools",
"test:utils": "jest --rootDir ./utils"
},
"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": {
"dotenv": "8.5.1",
"invariant": "2.2.4"
},
2018-09-05 12:30:54 +00:00
"devDependencies": {
"@testing-library/cypress": "7.0.6",
"babel-eslint": "10.1.0",
"cross-env": "7.0.3",
"cypress": "7.2.0",
"docsify-cli": "4.4.3",
"eslint": "7.25.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prefer-object-spread": "1.2.1",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "7.23.2",
"eslint-plugin-react-hooks": "2.5.1",
2021-05-05 08:15:25 +00:00
"execa": "^5.0.0",
"husky": "3.1.0",
"jest": "26.6.3",
"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",
"shx": "0.3.3",
"sinon": "7.4.1",
"sinon-express-mock": "2.2.1",
"start-server-and-test": "1.12.1"
}
2020-10-10 15:56:13 +00:00
}