Version: next

Command quick reference

Building

Node.js application

ts-engine build --node-app
# watch mode
ts-engine build --node-app --watch
# with react
ts-engine build --node-app --react
# typecheck
ts-engine build --node-app --typecheck

Library

ts-engine build --library
# watch mode
ts-engine build --library --watch
# with react
ts-engine build --library --react
# typecheck and emit types
ts-engine build --library --typecheck --emit

Linting

ts-engine lint
# fix fixable issues
ts-engine lint --fix
# with react and a11y rules
ts-engine lint --react

Make new packages

Node.js application

ts-engine new-package --node-app --name my-app
# with react
ts-engine new-package --node-app --react --name my-app

Library

ts-engine new-package --library --name my-lib
# with react
ts-engine new-package --library --react --name my-lib

Start Node.js applications

ts-engine start
# watch mode
ts-engine start --watch
# typecheck
ts-engine start --typecheck
# with react
ts-engine start --react

Running tests

ts-engine test
# with react
ts-engine test --react
# with Jest options
ts-engine <jest_options>

Typechecking

ts-engine typecheck
# emit type declaration files
ts-engine typecheck --emit
# watch mode
ts-engine typecheck --watch

Options

# Print available commands and their options
ts-engine --help
# Print version
ts-engine --version