Skip to content

Commit

Permalink
[compression][xs]: added script in package.json for compressing packa…
Browse files Browse the repository at this point in the history
…ged executables - refs datahubio/datahub-v2-pm#107
  • Loading branch information
anuveyatsu committed Jan 30, 2018
1 parent 7f5126c commit cc1b213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ npm-debug.log
package-lock.json

sandbox/*
packed/*
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"watch:test": "npm t -- --watch",
"lint": "xo --quiet",
"data": "node bin/data.js",
"pack": "pkg bin/data.js -c package.json -o packed/data",
"gzip": "ls packed/data* | xargs gzip -k",
"pack": "pkg bin/data.js -c package.json -o packed/data --options no-warnings && yarn run gzip",
"precommit": "npm run lint && npm run build"
},
"xo": {
Expand Down

0 comments on commit cc1b213

Please sign in to comment.