From 5058998e87a8c5348930b355f76dcc7f0918308f Mon Sep 17 00:00:00 2001 From: Bouncey Date: Fri, 8 Feb 2019 15:36:40 +0000 Subject: [PATCH] fix: Tidy up npm scripts --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 2f9acbced7..a59d84c9b1 100644 --- a/package.json +++ b/package.json @@ -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" },