1.0.7 • Published 6 years ago

gulp-postmortem v1.0.7

Weekly downloads
37
License
MIT
Repository
github
Last release
6 years ago

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.

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago