Socket
Socket
Sign inDemoInstall

gulp-group-concat

Package Overview
Dependencies
6
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-group-concat

Concats groups of files into a smaller number of files


Version published
Weekly downloads
1.4K
increased by67.77%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Gulp Group Concat

Concatenates and filters groups of files into a smaller number of files.

Build Status

Code Climate

Coverage Status

Dependencies

NPM version

##Concatenate files that match minimatch-styled file globs

Groups all files into either final.inline.js and final.test.js.

var gulp = require('gulp'),
  groupConcat = require('gulp-group-concat');

gulp.src('**/*.js')
  .pipe(groupConcat({
    'final.inline.js': ['**/*.js', '!**/*.test.js'],
    'final.test.js': '**/*.test.js'
  }))
  .pipe(gulp.dest('dest'));

##Duplicate files that match more than one file glob

Put only components into components.js but include everything in all.js.

var gulp = require('gulp'),
  groupConcat = require('gulp-group-concat');

gulp.src('**/*.js')
  .pipe(groupConcat({
    'components.js': '**/components/*.js',
    'all.js': '**/*.js'
  }))
  .pipe(gulp.dest('dest'));

##Filter files that do not match any file glob

Include all files that are not tests into no-tests.js.

var gulp = require('gulp'),
  groupConcat = require('gulp-group-concat');

gulp.src('**/*.js')
  .pipe(groupConcat({
    'no-tests.js': '!**/*.test.js'
  }))
  .pipe(gulp.dest('dest'));

##Supports source-maps

Source-maps are duplicated, filtered, and concatenated as expects.

var gulp = require('gulp'),
  groupConcat = require('gulp-group-concat'),
  sourcemaps = require('gulp-sourcemaps'),
  please = require('gulp-pleeease');

gulp.src('./test/fixtures/*.css')
  .pipe(sourcemaps.init())
  .pipe(please()) //or anything else that supports gulp-sourcemaps
  .pipe(groupConcat({
    'final.inline.css': '**/*.inline.css',
    'final.css': '**/*.css'
  }))
  .pipe(sourcemaps.write('.'))
  .pipe(gulp.dest('dest'));

##Install

npm install gulp-group-concat

##Running Tests

To run the basic tests, just run mocha normally.

This assumes you've already installed the local npm packages with npm install.

Keywords

FAQs

Last updated on 27 Jul 2017

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc