Templates to TypeScript bundler (v0.1.1). Converts HTML files with script[type='text/template'] into a TypeScript module with a hash of stringified templates. Recursively crawls directories; generates internal modules. Highly specific utility; no active maintenance since 2016. Differentiator: direct TS output without runtime dependencies.
npm install template-bundlerVerified import paths — ran on the pinned version, not inferred.
Shows how to run the tb CLI to bundle templates into a TypeScript file with a custom module name.
Provide all three arguments in the correct order: tb <dir> <output> <moduleName>
Use /// <reference path='output.ts' /> or compile with --module amd/commonjs and include the file. Consider using a modern bundler instead.
Evaluate alternative template bundlers like lit-html or handlebars-loader.
Ensure templates have .template.html extension (recommended) or just .html.
Run npm install -g template-bundler and ensure npm global bin is in PATH.
Use /// <reference path='./output.ts' /> in a TypeScript file that uses the module, or include output.ts in your tsconfig.json files list.
No dependency data recorded yet.