Skip to content

booster-ts/booster-cli

Repository files navigation

booster-cli

Build Status Codacy Badge Codacy Badge

CLI for Booster-ts

Install

Booster-cli is available on npm.

$ npm i -g @booster-ts/cli

⚠️ The Documentation has been updated for Booster-TS CLI Version 0.3

Getting Started

Creating a new Project

$ boost new ProjectName

This will create a new project with all the dependencies needed to start. You can start working on your app with the entry file src/app.ts.

You can now use the CLI to generate the class files

$ boost g
Available Templates:
  - class

Will display all templates available in the project, By Default the CLI commes with the class template.

$ boost g class FileName

This will generate a new Class in src/FileName/FileName.ts using the class template

Once the Class generated you can use it in app.ts.

import { inject } from './injector';
import { FileName } from './FileName/FileName.ts'

const class = inject.inject(FileName);

/** You Can now interact with the class */

For more information you can view the Documentation