Skip to content

Commit

Permalink
bundles it for the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Saad Rashid committed Nov 17, 2017
1 parent 9a7a3f2 commit 5f70f27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ coverage*
.nyc_output

rules.json
tld.js
tld.min.js
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
"benchmark": "node ./bin/benchmark.js",
"generate-changelog": "github-changes -o oncletom -r 'tld.js' -n ${npm_package_version} --only-pulls --use-commit-body",
"lint": "jshint --config .jshintrc lib/**/*.js",
"postinstall": "node ./bin/postinstall.js",
"postinstall": "node ./bin/postinstall.js && npm run build && npm run build-min",
"posttest": "npm run lint && npm run test-browser",
"prepublish": "npm run update",
"test": "nyc mocha -R dot -r env-test",
"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",
"build": "browserify index.js --s tldjs > tld.js",
"build-min": "browserify index.js --s tldjs | uglifyjs -c > tld.min.js"
},
"tldjs": {
"providers": {
Expand Down Expand Up @@ -66,7 +68,9 @@
"mocha": "^3.5.0",
"nyc": "^11.1.0",
"phantomjs-prebuilt": "^2.1.15",
"testling": "^1.7.0"
"testling": "^1.7.0",
"browserify": "^14.5.0",
"uglify-js": "^3.1.9"
},
"keywords": [
"tld",
Expand Down

0 comments on commit 5f70f27

Please sign in to comment.