fix: Tidy up npm scripts

This commit is contained in:
Bouncey
2019-02-08 15:36:40 +00:00
committed by mrugesh mohapatra
parent 62da8d31e2
commit 5058998e87

View File

@ -2,25 +2,25 @@
"name": "@freecodecamp/freecodecamp",
"version": "0.0.1",
"scripts": {
"postinstall": "npm run bootstrap",
"bootstrap": "lerna bootstrap",
"clean": "lerna clean",
"develop": "npm-run-all -s ensure-env && npm-run-all -p start-develop-server start-develop-client",
"develop": "npm-run-all ensure-env -p develop:*",
"develop:client": "cd ./client && npm run develop",
"develop:server": "cd ./api-server && node development-entry.js",
"ensure-env": "cross-env DEBUG=fcc:* node ./tools/scripts/ensure-env.js",
"lint": "echo 'Warning: TODO - Define Linting with fixing.'",
"lint:api": "eslint api-server --ignore-pattern 'api-server/node_modules/**/*.js'",
"seed": "npm-run-all -p seed:*",
"seed:challenges": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedChallenges",
"seed:auth-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser",
"start-develop-client": "cd ./client && node ./node_modules/gatsby-cli develop",
"start-develop-server": "cd ./api-server && node development-entry.js",
"seed:challenges": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedChallenges",
"postinstall": "npm run bootstrap",
"pretest": "npm-run-all -s test:lint",
"test": "npm-run-all -p test:*",
"test:lint": "echo 'Warning: TODO - Define Linting tests.'",
"test:challenge-formatting": "node ./tools/scripts/ci/ensure-challenge-formatting.js",
"test:client": "cd ./client && npm test && cd ../",
"test:curriculum": "cd ./curriculum && npm test && cd ../",
"test:challenge-formatting": "node ./tools/scripts/ci/ensure-challenge-formatting.js",
"test:guide-formatting": "node ./tools/scripts/ci/ensure-guide-formatting.js",
"test:lint": "echo 'Warning: TODO - Define Linting tests.'",
"test:server": "cd ./api-server && npm test && cd ../",
"test:tools": "jest ./tools"
},