Open riteshe63 opened 7 years ago
@riteshe63 When we use type information for TS occasionally TS emits a lot of Warnings and Error which makes Browserify stop! At least when we use Browserify from the command line. This makes it unsuitable for a number of projects who don't use TS completely.
This issue is not there with gulp (verified) and I don't know about grunt. Please see issues and the docs. We need to find a solution for this. I was thinking of either fixing the grunt file or creating a grunt plugin ourselves which would fix this.
For transforming typescript into javascript we need to Install some modules with the help of the codes below:
npm install browserify
npm install typescript
npm install tsify
We can create bundle using Browserify:
browserify main.ts -p [ tsify --noImplicitAny ] > bundle.js
https://github.com/TypeStrong/tsify