Skip to content

Anploe/snips-initial-skill-js

Repository files navigation

snips-action-testaction

testaction

Setup

# Install the dependencies and creates the config.ini file.
sh setup.sh

API Documentation

Check the javascript-toolkit package that this code uses under the hood.

Run

  • 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

Debug

In the src/index.js file:

// Replace 'error' with '*' to log everything
logger.enable('error')

Test & Lint

Requires mosquitto to be installed.

npm start

In test mode, i18n output and http calls are mocked.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published