mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-19 00:26:34 +08:00
Update export name -- Tests improvements -- Restore version number
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
import gulp = require('gulp');
|
||||
import gulpJsonmin = require('gulp-jsonmin');
|
||||
|
||||
gulpJsonmin();
|
||||
gulpJsonmin({ verbose: true });
|
||||
gulp.task('build', () => {
|
||||
return gulp.src('*.json')
|
||||
.pipe(gulpJsonmin())
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('build', () => {
|
||||
return gulp.src('*.json')
|
||||
.pipe(gulpJsonmin({ verbose: true }))
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
8
types/gulp-jsonmin/index.d.ts
vendored
8
types/gulp-jsonmin/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for gulp-jsonmin 1.2
|
||||
// Type definitions for gulp-jsonmin 1.1
|
||||
// Project: https://github.com/englercj/gulp-jsonmin
|
||||
// Definitions by: Romain Faust <https://github.com/romain-faust>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
import { Transform } from 'stream';
|
||||
|
||||
declare function jsonmin(options?: jsonmin.Options): Transform;
|
||||
declare function GulpJsonmin(options?: GulpJsonmin.Options): Transform;
|
||||
|
||||
declare namespace jsonmin {
|
||||
declare namespace GulpJsonmin {
|
||||
interface Options {
|
||||
verbose?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = jsonmin;
|
||||
export = GulpJsonmin;
|
||||
|
||||
Reference in New Issue
Block a user