Skip to content
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

Asset processing with Gulp #105

Open
DenisAlliswell opened this issue Mar 22, 2016 · 11 comments
Open

Asset processing with Gulp #105

DenisAlliswell opened this issue Mar 22, 2016 · 11 comments

Comments

@DenisAlliswell
Copy link

Hello @samdark!

What about Asset processing with Gulp receipt?

Nowdays Gulp is popular task manager so it wouldn't be redundant to add this receipt as well as Grunt one)

Thanks in advance!

@samdark
Copy link
Owner

samdark commented Mar 22, 2016

I'm not really familiar with Gulp. Yii-wise it's same as Grunt i.e. turning off asset manager.

@DenisAlliswell
Copy link
Author

Ok)

@mrsurname
Copy link

Yes, It's same as Grunt. Completely. I'm using Gulp for Yii projects. I think such recipe will almost duplicate Gulp recipe.

Maybe better to merge them in one recipe: "Asset processing with frontend task runners" or something like this.

Btw one of the problem is Yii2 extensions. They are registering their own source files with help of assets. As result we have a lot of separated sources which decrease performance. Will be excellent to write a recipe about how to manage all of this: Yii extensions and Gulp/Grunt

@samdark
Copy link
Owner

samdark commented Mar 22, 2016

I think two seaparate recipes make sense in this case. In case of extensions you have to specify all these asset files manually for each extension.

@mrsurname
Copy link

This is a problem. A lot of manual work (in comparison) and if extension structure is changed something might be broken. Might it be a proposal for Yii2? To solve such issue somehow

@samdark
Copy link
Owner

samdark commented Mar 22, 2016

How?

@mrsurname
Copy link

Is it possible not to publish but to move all source files inside a special dir? Automatically. In order not to find all of them manually. And then gulp/grunt compresses them in one file.

@samdark
Copy link
Owner

samdark commented Mar 23, 2016

Moving files inside a special dir is publishing. Gulp is JS tool, it can't read PHP classes.

@samdark
Copy link
Owner

samdark commented Mar 23, 2016

A special tool that generates map from asset bundles could be created though.

@samdark
Copy link
Owner

samdark commented Mar 23, 2016

But it would have no idea which bundles to use and which not to use.

@samdark
Copy link
Owner

samdark commented Mar 23, 2016

That would be too complicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants