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

Gulp Cookbook article #5725

Closed
samsch opened this issue Sep 25, 2015 · 2 comments
Closed

Gulp Cookbook article #5725

samsch opened this issue Sep 25, 2015 · 2 comments
Labels
actionable Clear and specific issues ready for anyone to take them. front-end

Comments

@samsch
Copy link

samsch commented Sep 25, 2015

I think it would be helpful to have an article on basic Gulp setup with Symfony. I have setup Gulp with Symfony twice now, and it would be good to have a set structure for asset destination and source, and the method of replacing Assetic.

I dropped Assetic entirely, and put my assets in app/Resources/assets under js and sass folders. I setup my Gulp tasks to run sass, uglify, concat, and sourcemap before dumping the files in web/css and web/js/min. My vendor assets are pulled directly from the vendor/bower or node_modules/ folders (I setup one project with only npm, but I kept bower in the other).

Once configured, I run gulp watch when I need to work on assets, and my assets are in testable form and ready for production.

I have git ignore node_modules, but otherwise include app/Resources/assets/* and web/ in my repo, so no need for Gulp on the production system.

If I had the time to expend on this, I would write the article and pull request myself. As it is, I can share some of my gulpfiles and changes made to templates for including files if it would help someone else make this.

@xabbuh
Copy link
Member

xabbuh commented Sep 26, 2015

I think this is a good idea. We already have an article about Bower in the front-end section of the cookbook and an article about Gulp would in my opinion fit there quite well.

@javiereguiluz
Copy link
Member

I'm closing this as "won't fix" because since this article was proposed, Gulp is no longer considered the best practice and all projects are moving to Webpack (including Laravel, Rails, etc.) Besides, we'll announce some news around this "soon". Stay tuned ... and thanks for understanding this decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. front-end
Projects
None yet
Development

No branches or pull requests

3 participants