Optimizing Front End Workflow
summary
Practical recipes for front end in Symfony: enable Twig translations and name keys by entity.property.validator to keep messages editable, but note trans_default_domain doesn't propagate down the inheritance tree so fallback requires a custom translator; use Node/npm and Bower + Gulp workflow—Bower often needs sudo to install globally, put components in web/vendor or vendor/bower, pipe sources through gulp plugins (sass, uglify) to produce minified files, use gulp watch and livereload, and run npm/bower/gulp via composer post-install or Capistrano for deployments.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker background
- 1:47Twig templates and translations in Symfony
- 6:16Template inheritance and layout organization
- 9:51Translation domains and domain-specific files
- 10:55Introduction to Node.js and Bower
- 15:18Installing and managing Bower dependencies
- 17:09Gulp vs Grunt and Gulp setup
- 19:43Minifying JavaScript with Gulp
- 23:24Managing vendor directories and asset paths
- 24:47SCSS workflow with Gulp
- 26:08Automating tasks with Gulp watch
- 27:11Setting up projects and deployment scripts
- 28:20Q&A: Translation file inheritance
- 29:45Q&A: Rails YAML inheritance and asset caching
- 30:06Q&A: Gulp performance and asset versioning
- 31:10Q&A: Gulp vs Grunt comparison
- 32:17Q&A: Bower dependency locking
- 33:20Closing remarks and feedback
