# Install the dependencies and creates the config.ini file.
sh setup.sh
Check the javascript-toolkit package that this code uses under the hood.
- Dev mode:
# Dev mode watches for file changes and restarts the action.
npm run dev
- Prod mode:
# 1) Lint, transpile and test.
npm start
# 2) Run the action.
npm run launch
In the src/index.js
file:
// Replace 'error' with '*' to log everything
logger.enable('error')
Requires mosquitto to be installed.
npm start
In test mode, i18n output and http calls are mocked.