Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
engulf
Advanced tools
Readme
Write gulp tasks using a simple config
engulf is a small node module that will help you write gulp tasks using a simple config.
npm install engulf
gulpfile.js
using engulfThis file will give you a taste of what engulf does. This does the same thing that the sample gulpfile.js of gulp does.
var config = {
paths: {
scripts: ['client/js/**/*.coffee', '!client/external/**/*.coffee'],
images: 'client/img/**/*'
},
tasks: {
clean: {
fn: function(cb, tools, gulp) {
tools.del(['build'], cb);
}
},
scripts: {
deps: ['clean'],
src: 'scripts',
dest: 'build/js',
run: ['sourcemaps.init', 'coffee', 'uglify', {concat: 'all.min.js'}, 'sourcemaps.write', 'dest']
},
images: {
deps: ['clean'],
src: 'images',
dest: 'build/img',
run: [ { imagemin: {optimizationLevel: 5} }, 'dest']
},
watch: {
scripts: 'scripts',
images: 'images'
},
default: ['watch', 'scripts', 'images']
},
tools: {
del: 'del'
}
}
var engulf = require('engulf');
engulf.importTools();
engulf.run(config);
var gulp = engulf.gulp;
var tools = engulf.tools;
gulp.task('clean', function(cb) {
tools.del(['build'], cb);
});
engulf.run(config)
This does the following:
engulf.load(config)
engulf.requireTools()
engulf.registerTasks()
engulf.load(config)
Merges supplied config
object with engulf.config
engulf.importTools()
Fetches all gulp-
plugins from devDependencies
of package.json
file and adds it to engulf.config.tools
. Plugin names are converted to camelCase style.
Example: plugin gulp-minify-css
will be loaded as minifyCss
which can be used in run
array and can also be accessed using engulf.tools.minifyCss
engulf.requireTools()
Loads all tools present in engulf.config.tools
into engulf.tools
using require()
engulf.registerTasks(tasks)
Registers list of tasks specified by tasks
array that are present in engulf.config.tasks
using gulp.task()
. If tasks
is omitted then all tasks in engulf.config.tasks
will be registered.
More documentation coming soon...
FAQs
Write gulp tasks using a simple config
The npm package engulf receives a total of 2 weekly downloads. As such, engulf popularity was classified as not popular.
We found that engulf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.