forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
140 lines (140 loc) · 5.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"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": {
"analyze-bundle": "webpack-bundle-analyzer",
"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",
"bootstrap": "lerna bootstrap --ci",
"prebuild": "npm run ensure-env",
"build": "npm-run-all -p build:*",
"build-workers": "cd ./client && npm run prebuild",
"build:client": "cd ./client && npm run build",
"build:curriculum": "cd ./curriculum && npm run build",
"build:server": "cd ./api-server && npm run build",
"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",
"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:*",
"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",
"format": "npm-run-all -p format:*",
"format:css": "npm run prettier -- --write",
"format:js": "npm run lint:js -- --fix",
"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",
"lint:css": "npm run prettier -- --check",
"lint:js": "eslint .",
"lint:ts": "tsc -p client",
"lint:translations": "cd ./client && npm run lint",
"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",
"storybook": "cd ./tools/ui-components && npm run storybook",
"test": "run-s ensure-env build:curriculum build-workers test:*",
"test:source": "jest",
"test:curriculum": "cd ./curriculum && npm test",
"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",
"prepare": "husky install"
},
"lint-staged": {
"*.css": "prettier --write",
"*.(js|ts|tsx)": "eslint --cache --fix",
"./curriculum/challenges/**/*.md": "node ./tools/scripts/lint/index.js"
},
"dependencies": {
"dotenv": "9.0.2",
"invariant": "2.2.4"
},
"devDependencies": {
"@babel/plugin-proposal-function-bind": "7.12.13",
"@babel/preset-env": "7.14.2",
"@babel/preset-react": "7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@testing-library/cypress": "7.0.6",
"@testing-library/jest-dom": "5.12.0",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"babel-eslint": "10.1.0",
"babel-plugin-transform-imports": "2.0.0",
"cross-env": "7.0.3",
"cypress": "7.3.0",
"docsify-cli": "4.4.3",
"eslint": "^7.26.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.23.2",
"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",
"execa": "5.0.0",
"husky": "6.0.0",
"jest": "26.6.3",
"js-yaml": "3.14.1",
"lerna": "4.0.0",
"lint-staged": "10.5.4",
"lodash": "4.17.21",
"markdownlint": "0.23.1",
"npm-run-all": "4.1.5",
"ora": "5.4.0",
"prettier": "2.3.0",
"prismjs": "1.23.0",
"shx": "0.3.3",
"sinon": "10.0.0",
"sinon-express-mock": "2.2.1",
"start-server-and-test": "1.12.2",
"typescript": "^4.2.4",
"webpack-bundle-analyzer": "4.4.2"
}
}