@itasis/oasis-tools
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

oasis-tools

The tool for OASIS services

Prerequisites

  • NodeJS >= 14 (Recommend Node 16)
  • yarn@1.19.0 (Not using npm due to the workspaces feature)

How to use?

Create docker file

  • Script to execute:
  yarn oasis-tools create-docker 
  • Options(optional):
    • "--functions-dir": The directory containing the functions
    • "--root-dir": The root directory

Create index.ts files for services

  • Script to execute:
  npx ts-node --transpile-only --prefer-ts-exts node_modules/oasis-tools/cli.ts create-handler 
  • Options(optional):
    • "--functions-dir": The directory containing the functions
    • "--excludes": The services exclude when generating actions

Create actions for moleculer service

  • Script to execute:
  yarn oasis-tools create-moleculer 
  • Options(optional):
    • "--functions-dir": The directory containing the functions
    • "--packages-dir": The directory containing the packages
    • "--excludes": The services exclude when generating actions

Create a user or get token from existing user

  • Script to execute:
  yarn oasis-tools create-user --email your@mail.com --password test123456 --clientId xyz --poolId ap-southeast-1_AABBCC --region ap-southeast-1

Readme

Keywords

none

Package Sidebar

Install

npm i @itasis/oasis-tools

Weekly Downloads

0

Version

1.6.0

License

none

Unpacked Size

59 kB

Total Files

21

Last publish

Collaborators

  • lucduong