@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>