-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
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.