Thanks David. This looks really useful. Raul
On Apr 8, 2014, at 12:55 PM, David Spies <david.m.sp...@gmail.com> wrote: > Hi Raul, > You may already be aware of it, but there is a grunt plugin called ngMin > written by Brian Ford that will modify declarations from > angular.module('whatever').controller('MyCtrl', function ($scope, $http) { > ... }); > to > angular.module('whatever').controller('MyCtrl', ['$scope', '$http', function > ($scope, $http) { ... }]); > so minifiers (uglify) can handle Angular's DI. This doesn't answer your > question on how to identify things that are not min safe, but it may help you > eliminate them. This comes in Angular's Yeoman generator, so I use it quite > frequently. > > On Tuesday, April 8, 2014 8:20:46 AM UTC-7, Raul Vieira wrote: > > Mark, how do you check for things like not using min safe dependancy > injection? i.e., fail the build when it's not being used. > > Raul > > On Apr 8, 2014, at 10:34 AM, Mark Volkmann <r.mark....@gmail.com> wrote: > >> I recommend using both jshint and eslint. Both can be run from Grunt. The >> reason I recommend using both is that each finds issues that the other >> doesn't. >> >> >> On Tue, Apr 8, 2014 at 6:48 AM, <sophi...@gmail.com> wrote: >> I use grunt to uglify my code before publish. I aslo know the rule in the >> code for angularjs. thus, >> A Note on Minification >> >> I'm now looking for a tool which can lint the code in the whole project, >> like uglifyjs >> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to angular+u...@googlegroups.com. >> To post to this group, send email to ang...@googlegroups.com. >> Visit this group at http://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> R. Mark Volkmann >> Object Computing, Inc. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to angular+u...@googlegroups.com. >> To post to this group, send email to ang...@googlegroups.com. >> Visit this group at http://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.