0.1.1 • Published 2 years ago

guesty-liv-scripts v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

🛠 liv-scripts

Guesty related scripts.

Features:

  1. workflows-getMock - Query multiple sources by hookId. Used for generating real-world mock objects.
  2. getGuestsInEU - Count account's guests that are from EU
  3. Etc. See in "scripts" folder.

Develop:

Important!
Copy file config.empty.json to config.json and place your secrets and connection strings there (make sure not to commit them!). Choose the script to run and execute:

$ node build/scripts/workflows-getMock.js --env=prod --hookId=611a6ed69e9ed7002e7c8b4f

  • Change env config settings by --env=<env-name>
  • Add node --inspect to debug.

Build:

$ yarn build

Watch & Build:

$ yarn watch

Run tests:

$ yarn test <optional: path-to-test-file>

Debug:

Select 'typescript' debug configuration, open file in vscode (to run it specifically) and run debugger

or:

Select 'Node Attach' debug configuration, run specific file in debug mode (you can pass also args):

$ node --inspect build/Main.js

Use:

Run:

$ yarn run
or:
$ node build/Main.js


Scaffolded with 🏗 TS-scaffold