sheerun / bowered

Bower client that integrates with Sprockets
MIT License
2 stars 0 forks source link

Asset conversion process #6

Open sheerun opened 10 years ago

sheerun commented 10 years ago

This should be extracted from rails-assets. It handles following:

The output of this task is class:

class AssetConverter
  # @param source [Pathname] - where bower installed component
  # @param destination [Pathname] - where to save converted component
  # @raises [BoweredError] - if conversion fails for some reason
  def call(source, destination)
  end
end

Questions:

  1. Any other transformations?
  2. Are those transformations reasonable?
  3. Should this class accept / return Pathname? It's hard to test.