New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-packages

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-packages

gulp package management helper

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
67
increased by1.52%
Maintainers
1
Weekly downloads
 
Created
Source

gulp package management helper

Features

  1. Smart package-require notation
  2. Add 'install' task to your gulpfile
  3. Add 'uninstall' task to your gulpfile

For more details

Install

$ npm install gulp-packages

Features1: Smart package-require notation

BEFORE

gulpfile.js

var gulp = require('gulp');
var less = require('gulp-less');
var coffee = require('gulp-coffee');
var pleeease = require('gulp-pleeease');
var minifyCss = require('gulp-minify-css');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var watch = require('gulp-watch');
var plumber = require('gulp-plumber');
var coffeelint = require('gulp-coffeelint');
var concat = require('gulp-concat');

AFTER

gulpfile.js

var gulp = require('gulp');
var pkg = require('gulp-packages')(gulp, [
  'less',
  'coffee',
  'pleeease',
  'minifyCss',
  'uglify',
  'rename',
  'watch',
  'plumber',
  'coffeelint',
  'concat'
]);

For the above example, Packages are loaded into pkg variable.

Use of loaded packages
gulp.src('/path/to/*.coffee')
  .pipe(pkg.plumber())  // <-
  .pipe(pkg.coffee())   // <- pkg.XXX(package name)
  .pipe(pkg.uglify())   // <-
  .pipe(gulp.dest('js/'));

Features2: Add 'install' task to your gulpfile

When the following conditions:

gulpfile.js

var gulp = require('gulp');
var pkg = require('gulp-packages')(gulp, [
  'less',
  'coffee',
  'pleeease',
  'minifyCss',
  'uglify',      // <- not installed yet
  'rename',      // <- not installed yet 
  'watch',
  'plumber',     // <- not installed yet
  'coffeelint',
  'concat'       // <- not installed yet
]);

BEFORE

$ npm install gulp-uglify gulp-rename gulp-plumber gulp-concat --save-dev

AFTER

$ gulp install

Features3: Add 'uninstall' task to your gulpfile

When the following conditions:

gulpfile.js

var gulp = require('gulp');
var pkg = require('gulp-packages')(gulp, [
  'less',
  'coffee',
  'pleeease',
  'minifyCss',
  'watch',
  'coffeelint',
]);

and

package.json

{
  "devDependencies": {
    "coffee-script": "*",
    "gulp": "*",
    "gulp-coffee": "^2.1.1",
    "gulp-coffeelint": "^0.3.3",
    "gulp-concat": "^2.3.4",      // <- no longer using
    "gulp-less": "^1.3.2",
    "gulp-minify-css": "^0.3.7",
    "gulp-pleeease": "0.0.5",
    "gulp-plumber": "^0.6.4",     // <- no longer using
    "gulp-rename": "^1.2.0",      // <- no longer using
    "gulp-uglify": "^0.3.1",      // <- no longer using
    "gulp-watch": "^0.6.8"
  }
}

BEFORE

$ npm uninstall gulp-uglify gulp-rename gulp-plumber gulp-concat --save-dev

AFTER

$ gulp uninstall

Package name rule

  1. Remove 'gulp-'
  2. Convert to camel case

Example

  • gulp-uglify -> 'uglify'
  • gulp-minify-css -> 'minifyCss'

Changelog

0.1.3 (2014-07-27)

  • Added 'gulpfriendly' keyword to package.json

0.1.2 (2014-07-27)

  • 'install' and 'uninstall' changed to synchronized task
  • Colored message supported
  • Added jshint options comment
  • Fixed some messages

0.1.1 (2014-07-27)

  • Changed to exclude 'gulp-packages' from uninstall target

0.1.0 (2014-07-26)

  • First release

License

MIT license

© 2014 ktty1220

Keywords

FAQs

Package last updated on 27 Jul 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc