diff --git a/notNeededPackages.json b/notNeededPackages.json index 9725414e8a..da87d000e5 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1410,6 +1410,12 @@ "sourceRepoURL": "https://github.com/fastify/fastify-static", "asOfVersion": "2.2.1" }, + { + "libraryName": "favicons-webpack-plugin", + "typingsPackageName": "favicons-webpack-plugin", + "sourceRepoURL": "https://github.com/jantimon/favicons-webpack-plugin", + "asOfVersion": "2.1.0" + }, { "libraryName": "@types/facebook-js-sdk", "typingsPackageName": "fb", diff --git a/types/favicons-webpack-plugin/favicons-webpack-plugin-tests.ts b/types/favicons-webpack-plugin/favicons-webpack-plugin-tests.ts deleted file mode 100644 index 1e8498d5f1..0000000000 --- a/types/favicons-webpack-plugin/favicons-webpack-plugin-tests.ts +++ /dev/null @@ -1,51 +0,0 @@ -import FaviconsWebpackPlugin = require('favicons-webpack-plugin'); - -new FaviconsWebpackPlugin(); - -new FaviconsWebpackPlugin('/path/to/logo.png'); - -const optionsArray: FaviconsWebpackPlugin.Options[] = [ - // Default parameters - { - logo: '/path/to/logo.png', - cache: true, - inject: true, - favicons: {}, - prefix: 'assets/', - }, - // "Advanced Usage" example from documentation - { - logo: '/path/to/logo.png', - cache: true, - publicPath: '/static', - outputPath: '/public/static', - prefix: 'assets/', - inject: true, - favicons: {}, - }, - // "Basic" example from documentation - { - logo: '/path/to/logo.png', - mode: 'webapp', - devMode: 'webapp', - favicons: { - appName: 'my-app', - appDescription: 'My awesome App', - developerName: 'Me', - developerURL: null, - background: '#ddd', - theme_color: '#333', - icons: { - coast: false, - yandex: false, - }, - }, - }, - // "Handling Multiple HTML Files" example from documentation - { - logo: 'logo.svg', - inject: htmlPlugin => htmlPlugin.options.filename === 'a.html', - }, -]; - -const plugins: FaviconsWebpackPlugin[] = optionsArray.map(options => new FaviconsWebpackPlugin(options)); diff --git a/types/favicons-webpack-plugin/index.d.ts b/types/favicons-webpack-plugin/index.d.ts deleted file mode 100644 index ab680f1bf1..0000000000 --- a/types/favicons-webpack-plugin/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Type definitions for favicons-webpack-plugin 1.0 -// Project: https://github.com/jantimon/favicons-webpack-plugin -// Definitions by: Paweł Meller -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import { Plugin } from 'webpack'; -import { Configuration as FaviconsConfiguration } from 'favicons'; -import HtmlWebpackPlugin = require('html-webpack-plugin'); - -export = FaviconsWebpackPlugin; - -declare class FaviconsWebpackPlugin extends Plugin { - constructor(options?: string | FaviconsWebpackPlugin.Options); -} - -declare namespace FaviconsWebpackPlugin { - type Mode = 'webapp' | 'light'; - - interface Options { - logo: string; - mode?: Mode; - devMode?: Mode; - cache?: boolean; - publicPath?: string; - outputPath?: string; - prefix?: string; - inject?: boolean | ((htmlPlugin: HtmlWebpackPlugin & { options: HtmlWebpackPlugin.Options }) => boolean); - favicons?: Partial; - } -} diff --git a/types/favicons-webpack-plugin/tsconfig.json b/types/favicons-webpack-plugin/tsconfig.json deleted file mode 100644 index 464f854cc3..0000000000 --- a/types/favicons-webpack-plugin/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "favicons-webpack-plugin-tests.ts" - ] -} diff --git a/types/favicons-webpack-plugin/tslint.json b/types/favicons-webpack-plugin/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/favicons-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }