Skip to content

Commit

Permalink
add minified build to the package
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Nov 28, 2017
1 parent ee5e501 commit b71feb9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,4 +3,5 @@ coverage
.nyc_output
*.log
cheap-ruler.js
cheap-ruler.min.js
test/types.js
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

15 changes: 12 additions & 3 deletions package.json
Expand Up @@ -3,27 +3,36 @@
"version": "2.5.0",
"description": "A collection of fast approximations to common geographic measurements.",
"main": "index.js",
"jsdelivr": "cheap-ruler.js",
"unpkg": "cheap-ruler.js",
"types": "index.d.ts",
"dependencies": {},
"devDependencies": {
"@turf/turf": "^5.0.4",
"benchmark": "^2.1.4",
"browserify": "^14.5.0",
"eslint": "^4.12.0",
"eslint-config-mourner": "^2.0.3",
"istanbul": "^0.4.5",
"node-vincenty": "0.0.6",
"tape": "^4.8.0",
"@turf/turf": "^5.0.4",
"typescript": "^2.6.2"
"typescript": "^2.6.2",
"uglify-js": "^3.2.0"
},
"scripts": {
"pretest": "eslint index.js bench test/*.js && npm run types",
"test": "tape test/test.js",
"types": "tsc test/types.ts && rm test/types.js",
"build": "browserify index.js -s cheapRuler > cheap-ruler.js",
"prepublish": "npm run build",
"build-min": "browserify index.js -s cheapRuler | uglifyjs -c -m > cheap-ruler.min.js",
"prepare": "npm run build && npm run build-min",
"cov": "istanbul cover tape test/test.js"
},
"files": [
"index.d.ts",
"cheap-ruler.js",
"cheap-ruler.min.js"
],
"eslintConfig": {
"extends": "mourner"
},
Expand Down

0 comments on commit b71feb9

Please sign in to comment.