Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform Typescript code using Browserify #47

Open
riteshe63 opened this issue Oct 4, 2016 · 1 comment
Open

Transform Typescript code using Browserify #47

riteshe63 opened this issue Oct 4, 2016 · 1 comment
Assignees

Comments

@riteshe63
Copy link
Contributor

riteshe63 commented Oct 4, 2016

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

@gaurav21r
Copy link
Member

gaurav21r commented Oct 20, 2016

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants