Sends reminders to Slack that you have upcoming holidays next week
- clone this repo
npm install
cp src/config-example.js src/config.js
- Fill in the values in the
src/config.js
file. npm run dev
You will need to also setup a Slack Webhook for the results to be sent to.
Example of the expected JSON file:
{
"2017": [
"2017-01-02",
"2017-02-13",
"2017-04-14",
"2017-05-22",
"2017-07-03",
"2017-08-07",
"2017-09-04",
"2017-10-09",
"2017-11-13",
"2017-12-25",
"2017-12-26",
"2017-12-27",
"2017-12-28",
"2017-12-29"
]
}
It expects an object keyed by the current year, and then an array of dates in YYYY-MM-DD
format inside of that.
Run npm start
to execute the program in production mode. You will need to run npm run build
first. This will actually ping Slack with an @channel
mention.
npm run lint
npm run build
npm run dev
npm run build
node lib/
or
npm start
- ./src - source code, stays in git repo.
- ./lib - transpiled ES5 code, not saved in git, gets published to npm.