Permalink
Browse files

Automate webpack to run as part of publish step

  • Loading branch information...
1 parent 5faebf7 commit c08243368fd2a41f3d59b4982e7fda5bf4b096b4 @bcronin bcronin committed Feb 24, 2016
Showing with 6 additions and 3 deletions.
  1. +1 −0 dist/.gitignore
  2. 0 dist/.npmignore
  3. +5 −3 package.json
View
@@ -1,2 +1,3 @@
*
!.gitignore
+!.npmignore
View
No changes.
View
@@ -1,14 +1,16 @@
{
"name": "opentracing",
- "version": "0.9.5",
+ "version": "0.9.7",
"main": "dist/opentracing-node-debug.js",
"scripts": {
+ "prepublish": "npm run webpack",
+ "test": "node node_modules/mocha/bin/mocha -c test/unittest.js",
+
"webpack": "npm run webpack-node-debug && npm run webpack-node-prod && npm run webpack-browser-debug && npm run webpack-browser-prod",
"webpack-node-debug": "BUILD_PLATFORM=node BUILD_CONFIG=debug webpack --display-error-details",
"webpack-node-prod": "BUILD_PLATFORM=node BUILD_CONFIG=prod webpack --display-error-details",
"webpack-browser-debug": "BUILD_PLATFORM=browser BUILD_CONFIG=debug webpack --display-error-details",
- "webpack-browser-prod": "BUILD_PLATFORM=browser BUILD_CONFIG=prod webpack --display-error-details",
- "test": "node node_modules/mocha/bin/mocha -c test/unittest.js"
+ "webpack-browser-prod": "BUILD_PLATFORM=browser BUILD_CONFIG=prod webpack --display-error-details"
},
"repository": {
"type": "git",

0 comments on commit c082433

Please sign in to comment.