typescript-bundler
v1.0.1
Published
A Zero-configuration TypeScript transpiler and bundler
Readme
TypeScript Bundler
A Zero-configuration TypeScript transpiler and bundler.
Features
- Transpile
.tsfile to.jsand.d.ts - Bundle
.jsand.d.tsoutput automatically - Inline and treeshaking
sideEffectFree: falsees modules which defined indevDependencies - Allow multiple
.tsentries underbinorlibfolder - Compress the
publicfolder withgzip,br2andwebp - Mangle, Prettier output code automatically
- Generate
package.jsonfor the bundle - Generate
settings.jsfrom different type of config files - No intermediate files written on disk, keep your project folder clean
- Improve
agentframeworkperformance
How to use?
- Install
npm i -g git+ssh://[email protected]/e2tox/tsb.git- Make your project structure similar as following:
Project
|-- bin
| |-- cli.ts
| |-- ...
|
|-- conf
| |-- settings.properties
| |-- settings.yaml
| |-- ...
|
|-- lib
| |-- index.ts
| |-- library.ts
| |-- utils.ts
| |-- ...
|
|-- public
| |-- image.gif
| |-- page.html
| |-- embeded.js
| |-- ...
|
|-- src
| |-- app.ts
| |-- utils.ts
| |-- services
| | |-- users.ts
| | |-- groups.ts
| | |-- ...
| |-- ...
|
|-- index.ts
|-- package.json
|-- tsconfig.json- run this command at project root
tsbSupported Configuration Files
- JavaScript File (settings.js)
- JSON File (settings.json)
- YAML File (settings.yaml, settings.yml)
- JSON File (settings.json)
- JSON5 File (settings.json5)
- INI File (settings.ini)
- Properties File (settings.properties)
Report Bugs
https://github.com/e2tox/tsb/issues
Please also include a link to a sample code repository which can reproduce the issue.
