Any contribution to this project is very welcome, especially holidays from new countries or updates.
Welcome.
If you like to add or change data please take a look at holidays.yaml specification.
- Fork the project
- Create a branch for your changes
- Modify
data/holidays.yaml
for holiday data and/ordata/names.yaml
for translations as appropriate - Generate the Json file from the yaml files with
npm run yaml
- Run the samples file with the country containing your changes, e.g. here for "at.w" (Austria, Vienna)
To check translation, e.g. English
node test/sample.js "at.w" 2016
node test/sample.js "at.w" 2016 en
- Run the tests with
npm test
- If a new country was added there might be failing tests in Step 5.
Generate these with:Now check any changes withmocha test/all.mocha.js --writetests
git diff test/fixtures
. Make sure that your changes did not affect other countries. - Push your branch to GitHub and submit a pull request
- Monitor the pull request to make sure the Travis build succeeds. If it fails simply make the necessary changes to your branch and push it. Travis will re-test the changes.
That's it. If you don't feel comfortable forking the project or modifying the YAML you can also submit an issue that includes the appropriate holiday data and required rules.
Please do not forget to name your source of information.
Thanks!