Permalink
Browse files

Build on install; include minified dist

  • Loading branch information...
perliedman committed Feb 7, 2016
1 parent 2f17a58 commit 625f3bd746e42aad69af3876f70d264239ddcd99
Showing with 3 additions and 0 deletions.
  1. +2 −0 package.json
  2. +1 −0 scripts/build.sh
View
@@ -10,6 +10,7 @@
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "./scripts/build.sh",
"start": "./scripts/build.sh && ./scripts/start.sh"
},
"author": "Per Liedman <per@liedman.net>",
@@ -27,6 +28,7 @@
"devDependencies": {
"browserify": "^13.0.0",
"browserify-shim": "^3.8.12",
"uglify-js": "^2.6.1",
"watchify": "^3.7.0"
}
}
View
@@ -2,3 +2,4 @@
mkdir -p dist/
browserify -t browserify-shim src/index.js -o dist/leaflet-underneath-src.js
uglifyjs dist/leaflet-underneath-src.js >dist/leaflet-underneath.js

0 comments on commit 625f3bd

Please sign in to comment.