angular.ts2js

0.0.1 • Public • Published

angular.ts2js

From the command line

node rewrite -f=examples/simple/app.ts or gulp rewrite -f=examples/simple/app.ts

To specify a suffix

node rewrite -f=examples/simple/app.ts --suffix=test or gulp rewrite -f=examples/simple/app.ts --suffix=test

To specify an output folder

node rewrite -f=examples/simple/app.ts --outDir=foo or gulp rewrite -f=examples/simple/app.ts --outDir=foo

From code

npm install angular2.ts2js

In your app.

var rewriter = require('angular.ts2js');
rewriter.rewrite('c:/foo/bar'); // to rewrite every .ts file in the foo/bar dir
// or
rewriter.rewrite('c:/foo/bar/xxx.ts') // to rewrite just the xxx.ts file
//
rewriter.rewrite('c:/foo/bar', { outDir='foo', suffix='test' }); // to specify an outDir and a suffix

License

Powered by Google ©2010-2015. Code licensed under the Apache License, Version 2.0. Documentation licensed under CC BY 3.0.

/angular.ts2js/

    Package Sidebar

    Install

    npm i angular.ts2js

    Weekly Downloads

    0

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • ideablade