ts-land
The only tool you will ever need for TypeScript
Installation
npm install -D ts-land
Verify installation
tsl --version
Usage
run
tsl run <file.ts> # tsl run src/server.ts
Executes a ts
file directly from the command line
dev
tsl dev <file.ts> # tsl dev src/server.ts
Uses nodemon to reload your app on every change.
You can modify the package.json
to ignore certain files or folders.
Check out the nodemon docs for all available options.
build
tsl build <file.ts> <outputDirectory> # tsl build src/server.ts dist
Compile a TypeScript project into a single index.js
file, together with all its dependencies using @vercel/ncc
browser
tsl browser <file.ts> <outputDirectory> # tsl browser src/server.ts dist
Builds a TypeScript file using tsc, bundles all modules into one file with browserify and minifies it using uglify-js