-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Switch production codegen to use closure compiler. #1390
Conversation
1b7b230
to
a9e110d
Compare
woot, nice find on the compiler issue (for the spread) |
6d62efc
to
d5c4569
Compare
@erwinmombay Do you want to do a review?
|
.pipe(rename(outputFilename + '.map')) | ||
.pipe(gulp.dest(outputDir)) | ||
.on('end', resolve); | ||
return gulp.src(intermediateFilename) |
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.
does this work correctly? i don't think iv'e ever started a read
(using gulp.src) again on an event. ideally we'd break these down into smaller gulp tasks so we can sequence them correctly.
/cc @jridgewell
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.
It does work. Although I hate gulp and don't want to learn it :)
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.
i'm perfectly fine with this as long as it works. was just worried if there was anything racy (because of async nature of tasks. guessing gulp knows its still working)
haha yes, gulp likes to make things that are supposed to be easy slightly hard sometimes..
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.
Why are we using an intermediate file name at all?
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.
Just for the gulp-replace
, I can get rid of it for the source map.
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.
Can you do the replace before passing it to closure?
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.
I can't because the gulp-closure plugin doesn't actually work on streams.
@cramforce besides the questions, LGTM |
a048ebe
to
d3768c4
Compare
Now with 100% less hacks :) |
d3768c4
to
6e761bb
Compare
6e761bb
to
25f678a
Compare
YOLO |
Switch production codegen to use closure compiler.
Production part of #86. Does not implement type checking.