-
Notifications
You must be signed in to change notification settings - Fork 3
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
Gulp task to create declaration file #27
Conversation
|
||
return merge(streams); | ||
}); | ||
|
||
gulp.task('declarations', () => { | ||
var project = ts.createProject('tsconfig.json', { outFile: 'angular2-polyfill.js' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const project
Nice! I think this is what I am looking for! Have to reconfirm tomorrow but looks promising. Just added a few remarks.
Good catch, something went wrong with my latest push :) |
I made the corrections according to your comments. Would you like a linter to be added? If so, which one (jslint/eslint)? What about TypeScript linting? Maybe those questions should be adressed in another issue... |
Just tested the type definition. It works but the module names should be prefixed with Angular2 actually has one repository for all the angular core stuff if I'm not mistaken. (angular2, angular2-dart). Every project has it's own
When releasing, the |
@SamVerschueren That would solve the problem of relative paths at least, and it would make sense to only deploy the |
Gulp task to create declaration file
Might have to revert the merge. Can't seem to figure out how I can prefix the modules with |
Ok, just got to merge your updated project in my fork (not exactly a GitHub expert), then I'm on it! |
Thanks for looking into this! Really appreciate it. This might help: https://help.github.com/articles/syncing-a-fork/ |
Yep, managed to get it with the new branch. Time to start on the actual stuff! |
Man... That was hot! I will submit a new pull request on the branch with something that works (hopefully) as expected. |
A new gulp task was created to allow for the generation of a bundled declaration file output in the bundles folder.
Also, some (apparently) missing packages were added to the package.json file.