Skip to content

Commit

Permalink
add minimization
Browse files Browse the repository at this point in the history
  • Loading branch information
125m125 committed Oct 24, 2017
1 parent 3c8a630 commit 6e2919b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"scripts": {
"prepare": "npm run default-rollup",
"test": "babel-tape-runner test/**/*Test.js",
"prepublishOnly": "uglifyjs -b beautify=false target/ktapi-full.js -o target/ktapi-full.min.js",
"clean": "rm -rf target/ && rm -f src/processedIndex.js",
"default-rollup": "rollup -c",
"custom-rollup": "metascript src/index.js $META_PARAMS >src/processedIndex.js && rollup -c -i src/processedIndex.js -o target/${FILENAME:-ktapi-custom.js} && rm src/processedIndex.js",
"default-rollup": "rollup -c && FILENAME=ktapi-full npm run minimize",
"minimize": "uglifyjs -b beautify=false target/${FILENAME:-ktapi-custom}.js -o target/${FILENAME:-ktapi-custom}.min.js",
"custom-rollup": "metascript src/index.js $META_PARAMS >src/processedIndex.js && rollup -c -i src/processedIndex.js -o target/${FILENAME:-ktapi-custom}.js && rm src/processedIndex.js && npm run minimize",
"interactive-rollup": "node interactiveBuild.js && META_PARAMS=$(cat target/settings) npm run custom-rollup"
},
"repository": {
Expand All @@ -29,6 +31,7 @@
"d3-request": "^1.0.6",
"jssha": "^2.3.1",
"pusher-js": "^4.2.1",
"uglify-js": "^3.1.5",
"xmlhttprequest": "^1.8.0"
},
"devDependencies": {
Expand Down

0 comments on commit 6e2919b

Please sign in to comment.