gulpury
Gulpury is a Gulp plugin that helps you to write your tasks quick.
Gulpury as a Wrapper Provides these Kind of Jobs
- Copy Sources to Destination.
- Compile Your SASS Files to CSS (gulp-sass).
- Minify Your CSS Files (gulp-clean-css).
- Minify/Uglify Your JS Files (gulp-uglify).
- Concat Files (gulp-concat).
- Rename Files (gulp-rename).
- GZip Files (gulp-gzip).
- Replace String with another String in Your Text Files (gulp-replace).
- Replace Block of String in Your Text Files (gulp-html-replace).
List of Plugins
Install
npm install --save-dev gulpury
Basic Usage
var gulp = ;var gulpury = ; // When You Want Copy some Sources to another Directory.gulpury; // When You Want Replace Some Text in Your Text Files such as HTML Files.gulpury; // When You Want Compress some Files in GZip.gulpury; // When You Want Compile/Minify/GZip Your SASS Files.gulpury; // When You Want only Watch on Some Sources.gulpury; // When You Want Uglify/GZip Your JS Files.gulpury; /** * Run All Gulpury Assets with Type COPY. */gulp; /** * Watch All Sources in Gulpury Assets with Type COPY. */gulp; /** * Run All Gulpury Assets with Type CSS. */gulp; /** * */gulp; /** * Run Gulpury Asset with Id 'hot-js'. */gulp; /** * Watch Gulpury Assets with Id 'hot-js' */gulp;
Options
All Asset TYPES:
- ASSET_TYPES.WATCH
- ASSET_TYPES.COPY
- ASSET_TYPES.CSS
- ASSET_TYPES.JS
Asset Params
var params = src: 'sources' dest: 'destination-directory' base: 'base-directory' params: sass: true // Default Is False. rename: 'file-new-name' // e.g: style.min.css min: true // Default Is False. gzip: true // Default Is False. htmlReplace: // According to gulp-html-replace Doc. 'css1block': 'css/plugins.min.css?2.19' 'css2block': 'css/style.min.css?2.19' replace: // You Can Define Multiple Replacements. '%placeholder1%' 'text1' '##placeholder2##' 'text2' 'REPLACE_ME' 'text3' ;