date-holidays
Advanced tools
Comparing version 0.1.7 to 0.1.9
@@ -33,5 +33,5 @@ # Contributing | ||
``` | ||
mocha test/add.mocha.js --writetests | ||
mocha test/all.mocha.js --writetests | ||
``` | ||
Now check any changes with `git diff test/assets`. Make sure that your changes did not affect other countries. | ||
Now check any changes with `git diff test/fixtures`. Make sure that your changes did not affect other countries. | ||
8. Push your branch to GitHub and submit a pull request | ||
@@ -38,0 +38,0 @@ 9. Monitor the pull request to make sure the Travis build succeeds. |
{ | ||
"name": "date-holidays", | ||
"version": "0.1.7", | ||
"version": "0.1.9", | ||
"description": "worldwide holidays", | ||
"main": "lib", | ||
"bin": { | ||
"holidays2json": "./build/holidays2json.js" | ||
}, | ||
"directories": { | ||
@@ -11,6 +14,8 @@ "test": "test" | ||
"Mauro Braggio <m.braggio@e-time.it>", | ||
"Quennie <simply.me.queeny@gmail.com>" | ||
"Quennie <simply.me.queeny@gmail.com>", | ||
"Christian Schinnerl <Schinnerl.Christian@gmail.com>" | ||
], | ||
"dependencies": { | ||
"date-easter": "^0.2.2", | ||
"js-yaml": "^3.8.1", | ||
"lodash": "^4.17.4", | ||
@@ -22,7 +27,8 @@ "moment-timezone": "^0.5.11", | ||
"eslint": "^3.15.0", | ||
"eslint-config-standard": "^6.2.1", | ||
"eslint-config-standard": "^10.2.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-node": "^4.2.2", | ||
"eslint-plugin-promise": "^3.4.1", | ||
"eslint-plugin-standard": "^2.0.1", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"istanbul": "^0.4.5", | ||
"js-yaml": "^3.8.1", | ||
"mocha": "^3.2.0", | ||
@@ -33,4 +39,4 @@ "rimraf": "^2.5.4" | ||
"test": "mocha test/*.mocha.js", | ||
"pack": "npm run clean && npm i && npm run yaml && npm run lint && npm test && npm pack", | ||
"yaml": "node build/yaml2json.js", | ||
"all": "npm run clean && npm i && npm run yaml && npm run lint && npm test && npm pack", | ||
"yaml": "node build/holidays2json.js", | ||
"cover": "istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js", | ||
@@ -37,0 +43,0 @@ "lint": "eslint --quiet '**/*.js'", |
@@ -36,2 +36,3 @@ # date-holidays | ||
* [Data](#data) | ||
* [Custom builds of `holidays.json`](#custom-builds-of-holidaysjson) | ||
* [Contribution and License Agreement](#contribution-and-license-agreement) | ||
@@ -442,2 +443,25 @@ * [License](#license) | ||
## Custom builds of `holidays.json` | ||
If only selected countries are required in `data/holidays.json` you can add the following script to your npm scripts section. E.g. for picking just US, Canada, Mexico do the following: | ||
```js | ||
"scripts": { | ||
"build": "holidays2json --pick US,CA,MX" | ||
}, | ||
``` | ||
Alternatively you may use the `--omit` option. | ||
Manually use | ||
```bash | ||
$(npm bin)/holidays2json --pick US,CA,MX | ||
``` | ||
> **NOTE:** There are some countries which depend on data of others which | ||
> might render the file useless. e.g. "GU" requires "US", so try | ||
> to pick or omit both. | ||
## Contribution and License Agreement | ||
@@ -479,2 +503,1 @@ | ||
[date-holidays-ical]: https://github.com/commenthol/date-holidays-ical | ||
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
576325
18
12578
501
5
9
1
+ Addedjs-yaml@^3.8.1
+ Addedargparse@1.0.10(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedsprintf-js@1.0.3(transitive)