2018-09-05 12:30:54 +00:00
|
|
|
{
|
|
|
|
"name": "@freecodecamp/freecodecamp",
|
2019-06-16 23:46:35 +00:00
|
|
|
"private": true,
|
2018-09-05 12:30:54 +00:00
|
|
|
"version": "0.0.1",
|
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'",
|
2019-08-15 09:11:29 +00:00
|
|
|
"build": "npm-run-all ensure-env -p build:*",
|
|
|
|
"build:client": "cd ./client && npm run build",
|
|
|
|
"build:server": "cd ./api-server && npm run build",
|
2019-04-01 15:53:39 +00:00
|
|
|
"bootstrap": "lerna bootstrap --ci",
|
2020-05-14 13:10:46 +00:00
|
|
|
"clean": "npm-run-all clean:client clean:server clean:packages",
|
2019-09-27 07:30:34 +00:00
|
|
|
"clean-and-develop": "npm run clean && npm ci && npm run develop",
|
2019-06-16 23:46:35 +00:00
|
|
|
"clean:root-deps": "shx rm -rf node_modules",
|
|
|
|
"clean:packages": "lerna clean -y",
|
2020-05-14 13:10:46 +00:00
|
|
|
"clean:server": "shx rm -rf ./api-server/lib",
|
|
|
|
"clean:client": "cd ./client && npm run clean",
|
|
|
|
"clean:gatsby-site": "npm run clean:client",
|
2020-06-09 20:17:13 +00:00
|
|
|
"precypress": "node ./cypress-install.js",
|
2019-10-05 22:38:38 +00:00
|
|
|
"cypress": "cypress",
|
2020-06-09 20:17:13 +00:00
|
|
|
"cypress:install": "cypress install && echo 'for use with ./cypress-install.js'",
|
|
|
|
"cypress:dev:run": "npm run cypress -- run --config baseUrl=http://localhost:8000",
|
|
|
|
"cypress:dev:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000",
|
|
|
|
"cypress:prd:run": "npm run cypress -- run --config baseUrl=http://localhost:8000",
|
|
|
|
"cypress:prd:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000",
|
2019-02-08 15:36:40 +00:00
|
|
|
"develop": "npm-run-all ensure-env -p develop:*",
|
|
|
|
"develop:client": "cd ./client && npm run develop",
|
2019-06-15 14:43:15 +00:00
|
|
|
"develop:server": "cd ./api-server && npm run develop",
|
2019-11-28 17:01:52 +00:00
|
|
|
"docker:run-once": "npm run docker:init && npm run docker:install && npm run docker:seed",
|
2019-02-25 14:21:37 +00:00
|
|
|
"docker:clean": "docker-compose run -u root --rm freecodecamp bash -c \"rm -rf **/node_modules/* **/node_modules/..?* **/node_modules/.[!.]* node_modules/* node_modules/..?* node_modules/.[!.]*\"",
|
|
|
|
"docker:develop": "docker-compose up client api-server",
|
|
|
|
"docker:init": "docker-compose run -u root --rm freecodecamp bash change_volumes_owner.sh && docker-compose run -u root --rm client bash -c \"cd .. && bash change_volumes_owner.sh\" && docker-compose run -u root --rm api-server bash -c \"cd .. && bash change_volumes_owner.sh\"",
|
2019-11-28 17:01:52 +00:00
|
|
|
"docker:install": "docker-compose run --rm freecodecamp npm ci",
|
2019-02-25 14:21:37 +00:00
|
|
|
"docker:seed": "docker-compose run --rm freecodecamp npm run seed",
|
2019-02-24 00:10:27 +00:00
|
|
|
"docker:test": "docker-compose -f docker-compose.tests.yml run --rm tests bash",
|
2019-02-25 14:21:37 +00:00
|
|
|
"docker:test:init": "docker-compose -f docker-compose.tests.yml run -u root --rm tests bash change_volumes_owner.sh",
|
2020-04-07 10:04:02 +00:00
|
|
|
"docs:serve": "docsify serve ./docs",
|
2019-06-16 23:46:35 +00:00
|
|
|
"ensure-env": "cross-env DEBUG=fcc:* node ./tools/scripts/build/ensure-env.js",
|
2020-06-13 09:24:15 +00:00
|
|
|
"e2e:dev:watch": "start-test develop ':3000/status/ping|8000' cypress:dev:watch",
|
|
|
|
"e2e:dev:run": "start-test develop ':3000/status/ping|8000' cypress:dev:run",
|
|
|
|
"e2e:prd:watch": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:watch",
|
|
|
|
"e2e:prd:run": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:run",
|
2019-06-24 08:45:38 +00:00
|
|
|
"format": "npm-run-all -p format:*",
|
|
|
|
"format:js": "npm run lint:js -- --fix",
|
|
|
|
"format:css": "npm run prettier -- --write",
|
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",
|
2019-04-12 14:44:14 +00:00
|
|
|
"lint": "npm-run-all -p lint:*",
|
|
|
|
"lint:challenges": "cd ./curriculum && npm run lint",
|
|
|
|
"lint:js": "eslint .",
|
2019-06-24 08:45:38 +00:00
|
|
|
"lint:css": "npm run prettier -- --check",
|
|
|
|
"prettier": "prettier \"**/*.css\"",
|
2019-02-18 23:08:59 +00:00
|
|
|
"postinstall": "npm run bootstrap",
|
2018-11-09 15:19:03 +00:00
|
|
|
"seed": "npm-run-all -p seed:*",
|
2018-10-30 21:17:07 +00:00
|
|
|
"seed:auth-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser",
|
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",
|
2018-09-27 06:58:31 +00:00
|
|
|
"test": "npm-run-all -p test:*",
|
2020-08-27 16:34:04 +00:00
|
|
|
"test:client": "cd ./client && npm test",
|
|
|
|
"test:curriculum": "cd ./curriculum && npm test",
|
2020-08-27 16:29:50 +00:00
|
|
|
"test-curriculum-full-output": "cd ./curriculum && npm run test:full-output",
|
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
|
|
|
},
|
2018-09-05 12:30:54 +00:00
|
|
|
"devDependencies": {
|
2019-02-18 18:23:30 +00:00
|
|
|
"@freecodecamp/eslint-config": "^2.0.2",
|
2020-05-11 10:15:06 +00:00
|
|
|
"babel-eslint": "^10.1.0",
|
2020-06-09 20:17:13 +00:00
|
|
|
"cross-env": "^7.0.2",
|
2020-07-30 09:26:49 +00:00
|
|
|
"cypress": "^4.11.0",
|
2019-04-01 15:53:39 +00:00
|
|
|
"debug": "^4.1.1",
|
2020-08-27 14:45:18 +00:00
|
|
|
"docsify-cli": "^4.4.1",
|
2019-08-13 19:59:11 +00:00
|
|
|
"dotenv": "^6.2.0",
|
2019-04-01 15:53:39 +00:00
|
|
|
"eslint": "^5.16.0",
|
2019-08-13 19:59:11 +00:00
|
|
|
"eslint-config-prettier": "^4.3.0",
|
2019-02-06 14:14:08 +00:00
|
|
|
"eslint-plugin-babel": "^5.3.0",
|
2020-05-11 10:15:06 +00:00
|
|
|
"eslint-plugin-import": "^2.20.2",
|
2020-03-26 04:55:47 +00:00
|
|
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
2019-02-16 00:25:55 +00:00
|
|
|
"eslint-plugin-prefer-object-spread": "^1.2.1",
|
2020-05-11 10:15:06 +00:00
|
|
|
"eslint-plugin-prettier": "^3.1.3",
|
2020-06-09 20:17:13 +00:00
|
|
|
"eslint-plugin-react": "^7.20.0",
|
2019-08-30 15:40:23 +00:00
|
|
|
"eslint-plugin-react-hooks": "^2.0.1",
|
2020-06-09 20:17:13 +00:00
|
|
|
"execa": "^4.0.2",
|
2018-11-09 15:19:03 +00:00
|
|
|
"faker": "^4.1.0",
|
2019-04-01 15:53:39 +00:00
|
|
|
"gray-matter": "^4.0.2",
|
2020-09-01 05:51:52 +00:00
|
|
|
"husky": "^3.1.0",
|
2020-03-16 10:41:02 +00:00
|
|
|
"jest": "^24.9.0",
|
2020-06-09 20:17:13 +00:00
|
|
|
"js-yaml": "^3.14.0",
|
|
|
|
"lerna": "^3.22.0",
|
2019-08-13 19:59:11 +00:00
|
|
|
"lint-staged": "^8.2.1",
|
2020-07-17 19:04:48 +00:00
|
|
|
"lodash": "^4.17.19",
|
2019-06-21 13:22:14 +00:00
|
|
|
"markdownlint": "^0.15.0",
|
2018-11-27 17:24:00 +00:00
|
|
|
"npm-run-all": "^4.1.5",
|
2019-07-19 11:41:39 +00:00
|
|
|
"ora": "^3.4.0",
|
|
|
|
"prettier": "^1.18.2",
|
2020-05-11 10:15:06 +00:00
|
|
|
"prismjs": "^1.20.0",
|
2019-02-27 15:32:17 +00:00
|
|
|
"readdirp-walk": "^1.7.0",
|
2020-05-11 10:15:06 +00:00
|
|
|
"shortid": "^2.2.15",
|
2019-02-23 10:58:45 +00:00
|
|
|
"shx": "^0.3.2",
|
2019-08-13 19:59:11 +00:00
|
|
|
"sinon": "^7.4.1",
|
2020-05-11 10:15:06 +00:00
|
|
|
"sinon-express-mock": "^2.2.1",
|
2020-06-13 09:24:15 +00:00
|
|
|
"slugg": "^1.2.1",
|
|
|
|
"start-server-and-test": "^1.11.0"
|
2019-02-18 23:08:59 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
2019-06-13 16:09:15 +00:00
|
|
|
"linters": {
|
|
|
|
"*.js": [
|
|
|
|
"eslint --fix",
|
|
|
|
"git add"
|
|
|
|
],
|
2019-10-31 17:24:07 +00:00
|
|
|
"./curriculum/challenges/**/*.md": "node ./tools/scripts/lint/index.js",
|
2019-06-24 08:45:38 +00:00
|
|
|
"*.css": [
|
2019-06-13 16:09:15 +00:00
|
|
|
"prettier --write",
|
|
|
|
"git add"
|
|
|
|
]
|
2019-06-24 08:45:38 +00:00
|
|
|
}
|
2019-02-18 23:08:59 +00:00
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
2020-04-06 18:49:56 +00:00
|
|
|
},
|
|
|
|
"dependencies": {}
|
2018-09-05 12:30:54 +00:00
|
|
|
}
|