Prerequisites:
- Node.js 12
- Yarn package manager
- Python 2.x and or 3.x
$ cd slack_alerts
$ yarn install
In order to build the app run
$ yarn build
If you want to link your built app to a local Splunk instance, run
$ yarn symlink
Note: you'll have to have your $SPLUNK_HOME
environment variable set correctly.
To build a package you can upload to Splunkbase, run the following command:
$ yarn package
This will create a *.spl
file in the dist/
directory.
This project uses prettier to ensure consistent code formatting. You may want to add a prettier plugin to your editor/ide for a smooth experience.
To execute unit tests, run:
$ yarn test
(This requires a python environment to be set up)