mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
New types for Gulp-html-prettify (#35005)
* clear to tests * clear to tests
This commit is contained in:
parent
b5d9b16a73
commit
c9e7cb88b0
11
types/gulp-html-prettify/gulp-html-prettify-tests.ts
Normal file
11
types/gulp-html-prettify/gulp-html-prettify-tests.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import * as gulp from 'gulp';
|
||||
import prettifyHtml = require('gulp-html-prettify');
|
||||
|
||||
gulp.task('prettifyHtml', () => {
|
||||
gulp.src('source/*.html')
|
||||
.pipe(prettifyHtml({
|
||||
indent_char: ' ',
|
||||
indent_size: 2
|
||||
}))
|
||||
.pipe(gulp.dest('./dist/'));
|
||||
});
|
||||
18
types/gulp-html-prettify/index.d.ts
vendored
Normal file
18
types/gulp-html-prettify/index.d.ts
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
// Type definitions for npm i gulp-html-prettify 0.0
|
||||
// Project: https://www.npmjs.com/package/gulp-html-prettify
|
||||
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
|
||||
interface GulpHtmlPrettifyOptions {
|
||||
indent_char?: string;
|
||||
indent_size?: number;
|
||||
}
|
||||
|
||||
interface GulpHtmlPrettify {
|
||||
(options?: GulpHtmlPrettifyOptions): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
declare var gulpHtmlPrettify: GulpHtmlPrettify;
|
||||
export = gulpHtmlPrettify;
|
||||
24
types/gulp-html-prettify/tsconfig.json
Normal file
24
types/gulp-html-prettify/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"esModuleInterop": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gulp-html-prettify-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/gulp-html-prettify/tslint.json
Normal file
3
types/gulp-html-prettify/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user