
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
gulp-group-concat
Advanced tools
Concatenates and filters groups of files into a smaller number of files.
##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
.
FAQs
Concats groups of files into a smaller number of files
The npm package gulp-group-concat receives a total of 1,207 weekly downloads. As such, gulp-group-concat popularity was classified as popular.
We found that gulp-group-concat 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.