Skip to content

Commit

Permalink
Don't automatically install website node modules.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
manthey committed Dec 7, 2017
1 parent 0ec9d4e commit 811b513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 811b513

Please sign in to comment.