typebundle
A personalized build process for projects.
Last updated a month ago by rdm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install typebundle 
SYNC missed versions from official npm registry.

Typebundle

Zero-config Node.js library bundler with support for Babel-transpiled TypeScript. A work in progress! Outputs both compiled JavaScript and valid TypeScript d.ts files.

Installation

npm i -D typebundle

Usage

typebundle <input> [--options]

Typebundle's primary interface is on the command line. The only required positional argument is <input>, which tells typebundle which files to consider entry points. Any glob that's compatible with tiny-glob is valid and switches typebundle into multi-entry mode if it finds multiple files.

A single source file

typebundle src/index.ts --output dist --target 8

Multiple source files

typebundle "src/{cli,index}.ts" --output dist --target 8

Run in watch mode

typebundle src/index.ts --output dist --target 8 --watch

Options

--output      The output directory, defaults to "dist"

--compress    If passed, "terser" will be used to minify the output

--target      The minimum version of Node.js to target for transpiling, this
              is passed directly to "@babel/preset-env" at "targets.node",
              defaults to "current"

--types       The directory where "d.ts" files are output, defaults to where
              --output is set

--watch       Watches source files for changes and re-builds, does not output
              "d.ts" files for speed

License

MIT

Current Tags

  • 0.6.0                                ...           latest (a month ago)

7 Versions

  • 0.6.0                                ...           a month ago
  • 0.5.1                                ...           2 months ago
  • 0.5.0                                ...           3 months ago
  • 0.4.0                                ...           3 months ago
  • 0.3.0                                ...           4 months ago
  • 0.2.0                                ...           4 months ago
  • 0.1.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 28
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |