AVA-Pattern icon indicating copy to clipboard operation
AVA-Pattern copied to clipboard

Assumptions on Asset Manager

Open MarioRicalde opened this issue 13 years ago • 4 comments

As of now with AVA Pattern we've been making some assumptions on the javascripts and stylesheets directories, most of them are related to the fact that to really get benefits from AVA Pattern you need to have a Asset Manager to merge files into one and to minify them accordingly.

Do you think this is bad?

Somehow I think that these assumptions are a good practice that everyone should be including on their developing environments. Having one HUGE file or multiple files invoked from the main HTML document is not a good practice.

Thoughts?

MarioRicalde avatar Jun 16 '11 21:06 MarioRicalde

Of course, most of the Rails Developers that could use this in the future will be using Sprockets by default.

MarioRicalde avatar Jun 16 '11 21:06 MarioRicalde

Technically, on the SASS side, you wouldn't need to have an asset manager for this to work. You would just be @importing across files. Am I wrong?

I have less expertise on the javascript opinion.

When you say "to really get benefits from AVA pattern you need to have a Asset Manager to merge..." why do you think that to really get the benefit from the AVA pattern you have to use an asset manager? I actually see the AVA pattern existing outside of that as a general best practice of how to structure your stylesheets and javascripts.

dfischer avatar Jun 16 '11 22:06 dfischer

AVA enforces splitting the code into multiple files, some people may want to use this by including files into the html document. That's bad!

When I mean asset packager, is anything that grabs the files and merge them (including sass) :)

MarioRicalde avatar Jun 16 '11 22:06 MarioRicalde

Okay. I think we have a solution then. We can create a section of the documentation and possibly helper scripts to automatically compile down in case Rails isn't present, or Sass for that matter.

YUI compressor script?

dfischer avatar Jun 17 '11 00:06 dfischer