From 811b513ae34a78f47226a636b7b9809fd447b068 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Thu, 7 Dec 2017 10:11:36 -0500 Subject: [PATCH] Don't automatically install website node modules. When geojs is used as a node module in another project, we should install all of the website's node modules. Doing so bloats the deployment directory of other projects. This should be a safe change unless we expect other projects to use the generated geojs website as components within those projects. This skips installing 10,000 files that total 76 Mb. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 019ae9813b..9e61df800e 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,6 @@ "xmlbuilder": "^8.2.2" }, "scripts": { - "postinstall": "cd website && npm install", "build": "webpack --config webpack.config.js && webpack --config external.config.js", "build-examples": "node examples/build.js && webpack --config webpack-examples.config.js", "build-website-examples": "node examples/build-website.js && webpack --config webpack-website-examples.config.js", @@ -113,7 +112,8 @@ "stop-test": "forever stop ./testing/test-runners/server.js", "docs": "jsdoc --pedantic -d dist/apidocs -r src -c jsdoc.conf.json", "website": "cd website && npx hexo server", - "build-website": "npm run build && cp -a dist/built/. website/source/built && npm run build-website-examples && npm run build-website-tutorials && npm run docs && cp -ar dist/data/. website/source/data && cp -ar dist/apidocs/. website/source/apidocs && cd website && rm -f db.json && npx hexo generate" + "install-website": "cd website && npm install", + "build-website": "npm run build && cp -a dist/built/. website/source/built && npm run build-website-examples && npm run build-website-tutorials && npm run docs && cp -ar dist/data/. website/source/data && cp -ar dist/apidocs/. website/source/apidocs && cd website && npm install && rm -f db.json && npx hexo generate" }, "keywords": [ "map",