gruntjs / grunt

Grunt: The JavaScript Task Runner
http://gruntjs.com/
Other
12.27k stars 1.5k forks source link

Feature Request: Adopt grunt-concurrent #1213

Open robcolburn opened 10 years ago

robcolburn commented 10 years ago

I know having a small core, and an army of grunt plugins to mix and match is fantastic, but let's consider adopting this one sometimes a little buggy module.

So maybe a simplistic site builds out something like:

module.exports =
  build: [
    'concurrent:assets'
    'newer:uglify'
    'compass'
    'autoprefixer'
  ]
module.exports =
  assets: [
    'newer:imagemin'
    'newer:svgmin'
  ]

But, then you start adding more tasks, and you go to something like

module.exports =
  build: [
    'concurrent:build1'
    'concurrent:build2'
    'autoprefixer'
  ]
module.exports =
  build1: [
    'newer:imagemin'
    'newer:svgmin'
    'newer:coffeeify'
  ]
  build2: [
    'compass'
    'newer:uglify'
  ]

This is okay, but a little ugly, not so semantic. With concurrent in core, we could make things a bit prettier…

module.exports =
  build: [
    [  
      'newer:imagemin'
      'newer:svgmin'
      'newer:coffeeify'
    ]
    [
      'compass'
      'newer:uglify'
    ]
    'autoprefixer'
  ]
chicoxyzzy commented 9 years ago

looks cool :+1: