-
Notifications
You must be signed in to change notification settings - Fork 2.3k
chore(types): add function types to element and locators #3279
Conversation
cnishina
commented
Jun 17, 2016
- add 'gulp types' to output index.d.ts
- some clean up for functions to use fat arrow
- clang clean up
contents += ' export = protractor\n'; | ||
contents += '}\n'; | ||
|
||
// remove files with d.ts |
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 this step? Do they interfere if left in?
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 thought this would be cleaner to have one d.ts file instead of many when we publish to npm
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.
ok, sgtm.
Main concern is the fat-arrowing of the module that shouldn't be ES6ey. Other stuff looks reasonable. |
f8fb089
to
110992e
Compare
@@ -65,3 +68,42 @@ gulp.task('pretest', function(done) { | |||
}); | |||
|
|||
gulp.task('default',['prepublish']); | |||
|
|||
gulp.task('types', ['tsc'], function(done) { |
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.
This task should be added to the sequence for 'prepublish' now.
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.
Adding the task to prepublish.
Looks good after Travis finishes (I re-ran it after a sauce connect flake) and one more comment on the gulpfile. |
- add 'gulp types' to output index.d.ts - some clean up for functions to use fat arrow - clang clean up
110992e
to
5c2c1b3
Compare