
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@kolibridev/gulp-tasks
Advanced tools
Collection of useful gulp tasks. WIP!
npm install @kolibridev/gulp-tasks
See gulpconfig-defaults for all default options. Usually something like this will suffice.
// ./gulp/config.js
const path = require('path')
const gutil = require('gulp-util')
const assign = require('lodash.assign')
const pkg = require('../package.json')
const config = {
version: pkg.version,
source: path.resolve(__dirname, '../src'),
target: path.resolve(__dirname, '../dist'),
minify: false,
debug: true,
url: 'https://dev.domain.com',
}
const envs = {
prod: {
minify: true,
debug: false,
url: 'https://www.domain.com',
},
}
// Extend with environment specific config
const env = gutil.env.env || (gutil.env.prod ? 'prod' : 'dev')
assign(config, envs[env])
module.exports = config
This can be directly in ./gulpfile.js
or create something like ./gulp/index.js
and require it in ./gulpfile.js
// ./gulpfile.js
require('./gulp')
This package exposes a function that optionally takes in your config. This example will register all the tasks for you. You can theoretically just register the tasks you're actually going to use. NOTE: If you create a local task (within your own project) with the same name as one of these, it will overwrite it's function.
// ./gulp/index.js
const gulp = require('gulp')
const gutil = require('gulp-util')
const _ = require('lodash')
const config = require('./config')
_.forOwn(require('@kolibridev/gulp-tasks')(config).tasks, (task) => {
gutil.log(gutil.colors.green(`Registered ${gutil.colors.blue(task.name)} task`))
gulp.task(task.name, task.dep, task.fn)
})
FAQs
Collection of useful gulp tasks
The npm package @kolibridev/gulp-tasks receives a total of 0 weekly downloads. As such, @kolibridev/gulp-tasks popularity was classified as not popular.
We found that @kolibridev/gulp-tasks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.