@leecheneler/ts-kit

1.0.0 • Public • Published

@leecheneler/ts-kit

Core package providing the ts-kit CLI.

Getting Started

Install the package

yarn add --dev @leecheneler/ts-kit

Create entry file

// src/main.ts

console.log("Hello world!");

Run a build

yarn run ts-kit build

Check output

A new build will be available in dist/main.js.

Usage

Build

Builds your code using Rollup.

# Single build
ts-kit build

# Build and watch for changes
ts-kit build --watch

Typecheck

Type checks your code using TypeScript.

# Check types only
ts-kit typecheck

# Check types and emit type declaration files
ts-kit typecheck --emit

Lint

Lints your code using ESLint.

# Lint your code
ts-kit lint

# Lint your code and automatically fix fixable issues
ts-kit lint --fix

Test

Runs your unit tests using Jest.

# Run tests once
ts-kit test

# All args EXCEPT for --config are forward onto jest
ts-kit test <jest_cli_args>

Readme

Keywords

none

Package Sidebar

Install

npm i @leecheneler/ts-kit

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

43.4 kB

Total Files

15

Last publish

Collaborators

  • leecheneler