1.0.0 • Published 5 years ago
ts-land v1.0.0
ts-land
The only tool you will ever need for TypeScript
Installation
npm install -D ts-landVerify installation
tsl --versionUsage
run
tsl run <file.ts> # tsl run src/server.tsExecutes a ts file directly from the command line
dev
tsl dev <file.ts> # tsl dev src/server.tsUses 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 distCompile 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 distBuilds a TypeScript file using tsc, bundles all modules into one file with browserify and minifies it using uglify-js