diff --git a/.gitignore b/.gitignore index 6fdc071..69980a4 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ coverage* .nyc_output rules.json +tld.js +tld.min.js diff --git a/package.json b/package.json index a5c2962..e7aa535 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,11 @@ "test-browser": "testling", "test-watch": "mocha -R dot -r env-test --watch", "update": "node ./bin/update.js", - "version": "npm run generate-changelog && git add CHANGELOG.md" + "version": "npm run generate-changelog && git add CHANGELOG.md", + "prebuild": "npm run update", + "build": "browserify index.js --s tldjs > tld.js", + "prebuild-min": "npm run update", + "build-min": "browserify index.js --s tldjs | uglifyjs -c > tld.min.js" }, "tldjs": { "providers": { @@ -65,7 +69,9 @@ "jshint": "^2.5.1", "mocha": "^3.5.0", "nyc": "^11.1.0", - "testling": "^1.7.0" + "testling": "^1.7.0", + "browserify": "^14.5.0", + "uglify-js": "^3.1.9" }, "keywords": [ "tld",