prepare umd build before publish

This commit is contained in:
Boris Serdiuk
2016-07-12 15:27:42 +02:00
committed by Yoshua Wuyts
parent d883d316bb
commit c03bcd21e5
3 changed files with 63 additions and 5 deletions
+16 -1
View File
@@ -11,7 +11,10 @@
"test:browser": "standard && npm run deps && NODE_ENV=test zuul tests/browser/*",
"test:browser:local": "standard && npm run deps && NODE_ENV=test zuul --local 8080 -- tests/browser/*",
"preversion": "if [ ! -z $SKIP_TEST ]; then npm run test:browser; fi",
"test": "npm run test:electron"
"test": "npm run test:electron",
"build:dev": "NODE_ENV=development browserify index.js --standalone=choo -t envify > dist/choo.js",
"build:min": "NODE_ENV=production browserify index.js --standalone=choo -t envify -g unassertify -g uglifyify | uglifyjs > dist/choo.min.js",
"prepublish": "mkdir -p 'dist/' && npm run build:dev && npm run build:min"
},
"repository": "yoshuawuyts/choo",
"keywords": [
@@ -22,6 +25,11 @@
"composable",
"tiny"
],
"files": [
"index.js",
"http.js",
"dist"
],
"license": "MIT",
"dependencies": {
"barracks": "^8.0.0",
@@ -40,6 +48,7 @@
"browserify-istanbul": "^2.0.0",
"bundle-collapser": "^1.2.1",
"dependency-check": "^2.5.1",
"envify": "^3.4.1",
"es2020": "^1.0.1",
"geval": "~2.1.1",
"insert-css": "^0.2.0",
@@ -54,9 +63,15 @@
"standard": "^7.1.0",
"tachyons": "^4.0.0-beta.19",
"tape": "^4.5.1",
<<<<<<< HEAD
"tape-istanbul": "~1.0.2",
"tape-run": "~2.1.4",
"yo-yoify": "^3.1.0",
=======
"uglifyify": "^3.0.2",
"uglifyjs": "^2.4.10",
"unassertify": "^2.0.3",
>>>>>>> 7370fd0... prepare umd build before publish
"zuul": "toddself/zuul"
}
}