tschaub / grunt-newer

Configure Grunt tasks to run with newer files only.
https://npmjs.org/package/grunt-newer
MIT License
945 stars 53 forks source link

Avoid unhandled error when used with aliases #61

Closed tschaub closed 9 years ago

tschaub commented 9 years ago

Grunt doesn't provide an easy way to access the list of tasks associated with an alias. Instead of an unhandled error, the task should fail.

See #59.

FagnerMartinsBrack commented 9 years ago

I opened https://github.com/gruntjs/grunt/issues/1238 in case grunt is willing to add this feature.

paulsouche commented 9 years ago

hi

Same issue here. Is there a way to launch the two tasks within a watch ?

    watch: {
      options : {
        interrupt: true
      },
      js: {
        files: [...],
        tasks: ['newer:jscs', 'newer:jshint']
      }
    }

Does not work for me

Thanks

FagnerMartinsBrack commented 9 years ago

It doesn't seems to be related to grunt-newer plugin, it looks like something to be looked up in grunt-contrib-watch docs.

paulsouche commented 9 years ago

Yeah just asking...

    watch: {
      options : {
        interrupt: true
      },
      jscs: {
        files: [...],
        tasks: ['newer:jscs']
      },
      jshint: {
        files: ['Same files'],
        tasks: ['newer:jshint']
      }
    }

Works but is a little bit verbose