From 04e6f5b52ddc290f9dc8810681ec7e22eeae6dfd Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Thu, 2 Nov 2017 17:23:09 -0600 Subject: [PATCH] added prebuild --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 01a271bc8..e2affee15 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,13 @@ "scripts": { "postinstall": "./bin/cli plugins reconcile --skip-remote", "generate-introspection": "WEBPACK=TRUE NODE_ENV=test ./scripts/generateIntrospectionResult.js", - "watch": "npm-run-all generate-introspection --parallel watch:*", + "clean": "rm -rf dist client/coral-framework/graphql/introspection.json", + "watch": "npm-run-all clean generate-introspection --parallel watch:*", "watch:client": "NODE_ENV=development webpack --progress --watch", "watch:server": "nodemon --config .nodemon.json", "start:development": "NODE_ENV=development ./bin/cli -c .env serve -j -w", "start:production": "NODE_ENV=production ./bin/cli serve -j -w", + "prebuild": "npm-run-all clean generate-introspection", "build": "NODE_ENV=production webpack -p --bail", "lint:yaml": "yamllint locales/*.yml", "lint:js": "eslint --ext=.js --ext=.json bin/* .",