catalist-nestjs-modules

0.0.7 • Public • Published

Catalist NestJS Modules

NestJS modules for Catalist projects.

Packages

Install

  1. yarn && yarn postinstall
  2. yarn typechain
  3. yarn build

Usage

  • yarn build — Build all packages
  • yarn lint — Run eslint across packages
  • yarn test — Run tests across packages
  • yarn test:package {package name} — Run tests for one package
  • yarn test:watch — Run tests in watch mode
  • yarn test:e2e — Run E2E tests (ensure $EL_RPC_URL env variable set)

Migrations

Database migration files should be placed in /packages/{package name}/src/migrations/ folder. Migrations filenames should comply with the datetime pattern: MigrationYYYYMMDDhhmmss.ts

Where:

  • YYYY - year (example: 2022)
  • MM - month (example: 01)
  • DD - day of month (example: 29)
  • hh - hour in 24h format (example: 23)
  • mm - minutes (example: 05)
  • ss - seconds (example: 02)

Examples:

  • Migration20220301040302.ts
  • Migration20221129230502.ts

Please DO NOT edit migrations after they are created and pushed to NPM. If you want to change the migration, please make another one with the needed database schema transitions.

/catalist-nestjs-modules/

    Package Sidebar

    Install

    npm i catalist-nestjs-modules

    Weekly Downloads

    111

    Version

    0.0.7

    License

    none

    Unpacked Size

    971 kB

    Total Files

    33

    Last publish

    Collaborators

    • upvu