-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove JS and CSS assets from the repository #1581
Comments
They should be their own gems. e.g. there is jquery-rails, fontawesome-rails etc. I know those gems are for end-users, but no reason we couldn't use the same convention. But I think a light framework to load external assets is also a good idea? |
The problem is that those gems are meant for use with an asset pipeline. As we don't have one by default, we have to vendor or build specific integrations for those gems. |
@padrino/core-members what do you think of using googleapis for jquery and bootstrapcdn for bootstrap and fontawesome? This does not require any pipelines and the only drawback is the client has to be online. And I think it should not be a problem if we write a task, say, assets:download that would put all the assets to public and build helpers to be inserted instead of the default ones. This way we could remove ~1.5 mb of useless data from the repository and free ourselves from the pain of I made this branch https://github.com/padrino/padrino-framework/tree/clean-admin to test the cdns out and I'm willing to write the tasks if this solution is found appropriate. |
I object for multiple reasons:
We should find a proper solution for the asset pipeline problem and padrino-admin is a good software we can use for that. This suggestion is basically sidestepping the problem. The 1.5 MB of data are not useless (they are the assets required to run every version of the program, repeatably) and huge changes bring huge diffs. A possible fix would be include the libraries as submodules. Regards, On 16 Feb 2014, at 20:47, Igor Bochkariov notifications@github.com wrote:
|
Could you please elaborate why you think they are "clearly" useless? On 16 Feb 2014, at 21:35, Igor Bochkariov notifications@github.com wrote:
|
It smells. I'm afraid it's gonna rot. I'm sorry if I'm not clear enough. |
If you add a piece a of custom code the vendorizes a specific external version, it will rot just as much, + you have to maintain that code. |
Now someone has to review around thirteen thousand lines of code every now and then. How's that for "maintain"? |
That code would need to be reviewed in any case, either because the code is referenced remotely or included in the repos. It is a first class part of the project. I am perfectly fine if we found a solution for the problem of including assets in padrino proper. But as stated above, I vote against a custom solution sidestepping the problem. |
Changing a link to a version of a file on a trusted CDN does not require reviewing a cluster-ton of code. So, if I'm getting you correctly, to solve the problem properly, we need a perfectly agnostic pipeline for padrino (#1028), then we need something similar to padrino-static to contain all the supercommits, and then we require it from padrino-admin and instruct our fine pipeline to use it? Can we maybe start with a passable micropipeline that uses a CDN? |
Closing as not a good idea until having a passable asset pipeline. |
@padrino/core-members #1579 is a hot mess
+4,759 −8,510
. We really should not have copies of the standard assets in the repository. What would be the most appropriate way to handle this?The text was updated successfully, but these errors were encountered: