@test-release/nestjs
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

@test-release/nestjs

A micro generator for generating nestjs configuration.

CLI

I highly recommend using npx so that you don't have to install anything globally, and you can always get the latest version from npm.

  • optional --path=target_folder
npx @test-release/nestjs

Programmatically

You have to generate JSON schema and use execute function from @test-release/core:

// src/index.ts
import { execute, getProjectFolder, askYesNo } from '@test-release/core'
import { createSchema } from '@test-release/nestjs'

export const askIsDatabase = () => askYesNo('Do you want to use database?')

const generate = async () => {
  const projectFolder = getProjectFolder() ?? '.'
  const isDatabase = await askIsDatabase()

  const schema = createSchema({
    projectFolder,
    isDatabase,
  })
  await execute(schema, projectFolder)
}

generate()

Now all you have to do is run:

ts-node src/index.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @test-release/nestjs

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

22.8 kB

Total Files

31

Last publish

Collaborators

  • michal.jarnot