From 814b63adca68203ee5497140c5c5fed419aa665c Mon Sep 17 00:00:00 2001 From: Alexander T Date: Tue, 29 Oct 2019 05:41:51 +0200 Subject: [PATCH] html-webpack-tags-plugin: Provides its own types (#39598) --- notNeededPackages.json | 6 +++++ .../html-webpack-tags-plugin-tests.ts | 19 --------------- types/html-webpack-tags-plugin/index.d.ts | 22 ------------------ types/html-webpack-tags-plugin/tsconfig.json | 23 ------------------- types/html-webpack-tags-plugin/tslint.json | 1 - 5 files changed, 6 insertions(+), 65 deletions(-) delete mode 100644 types/html-webpack-tags-plugin/html-webpack-tags-plugin-tests.ts delete mode 100644 types/html-webpack-tags-plugin/index.d.ts delete mode 100644 types/html-webpack-tags-plugin/tsconfig.json delete mode 100644 types/html-webpack-tags-plugin/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 100d611e41..e6e234cc09 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1434,6 +1434,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/html-tags", "asOfVersion": "3.0.0" }, + { + "libraryName": "html-webpack-tags-plugin", + "typingsPackageName": "html-webpack-tags-plugin", + "sourceRepoURL": "https://github.com/jharris4/html-webpack-tags-plugin", + "asOfVersion": "2.0.16" + }, { "libraryName": "http-status-codes", "typingsPackageName": "http-status-codes", diff --git a/types/html-webpack-tags-plugin/html-webpack-tags-plugin-tests.ts b/types/html-webpack-tags-plugin/html-webpack-tags-plugin-tests.ts deleted file mode 100644 index 328d8cc583..0000000000 --- a/types/html-webpack-tags-plugin/html-webpack-tags-plugin-tests.ts +++ /dev/null @@ -1,19 +0,0 @@ -import HtmlWebpackPlugin = require('html-webpack-plugin'); -import * as tags from 'html-webpack-tags-plugin'; - -const optionsArray: tags.Options[] = [ - { - tags: 'tag' - }, - { - tags: ['tags', 'hugs'], - files: 'readme.txt' - }, - { - tags: ['tags', 'hugs'], - files: 'readme.txt', - append: true - } -]; - -const plugins: HtmlWebpackPlugin[] = optionsArray.map(options => new HtmlWebpackPlugin(options)); diff --git a/types/html-webpack-tags-plugin/index.d.ts b/types/html-webpack-tags-plugin/index.d.ts deleted file mode 100644 index 7dcd41957c..0000000000 --- a/types/html-webpack-tags-plugin/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Type definitions for html-webpack-tags-plugin 2.0 -// Project: https://github.com/jharris4/html-webpack-tags-plugin -// Definitions by: Vladimir Grenaderov -// Max Boguslavskiy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import { Plugin } from 'webpack'; - -declare namespace HtmlWebpackTagsPlugin { - interface Options { - tags: string | string[]; - files?: string | string[]; - append?: boolean; - } -} - -declare class HtmlWebpackTagsPlugin extends Plugin { - constructor(options: HtmlWebpackTagsPlugin.Options); -} - -export = HtmlWebpackTagsPlugin; diff --git a/types/html-webpack-tags-plugin/tsconfig.json b/types/html-webpack-tags-plugin/tsconfig.json deleted file mode 100644 index 4b0ce45542..0000000000 --- a/types/html-webpack-tags-plugin/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "html-webpack-tags-plugin-tests.ts" - ] -} diff --git a/types/html-webpack-tags-plugin/tslint.json b/types/html-webpack-tags-plugin/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/html-webpack-tags-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }