A gulpfile boilerplate for Magento 1.x projects
Setting the correct routes
- magento.name : Define the project name
- magento.pkg : Define your package
- magento.theme : Define your theme
- magento.domain : Define your domain
- magento.skin : Define the skin route
- magento.src : Define de SASS route folder
- magento.dest : Define the destination CSS folder
- magento.js : Define the JS route folder
- Default: "gulp" Compile and minify all the SASS files
- Build: "gulp build" Compile, minify all de SASS files and minify the JS using requireJS Optimizer
- SASS compilation: "gulp sass" Compile the SASS files
- SASS compile and sync "gulp watch" Compile and reload browser styles using browserSync. Pay attention to the magento.domain var.
- SASS minify "gulp minify" Minify all de CSS
- Bless: "gulp bless" Bless styles CSS for IE version lower than 10
- JS minify "gulp scripts" Minify all the .js scripts using requireJS Optimizer