Skip to content

Commit

Permalink
Bundle rules.json on prepublish
Browse files Browse the repository at this point in the history
They are removed from sources from now on
  • Loading branch information
Thomas Parisot committed Feb 13, 2017
1 parent 13df668 commit 26a5eac
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ results

node_modules
bower_components
npm-debug.log
.nyc_output
coverage*
.idea
.nyc_output

rules.json
18 changes: 18 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz

pids
logs
results

node_modules
bower_components
coverage*
.idea
.nyc_output
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ notifications:
email:
on_failure: change

install:
- rm rules.json
- npm install --tldjs-update-rules
install: npm install --tldjs-update-rules

script: xvfb-run -a npm test

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"update": "node ./bin/update.js",
"postinstall": "node ./bin/postinstall.js",
"generate-changelog": "github-changes -o oncletom -r 'tld.js' -n ${npm_package_version} --only-pulls --use-commit-body",
"version": "npm run generate-changelog && git add CHANGELOG.md rules.json"
"prepublish": "npm run update",
"version": "npm run generate-changelog && git add CHANGELOG.md"
},
"tldjs": {
"providers": {
Expand Down
1 change: 0 additions & 1 deletion rules.json

This file was deleted.

0 comments on commit 26a5eac

Please sign in to comment.