TSWrangler is a build script for TypeScript applications based on .NET / MSBuild tooling. It is slightly oppinionated in that there is a suggested default application structure.
TSWrangler helps you to "package" your application. It works on the concept of application entry points. There are 3 types of entry points into your application:
- TypeScript files (default: src/main.ts)
- Scss files (default: src/main.scss)
- Html files (default: src/main.html)
Per default the script assumes there is only one file for each entry type but your project can be configured to include multiple files of each type. Each entry point also has an associated output path:
- main.ts => {ProjectName}.js
- main.scss => {ProjectName}.scss
- main.html => index.html
These default output paths can also be configured in the project.
Each entry point is scanned for imported files and a single
output file is produced per entry point. The syntax for doing
this in TypeScript and SCSS is already part of the language spec
but html files are scanned for <import src="file.html"></import>
tags.
Adapted logo Lasso by Hea Poh Lin from the Noun Project.
Zachary Snow aka smack0007.