livingsocial / rake-pipeline

An extension to Rake for dealing with a directory of inputs, a number of filters, and a directory of outputs
MIT License
276 stars 38 forks source link

Declaring dependencies of inputs #62

Closed ppcano closed 12 years ago

ppcano commented 12 years ago

I think the maintainers are yet notified about this feature. With the current implementation, if i use import statements which points to other files, and updates the import/dependent file, this won't be added to the next output file.

Below, i wanted to share an api suggestions.


input "less" do

  match "views/*.less" depends "import/*.less" do
     filter CustomFilter
     concat "project.css"
  end

end
ahawkins commented 12 years ago

@ppcano this is fixed in 0.7.0 (just released a few days ago). @wycats you can close this one.

manoharank commented 11 years ago

@twinturbo @ppcano What would be the solution for this problem? I can't figure out.

ahawkins commented 11 years ago

@manoit88 see the DynamicFileTask. All filters have an additional_inputs method for this use case. IE they can return all the files imported (LESS/SASS).

manoharank commented 11 years ago

@twinturbo Thank you.