Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Latest commit

 

History

History
43 lines (29 loc) · 927 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 927 Bytes

NO LONGER MAINTAINED TO BE EXPIRED SOON

Due to me not using Gulp anymore and so not maintaining this package anymore I am going to put this repo to sleep. If you need this package please fork!

Expected removal of package: 31st of August 2018

gulp-postmortem

Execute Gulp tasks when exiting a gulp task (useful for watchers).

#Installation

npm install gulp-postmortem

#Basic Usage

var gulp = require('gulp'),
	postMortem = require('gulp-postmortem');


gulp.task('stop-server', function () {
	// Do something amazing
});

gulp.task('sass', function () {
	gulp.src('./scss/*.scss')
	    .pipe(postMortem({gulp: gulp, tasks: ['stop-server']}))
		.pipe(sass())
		.pipe(watch('web/static/sass/**/*.scss', {verbose: true}))
		.pipe(gulp.dest('./css'));
});

#Shout out

To node-monitorctrlc for the basic idea of catching SIGINT.