Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clazex/clazex-gulp
Extended gulp
https://github.com/clazex/clazex-gulp
gulp gulp-plugins gulp-plumber javascript node-module nodejs npm npm-package
Last synced: about 1 month ago
JSON representation
Extended gulp
- Host: GitHub
- URL: https://github.com/clazex/clazex-gulp
- Owner: Clazex
- License: mit
- Created: 2021-02-26T11:02:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-26T12:20:24.000Z (almost 4 years ago)
- Last Synced: 2024-12-10T00:38:09.808Z (2 months ago)
- Topics: gulp, gulp-plugins, gulp-plumber, javascript, node-module, nodejs, npm, npm-package
- Language: JavaScript
- Homepage: https://npmjs.com/package/@clazex/gulp
- Size: 52.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clazex-gulp
> Extended gulp
## Usage
```bash
npm i -D @clazex/gulp
``````javascript
// In your gulpfile// Assume that `gulp-zip` is installed as a (dev)dependency
// const gulp = require("gulp")
const gulp = require("@clazex/gulp"); // Simply change the module to be requiredmodule.exports = {
default() {
return gulp.src("src/**") // Use like original gulp but can also ...
.pipe(gulp.plugins.zip()) // ... Get lazy-loaded plugins from gulp.plugins
// .pipe(gulp.plugins.plumber()) // ... Be automatically `gulp-plumber`-ed
.pipe(gulp.dest("dest/src.zip"));
},copy() {
return gulp._src("src/**") // Get unplumbered src() from gulp._src()
.pipe(gulp._gulp.dest("dist")); // Get the original gulp from gulp._gulp
}
};/**
* If you want to pass config to `gulp-load-plugins`, Use:
* const gulp = require("@clazex/gulp").gulp({
* loadPlugins: {
* // Config here
* }
* });
*/
```