Skip to content

Commit

Permalink
Add prepublish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Dail committed Jan 24, 2017
1 parent 844cfef commit 31eb2b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
__test__
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"scripts": {
"rollup": "NODE_ENV=production rollup -c rollup.config.js -m -f cjs -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_main",
"minify": "uglifyjs $npm_package_main -cm toplevel -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map",
"build": "yarn rollup && yarn minify && gzip-size dist/tinytime.js | pretty-bytes",
"test": "NODE_ENV=test flow && jest"
"build": "npm run rollup && npm run minify && gzip-size dist/tinytime.js | pretty-bytes",
"test": "NODE_ENV=test flow && jest",
"prepublish": "npm run build"
},
"devDependencies": {
"babel-core": "^6.21.0",
Expand Down

0 comments on commit 31eb2b2

Please sign in to comment.