ngUpgraders / ng-forward

The default solution for those that want to write Angular 2.x style code in Angular 1.x
411 stars 36 forks source link

Generate a unique definitions file (.d.ts) #123

Closed tolemac closed 8 years ago

tolemac commented 8 years ago

I'm trying to generate a .d.ts with all definitions (definitelyTyped style) for use ng-forward with TypeScript in Visual Studio TypeScript application.

I have tried with dts-bundle package:

var dtsGen = require('dts-bundle');
dtsGen.bundle({
        name: 'ng-forward',
        baseDir: 'dist',
        main: 'dist/lib/index.d.ts',
        verbose: true,
        out: 'ng-forward.d.ts'
    });

but I have problems with event-emitter.d.ts because it imports @reactivex/rxjs/dist/es6/Subject ...

I could do it by hand made but I would like to automate it with a gulp task or something like.

Any ideas?

tolemac commented 8 years ago

Close it, I have sumarized on #127