0.0.9 • Published 8 years ago

broccoli-typescript-incremental v0.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Gives broccoli typescript powers. Incrementally.

Why?

Usage

First, install broccoli, then typescript.

npm install broccoli-cli -g
npm install typescript broccoli --save-dev

Next, create your brocfile.js.

var compileTypescript = require('broccoli-typescript-incremental');

var srcDir = 'your/path/to/src';
var TypescriptTree = compileTypescript(srcDir, {
  sourceMap: true,
  passthrough: true
  //Any typescript compiler options go here.
  //See http://json.schemastore.org/tsconfig
});

module.exports = TypescriptTree;

Finally, run broccoli. Note that incremental build does not work here.

broccoli build dist/

For incremental build, use broccoli-timepiece instead.

broccoli-timepiece dist/

This puts a watch on the folder - rebuilding is done automatically and the cache is used.

Limitations

All files used for compilation must be passed into the broccoli tree for compilation. In particular, take special note of the typescript definitions.

In particular, the "Could not find file in cache" error is related to this.

Future work

  • Manage file dependencies. When the build process gets sufficiently slow, to rewrite .ts dependencies and replace with preprocessed .ts.d. files which only get rebuilt when required.
0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago