@@ -55,6 +55,8 @@ module.exports = (grunt) ->
5555 grunt .initConfig options
5656
5757 lints = _ .keys (_ .omit (watch .coffeelint , ' options' ))
58+ coffeeLints = lints .map (n) -> " coffeelint:#{ n} "
59+ coffeeLintsThrow = lints .map (n) -> " coffeelint:#{ n} :throw"
5860
5961 lints .forEach (n) ->
6062 grunt .registerTask " coffeelint:#{ n} " , ->
@@ -63,17 +65,18 @@ module.exports = (grunt) ->
6365 grunt .registerTask " coffeelint:#{ n} :throw" , ->
6466 coffeelint ({src : watch .coffeelint [n].files }, @ async ())
6567
66- grunt .registerTask ' lint' , ( lints . map (n) -> " coffeelint: #{ n } " ). concat ( lints . map (n) -> " watch:coffeelint- #{ n } " )
68+ grunt .registerTask ' lint' , coffeeLints
6769
68- grunt .registerTask ' build' , [' bower' , ' clean:dist' , ' jshint' , ' mkdir' , ' coffee' , ' ngAnnotate' ,
70+ grunt .registerTask ' lintWatch' , lints .map (n) -> " watch:coffeelint-#{ n} "
71+
72+ grunt .registerTask ' build' , coffeeLintsThrow .concat [' bower' , ' clean:dist' , ' jshint' , ' mkdir' , ' lint' , ' coffee' , ' ngAnnotate' ,
6973 ' concat:libs' , ' replace' , ' webpack:commonjsDeps' ]
7074
7175 grunt .registerTask ' buildDist' , [' build' , ' concat:dist' ]
7276
7377 grunt .registerTask " default" , [ ' verbosity' , ' buildDist' , ' copy' , ' uglify:dist' , ' uglify:streetview' , ' karma' ]
7478
75- grunt .registerTask " buildAll" , (lints .map (n) -> " coffeelint:#{ n} :throw" ).concat [ " build" , " concat" ,
76- " uglify" , " copy" , " karma" , " graph" ]
79+ grunt .registerTask " buildAll" , " build" , " concat" , " uglify" , " copy" , " karma" , " graph"
7780
7881 # run default "grunt" prior to generate _SpecRunner.html
7982 grunt .registerTask " spec" , [ ' verbosity' , " buildDist" ,
0 commit comments