-
Notifications
You must be signed in to change notification settings - Fork 664
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
Fix static checking support (jshint, coffeelint, tslint) #279
Conversation
<% if (props.jsPreprocessor.extension === 'js') { %> | ||
.pipe($.jshint()) | ||
.pipe($.jshint.reporter('jshint-stylish')) | ||
<% } if (props.jsPreprocessor.key !== 'none') { %> |
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 remove this line because it's dead code, as gulp/script.js
won't be included if props.jsPreprocessor.key === 'none'
.
559062f
to
c2ff5f9
Compare
I don't like adding a new gulp script. We could use the |
So i remove https://github.com/Swiip/generator-gulp-angular/blob/master/app/src/format.js#L203-L205 for script to be included when no js preprocessor ? |
And what about |
@Swiip please tell me your thinkings about the current implementation. I've added a global |
Ping :) |
Ping @Toilal |
Sorry for delay, i'm on it. |
I've rebased locally, but |
|
Ok, i needed to remove old temporary directories from |
c4f4d49
to
9cbeff7
Compare
Ready to merge I think. Note that |
errorHandler: function(title) { | ||
failOnLintErrors: true, | ||
failOnCompileErrors: true, | ||
errorHandler: function(title, throw_) { |
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 throw_
? strange name for a variable
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.
throw is a reserved keyword
Le 20 févr. 2015 11:33, "Mehdy Dara" notifications@github.com a écrit :
In app/templates/_gulpfile.js
#279 (comment)
:@@ -10,10 +10,16 @@ var options = {
dist: '<%= props.paths.dist %>',
tmp: '<%= props.paths.tmp %>',
e2e: '<%= props.paths.e2e %>',
- errorHandler: function(title) {
- failOnLintErrors: true,
- failOnCompileErrors: true,
- errorHandler: function(title, throw_) {
Why throw_ ? strange name for a variable
—
Reply to this email directly or view it on GitHub
https://github.com/Swiip/generator-gulp-angular/pull/279/files#r25061614
.
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.
yeah throw
is reserved. rename throw_
to error
Any idea why it fails on iojs ? |
Maybe conflict with node-sass I restart build |
Can you rebase your branch with master ? We fix travis by ignore fail on iojs. |
aa0783c
to
1922a8b
Compare
I've just rebased this one, could you merge ? |
This close #277, but also moves all jshint/coffeelint/tslint to a static.js gulp file, support two tasks :
static
andstatic:fail
.static
only displays warning, butstatic:fail
also raise an error.Those tasks are registered in
gulp build
(static:fail
) andgulp watch
(static
).