Skip to content

Commit

Permalink
[fix] Clear dist folder, create normal, minified and sourcemap files …
Browse files Browse the repository at this point in the history
…in dist folder. Fixes #124
  • Loading branch information
3rd-Eden committed Apr 5, 2018
1 parent 2dc4cb5 commit 7ca5c16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -4,10 +4,11 @@
"description": "Small footprint URL parser that works seamlessly across Node.js and browser environments",
"main": "index.js",
"scripts": {
"browserify": "mkdir -p dist && browserify index.js -s URLParse | uglifyjs -cm -o dist/url-parse.min.js",
"browserify": "rm -rf dist && mkdir -p dist && browserify index.js -s URLParse -o dist/url-parse.js",

This comment has been minimized.

Copy link
@lpinca

lpinca Apr 5, 2018

Member

The -p flag is no longer needed but it doesn't harm either.

"minify": "uglifyjs dist/url-parse.js --source-map -cm -o dist/url-parse.min.js",
"test": "nyc --reporter=html --reporter=text mocha test/test.js",
"test-browser": "node test/browser.js",
"prepublishOnly": "npm run browserify",
"prepublishOnly": "npm run browserify && npm run minify",
"watch": "mocha --watch test/test.js"
},
"files": [
Expand Down

0 comments on commit 7ca5c16

Please sign in to comment.