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

Execute Gulp tasks when exiting running tasks (like watchers)

License

Notifications You must be signed in to change notification settings

rikvanderkemp/gulp-postmortem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Execute Gulp tasks when exiting running tasks (like watchers)

Resources

License

Stars

Watchers

Forks

Packages

No packages published