Skip to content

Speed up tasks by only running on changed files #50

@sindresorhus

Description

@sindresorhus

I don't know the best way to implement it, but from being involved in grunt early on, we've gotten that request a lot.

It makes sense too. It would be way faster to only execute on a changed file instead of everything.

Let's say you have a sass and coffescript task. You run Automaton, and it takes some time. You then change one of the CoffeScript files and run Automaton again. I now recompiles all Sass and CoffeScript files for this little change. This is extremely inefficient.

What it however should have done, somehow, is to only recompile the changed CoffeScript file.

This is a fairly common pattern, so it shouldn't require a lot of boilerplate in the task.


Related grunt issue: gruntjs/grunt#212


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions