date-holidays
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "date-holidays", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "worldwide holidays", | ||
@@ -25,4 +25,2 @@ "keywords": [ | ||
"main": "lib", | ||
"module": "src", | ||
"jsnext:main": "src", | ||
"bin": { | ||
@@ -40,9 +38,11 @@ "holidays2json": "./scripts/holidays2json.js" | ||
"scripts": { | ||
"all": "npm run clean && npm i && npm run lint && npm run transpile && npm run yaml && npm test && npm pack", | ||
"clean": "rimraf lib node_modules", | ||
"all": "npm run clean && npm run lint && npm run build && npm run yaml && npm test", | ||
"build": "babel -d lib src", | ||
"clean": "rimraf lib", | ||
"clean:all": "rimraf node_modules && npm run clean", | ||
"lint": "eslint '**/*.js'", | ||
"test": "mocha", | ||
"test:ci": "npm run transpile && npm run yaml && npm test", | ||
"transpile": "babel -d lib src", | ||
"watch": "watch-run -p data/countries/*.yaml npm run yaml", | ||
"webpack": "webpack", | ||
"yaml": "node scripts/holidays2json.js" | ||
@@ -62,3 +62,3 @@ }, | ||
"dependencies": { | ||
"date-holidays-parser": "^1.2.0", | ||
"date-holidays-parser": "^1.2.1-0", | ||
"js-yaml": "^3.10.0", | ||
@@ -72,2 +72,3 @@ "lodash.omit": "^4.5.0", | ||
"babel-core": "^6.23.1", | ||
"babel-loader": "^7.1.4", | ||
"babel-preset-env": "^1.6.0", | ||
@@ -86,3 +87,7 @@ "babel-register": "^6.23.0", | ||
"rimraf": "^2.5.4", | ||
"serialize-to-js": "^1.0.0" | ||
"serialize-to-js": "^1.0.0", | ||
"uglifyjs-webpack-plugin": "^1.2.4", | ||
"webpack": "^4.1.1", | ||
"webpack-bundle-analyzer": "^2.11.1", | ||
"webpack-cli": "^2.0.12" | ||
}, | ||
@@ -92,3 +97,5 @@ "engines": { | ||
}, | ||
"maintainers": "commenthol <commenthol@gmail.com>" | ||
"maintainers": [ | ||
"commenthol <commenthol@gmail.com>" | ||
] | ||
} |
@@ -43,2 +43,3 @@ # date-holidays | ||
* [Custom builds of `holidays.json`](#custom-builds-of-holidaysjson) | ||
* [Bundling with webpack](#bundling-with-webpack) | ||
* [Contribution and License Agreement](#contribution-and-license-agreement) | ||
@@ -547,9 +548,9 @@ * [License](#license) | ||
| Browser | Version | Notes | | ||
| ------- | :-----: | ---------------------------- | | ||
| Chrome | >=45 | | | ||
| Firefox | >=45 | | | ||
| Safari | >=10 | | | ||
| Edge | >=13 | | | ||
| IE | >=10 | needs polyfill `core-js/es6` | | ||
| Browser | Version | Notes | | ||
| ------- | :-----: | ---------------------------- | | ||
| Chrome | >=45 | | | ||
| Firefox | >=45 | | | ||
| Safari | >=10 | | | ||
| Edge | >=13 | | | ||
| IE | >=10 | needs polyfill `core-js/es6` | | ||
@@ -576,3 +577,3 @@ Please do not forget to set the correct charset! | ||
All data for the holidays of the different countries is contained in | ||
[`./data/holidays.json`](./data/holidays.json). For changing holiday data edit the appropriate country in `./data/countries`. | ||
[`./data/holidays.json`](./data/holidays.json). For changing holiday data edit the appropriate country in `./data/countries`. | ||
Any details on structure and | ||
@@ -610,3 +611,18 @@ available grammar for holiday attribution is described in | ||
## Bundling with webpack | ||
To minimize bundle sizes consider adding the following lines in your webpack config. | ||
Please take a look at `./webpack.config.js`. To further reduce size consider custom builds by only selecting required countries. | ||
```js | ||
... | ||
plugins: [ | ||
// ---- do not bundle moment locales | ||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), | ||
// ---- do not bundle astronomia vsop planet data | ||
new webpack.IgnorePlugin(/^\.\/vsop87B.*$/) | ||
... | ||
``` | ||
## Contribution and License Agreement | ||
@@ -613,0 +629,0 @@ |
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
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
662
823368
21
266
15634