Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

smack0007/TSWrangler

Repository files navigation

The MIT License Build Status

TSWrangler

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.

Credits

Adapted logo Lasso by Hea Poh Lin from the Noun Project.

Author

Zachary Snow aka smack0007.

About

Mini framework for building TypeScript apps.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published