Melody for gulp
Melody provides a clean, fluent API for defining basic Gulp tasks for your Symfony application
what is it?
Melody is a gulp wrap that makes gulp even more easy to use. It designed for fit a Symfony framework infrastructure but can be used in every project.
Installation
Before to use melody you need to install Gulp globally.
npm install -g gulp
Probably your system will ask you the admin permission (so you have to run sudo npm install -g gulp
)
Then install melody in your project:
npm install melody-gulp
Usage
Create your classic gulp file and use the melody library in this way: gulpfile.js
var melody = ; melody;
Configuration reference
Is possible to override the default configuration in this way:
var melody = cssPath:'css/' ;
This is the default configuration:
resourcePath: 'app/Resources/' production: !!pluginsutilenvproduction sourceMaps: !pluginsutilenvproduction revManifestPath: 'app/Resources/assets/rev-manifest.json' publicPath:'web/' bowerPath:'vendor/bower_components/' assetPath:'app/Resources/assets/' cssPath:'assets/css/' jsPath:'assets/js/' compassSassFolder:false revManifest: true ;
Override global configurations - environments
var melody = cssPath:'css/'; melody; melody; melody; /** * Watch for SCSS change */gulp;