ryuu

4.4.7 • Public • Published

Ryuu CLI

A command line interface to the Domo App Framework.

npm version install size npm downloads Known Vulnerabilities

Documentation

Contributing

Recommended Workflow:

  1. Create new branch (named "DOMO-XXXXXX")
  2. Make Changes
  3. Commit Changes
  4. Test changes (if necessary, release an alpha/beta/tagged version)
  5. Make pull request
  6. After pull request is merged to master, release a full version via npm run release, then release it to brew and chocolatey

Building

To build the CLI, run

npm run build

All necessary files will be built/copied into the dist folder.

Linking

In order for easier development with ryuu-proxy or ryuu-client, use linking.

  1. cd into the folder that you cloned ryuu-proxy/ryuu-client to, ex. cd ~/ryuu/ryuu-proxy
  2. npm link
  3. cd into the folder that you cloned domoapps-cli to, ex cd ~/ryuu/domoapps-cli
  4. npm link @domoinc/ryuu-proxy (this is because the package name for ryuu-proxy is @domoinc/ryuu-proxy) Use npm unlink in both locations to unlink the repositories later if needed.

Debugging

Debugging is most easily done via the the native node extension in VSCode.

  1. Run node and point it to the built domo.js file in dist/bin after building
    node --inspect-brk ~/ryuu/domoapps-cli/dist/bin/domo.js [command]
  2. ⌘ Command + ⇧ Shift + P to open the VSCode command palette.
  3. Select Debug: Attach to Node Process and select the node process you just started in step 1.
  4. The process should move your active window to the beginning of the CLI (generally domo.ts), and you can start debugging.

TIPS:

  • Set breakpoints in the .ts files for domoapps-cli, and in the .js files for all node modules, unless you've utilized npm link like for ryuu-client/ryuu-proxy, in which case you can use the .ts files as well.
  • If your breakpoint isn't being hit, try to "advance" the code to make sure the breakpoint is being set in the right file.

Versioning

This project utilizes standard-version. Versions should be bumped via the npm run release commands.

Releasing

Versions should be released on NPM until confirmed stable, at which point brew and chocolatey can be released

  • npm run release
  • npm run releaseAlpha
  • npm run releaseBeta
  • npm run releaseBrew
  • npm run releaseChocolatey

Committing the latest Phoenix version

npm install @domoinc/domo-phoenix@latest
npm run build:phoenix
git add templates/**/domoPhoenix*.js
git commit -m "Update to the latest Phoenix version"

Readme

Keywords

Package Sidebar

Install

npm i ryuu

Weekly Downloads

162

Version

4.4.7

License

SEE LICENSE IN LICENSE

Unpacked Size

835 kB

Total Files

105

Last publish

Collaborators

  • bmoss
  • domo
  • jmnemelka
  • ttingey