Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@types/gulp
Advanced tools
@types/gulp provides TypeScript type definitions for the Gulp task runner, allowing developers to use Gulp with TypeScript and benefit from type checking and autocompletion.
Creating a Gulp Task
Defines a simple Gulp task named 'default' that logs a message to the console.
const gulp = require('gulp');
gulp.task('default', function() {
console.log('Gulp task running');
});
Processing Files
Defines a Gulp task named 'minify-js' that minifies JavaScript files from the 'src' directory and outputs them to the 'dist' directory.
const gulp = require('gulp');
const uglify = require('gulp-uglify');
gulp.task('minify-js', function() {
return gulp.src('src/*.js')
.pipe(uglify())
.pipe(gulp.dest('dist'));
});
Watching Files
Defines a Gulp task named 'watch' that monitors JavaScript files in the 'src' directory and runs the 'minify-js' task whenever a file changes.
const gulp = require('gulp');
gulp.task('watch', function() {
gulp.watch('src/*.js', gulp.series('minify-js'));
});
@types/grunt provides TypeScript type definitions for the Grunt task runner. Grunt is another popular task runner similar to Gulp, but it uses a configuration-based approach rather than a code-based approach.
@types/webpack provides TypeScript type definitions for Webpack, a module bundler. While Webpack is primarily used for bundling JavaScript modules, it can also perform many of the same tasks as Gulp, such as file transformations and optimizations.
npm install --save @types/gulp
This package contains type definitions for Gulp v3.8.x (http://gulpjs.com).
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/gulp
Additional Details
These definitions were written by Drew Noakes https://drewnoakes.com.
FAQs
TypeScript definitions for gulp
The npm package @types/gulp receives a total of 102,211 weekly downloads. As such, @types/gulp popularity was classified as popular.
We found that @types/gulp 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.