Skip to content

Commit

Permalink
Add prepublish step that builds UMD bundle and runs linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Nov 14, 2015
1 parent 512de43 commit 6cdc512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"test": "eslint .",
"build": "npm run build:umd && npm run build:prod",
"build:umd": "webpack src/element-pan.js umd/element-pan.js",
"build:prod": "NODE_ENV=production webpack -p src/element-pan.js umd/element-pan.min.js"
"build:prod": "NODE_ENV=production webpack -p src/element-pan.js umd/element-pan.min.js",
"prepublish": "npm run build && npm run test"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 6cdc512

Please sign in to comment.