1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Remove flow types (#5704)

* Remove flow-typed

* Remove flow types

* Remove the last types

* Bring back taskr dependency

* Revert "Bring back taskr dependency"

This reverts commit 38cb95d7274d63fe63c6ac3c95ca358a28c17895.

* Bring back preset-flow as it’s used for tests

* Revert "Revert "Bring back taskr dependency""

This reverts commit b4c933ef133f4039f544fb10bf31d5c95d3b27a2.
This commit is contained in:
Tim Neutkens 2018-11-21 16:04:37 +01:00 committed by GitHub
parent f177be9e05
commit c2eaf26ea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 29 additions and 3028 deletions

View file

@ -34,6 +34,7 @@
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
"@babel/preset-flow": "7.0.0",
"@babel/preset-react": "7.0.0",
"@zeit/next-css": "1.0.2-canary.2",
"@zeit/next-sass": "1.0.2-canary.2",
@ -50,7 +51,6 @@
"express": "4.16.3",
"fkill": "5.1.0",
"flatten": "1.0.2",
"flow-bin": "0.73.0",
"get-port": "3.2.0",
"jest-cli": "23.6.0",
"lerna": "^3.4.0",

View file

@ -1,8 +1,7 @@
module.exports = {
'presets': [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-flow'
'@babel/preset-react'
],
'plugins': [
'@babel/plugin-proposal-object-rest-spread',

View file

@ -1,40 +1,9 @@
// @flow
import type {ElementType} from 'react'
import React from 'react'
import Loadable from './loadable'
type ImportedComponent = Promise<null|ElementType>
type ComponentMapping = {[componentName: string]: ImportedComponent}
type NextDynamicOptions = {
loader?: ComponentMapping | () => ImportedComponent,
loading: ElementType,
timeout?: number,
delay?: number,
ssr?: boolean,
render?: (props: any, loaded: {[componentName: string]: ElementType}) => ElementType,
modules?: () => ComponentMapping,
loadableGenerated?: {
webpack?: any,
modules?: any
}
}
type LoadableOptions = {
loader?: ComponentMapping | () => ImportedComponent,
loading: ElementType,
timeout?: number,
delay?: number,
render?: (props: any, loaded: {[componentName: string]: ElementType}) => ElementType,
webpack?: any,
modules?: any
}
const isServerSide = typeof window === 'undefined'
export function noSSR (LoadableInitializer: (loadableOptions: LoadableOptions) => ElementType, loadableOptions: LoadableOptions) {
export function noSSR (LoadableInitializer, loadableOptions) {
// Removing webpack and modules means react-loadable won't try preloading
delete loadableOptions.webpack
delete loadableOptions.modules
@ -52,9 +21,9 @@ function DefaultLoading () {
return <p>loading...</p>
}
export default function dynamic (dynamicOptions: any, options: NextDynamicOptions) {
export default function dynamic (dynamicOptions, options) {
let loadableFn = Loadable
let loadableOptions: NextDynamicOptions = {
let loadableOptions = {
// A loading component is not required, so we default it
loading: ({error, isLoading}) => {
if (process.env.NODE_ENV === 'development') {

View file

@ -1,11 +1,10 @@
// @flow
import React from 'react'
import ansiHTML from 'ansi-html'
import Head from 'next-server/head'
// This component is rendered through dev-error-overlay on the client side.
// On the server side it's rendered directly
export default function ErrorDebug ({error, info}: any) {
export default function ErrorDebug ({error, info}) {
const { name, message, module } = error
return (
<div style={styles.errorDebug}>
@ -22,7 +21,7 @@ export default function ErrorDebug ({error, info}: any) {
)
}
const StackTrace = ({ error: { name, message, stack }, info }: any) => (
const StackTrace = ({ error: { name, message, stack }, info }) => (
<div>
<div style={styles.heading}>{message || name}</div>
<pre style={styles.stack}>

View file

@ -1,25 +1,7 @@
// @flow
import findUp from 'find-up'
import {CONFIG_FILE} from 'next-server/constants'
type WebpackConfig = *
type WebpackDevMiddlewareConfig = *
export type NextConfig = {|
webpack: null | (webpackConfig: WebpackConfig, {dir: string, dev: boolean, isServer: boolean, buildId: string, config: NextConfig, defaultLoaders: {}, totalPages: number}) => WebpackConfig,
webpackDevMiddleware: null | (WebpackDevMiddlewareConfig: WebpackDevMiddlewareConfig) => WebpackDevMiddlewareConfig,
poweredByHeader: boolean,
distDir: string,
assetPrefix: string,
configOrigin: string,
useFileSystemPublicRoutes: boolean,
generateBuildId: () => string,
generateEtags: boolean,
pageExtensions: Array<string>
|}
const defaultConfig: NextConfig = {
const defaultConfig = {
webpack: null,
webpackDevMiddleware: null,
poweredByHeader: true,
@ -32,22 +14,19 @@ const defaultConfig: NextConfig = {
pageExtensions: ['jsx', 'js']
}
type PhaseFunction = (phase: string, options: {defaultConfig: NextConfig}) => NextConfig
export default function loadConfig (phase: string, dir: string, customConfig?: NextConfig): NextConfig {
export default function loadConfig (phase, dir, customConfig) {
if (customConfig) {
customConfig.configOrigin = 'server'
return {...defaultConfig, ...customConfig}
}
const path: string = findUp.sync(CONFIG_FILE, {
const path = findUp.sync(CONFIG_FILE, {
cwd: dir
})
// If config file was found
if (path && path.length) {
// $FlowFixMe
const userConfigModule = require(path)
const userConfigInitial: NextConfig | PhaseFunction = userConfigModule.default || userConfigModule
const userConfigInitial = userConfigModule.default || userConfigModule
if (typeof userConfigInitial === 'function') {
return {...defaultConfig, configOrigin: CONFIG_FILE, ...userConfigInitial(phase, {defaultConfig})}
}

View file

@ -1,8 +1,7 @@
module.exports = {
'presets': [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-flow'
'@babel/preset-react'
],
'plugins': [
'@babel/plugin-syntax-dynamic-import',

View file

@ -1,5 +1,3 @@
// @flow
import type {NextConfig} from '../server/config'
import path from 'path'
import webpack from 'webpack'
import resolve from 'resolve'
@ -129,7 +127,7 @@ function optimizationConfig ({dir, dev, isServer, totalPages, lambdas}) {
}
}
const config: any = {
const config = {
runtimeChunk: {
name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK
},
@ -178,15 +176,7 @@ function optimizationConfig ({dir, dev, isServer, totalPages, lambdas}) {
return config
}
type BaseConfigContext = {|
dev: boolean,
isServer: boolean,
buildId: string,
config: NextConfig,
lambdas: boolean
|}
export default async function getBaseWebpackConfig (dir: string, {dev = false, isServer = false, buildId, config, lambdas = false}: BaseConfigContext) {
export default async function getBaseWebpackConfig (dir, {dev = false, isServer = false, buildId, config, lambdas = false}) {
const defaultLoaders = {
babel: {
loader: 'next-babel-loader',
@ -355,7 +345,7 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
// Backwards compat for `main.js` entry key
const originalEntry = webpackConfig.entry
webpackConfig.entry = async () => {
const entry: any = {...await originalEntry()}
const entry = {...await originalEntry()}
// Server compilation doesn't have main.js
if (typeof entry['main.js'] !== 'undefined') {

View file

@ -1,16 +1,10 @@
// @flow
import { relative } from 'path'
import loaderUtils from 'loader-utils'
type Options = {|
extensions: RegExp,
include: Array<string>
|}
module.exports = function (content: string, sourceMap: any) {
module.exports = function (content, sourceMap) {
this.cacheable()
const options: Options = loaderUtils.getOptions(this)
const options = loaderUtils.getOptions(this)
if (!options.extensions) {
throw new Error('extensions is not provided to hot-self-accept-loader. Please upgrade all next-plugins to the latest version.')
}
@ -44,7 +38,7 @@ module.exports = function (content: string, sourceMap: any) {
`, sourceMap)
}
function getRoute (resourcePath: string, options: Options) {
function getRoute (resourcePath, options) {
const dir = options.include.find((d) => resourcePath.indexOf(d) === 0)
if (!dir) {

View file

@ -1,11 +1,10 @@
// @flow
import { RawSource } from 'webpack-sources'
import {BUILD_MANIFEST, ROUTE_NAME_REGEX, IS_BUNDLED_PAGE_REGEX, CLIENT_STATIC_FILES_RUNTIME_MAIN} from 'next-server/constants'
// This plugin creates a build-manifest.json for all assets that are being output
// It has a mapping of "entry" filename to real filename. Because the real filename can be hashed in production
export default class BuildManifestPlugin {
apply (compiler: any) {
apply (compiler) {
compiler.hooks.emit.tapAsync('NextJsBuildManifest', (compilation, callback) => {
const {chunks} = compilation
const assetMap = {devFiles: [], pages: {}}

View file

@ -1,16 +1,13 @@
// @flow
function deleteCache (path: string) {
function deleteCache (path) {
delete require.cache[path]
}
// This plugin flushes require.cache after emitting the files. Providing 'hot reloading' of server files.
export default class NextJsRequireCacheHotReloader {
prevAssets: null | {[string]: {existsAt: string}}
constructor () {
this.prevAssets = null
}
apply (compiler: any) {
apply (compiler) {
compiler.hooks.afterEmit.tapAsync('NextJsRequireCacheHotReloader', (compilation, callback) => {
const { assets } = compilation

View file

@ -1,4 +1,3 @@
// @flow
import { RawSource } from 'webpack-sources'
import {PAGES_MANIFEST, ROUTE_NAME_REGEX} from 'next-server/constants'
@ -6,7 +5,7 @@ import {PAGES_MANIFEST, ROUTE_NAME_REGEX} from 'next-server/constants'
// This is used for mapping paths like `/` to `.next/server/static/<buildid>/pages/index.js` when doing SSR
// It's also used by next export to provide defaultPathMap
export default class PagesManifestPlugin {
apply (compiler: any) {
apply (compiler) {
compiler.hooks.emit.tap('NextJsPagesManifest', (compilation) => {
const {entries} = compilation
const pages = {}

View file

@ -1,4 +1,3 @@
// @flow
import { ConcatSource } from 'webpack-sources'
import {
IS_BUNDLED_PAGE_REGEX,
@ -6,7 +5,7 @@ import {
} from 'next-server/constants'
export default class PagesPlugin {
apply (compiler: any) {
apply (compiler) {
compiler.hooks.compilation.tap('PagesPlugin', (compilation) => {
// This hook is triggered right before a module gets wrapped into it's initializing function,
// For example when you look at the source of a bundle you'll see an object holding `'pages/_app.js': function(module, etc, etc)`

View file

@ -1,4 +1,3 @@
// @flow
import { join } from 'path'
import promisify from '../../../lib/promisify'
import fs from 'fs'
@ -8,12 +7,11 @@ const unlink = promisify(fs.unlink)
// Makes sure removed pages are removed from `.next` in development
export default class UnlinkFilePlugin {
prevAssets: any
constructor () {
this.prevAssets = {}
}
apply (compiler: any) {
apply (compiler) {
compiler.hooks.afterEmit.tapAsync('NextJsUnlinkRemovedPages', (compilation, callback) => {
const removed = Object.keys(this.prevAssets)
.filter((a) => IS_BUNDLED_PAGE_REGEX.test(a) && !compilation.assets[a])

View file

@ -1,17 +1,7 @@
// @flow
import * as React from 'react'
import React from 'react'
type ComponentDidCatchInfo = {
componentStack: string
}
type Props = {|
onError: (error: Error, info: ComponentDidCatchInfo) => void,
children: React.ComponentType<*>
|}
class ErrorBoundary extends React.Component<Props> {
componentDidCatch (error: Error, info: ComponentDidCatchInfo) {
class ErrorBoundary extends React.Component {
componentDidCatch (error, info) {
const {onError} = this.props
// onError is required
onError(error, info)

View file

@ -1,7 +1,6 @@
// @flow
const filenameRE = /\(([^)]+\.js):(\d+):(\d+)\)$/
export function rewriteStacktrace (e: any, distDir: string): void {
export function rewriteStacktrace (e, distDir) {
if (!e || typeof e.stack !== 'string') {
return
}
@ -15,7 +14,7 @@ export function rewriteStacktrace (e: any, distDir: string): void {
e.stack = result.join('\n')
}
function rewriteTraceLine (trace: string, distDir: string): string {
function rewriteTraceLine (trace, distDir) {
const m = trace.match(filenameRE)
if (m == null) {
return trace

View file

@ -1,277 +0,0 @@
// flow-typed signature: 6efcfad8e6dad5d1ef55854d4f6d2272
// flow-typed version: <<STUB>>/autodll-webpack-plugin_v0.4.2/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'autodll-webpack-plugin'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'autodll-webpack-plugin' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'autodll-webpack-plugin/lib/createCompileIfNeeded' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/createConfig' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/createHandleStats' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/createHash' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/createLogger' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/createMemory' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/createSettings' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/getEnv' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/getInstanceIndex' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/index' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/mapParentConfig' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/normalizeEntry' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/paths' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/plugin' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/utils/fs' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/utils/index' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/utils/safeClone' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/lib/validateCache' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/createCompileIfNeeded' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/createConfig' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/createHandleStats' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/createHash' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/createLogger' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/createMemory' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/createSettings' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/getEnv' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/getInstanceIndex' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/index' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/mapParentConfig' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/normalizeEntry' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/paths' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/plugin' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/utils/fs' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/utils/index' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/utils/safeClone' {
declare module.exports: any;
}
declare module 'autodll-webpack-plugin/src/validateCache' {
declare module.exports: any;
}
// Filename aliases
declare module 'autodll-webpack-plugin/lib/createCompileIfNeeded.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/createCompileIfNeeded'>;
}
declare module 'autodll-webpack-plugin/lib/createConfig.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/createConfig'>;
}
declare module 'autodll-webpack-plugin/lib/createHandleStats.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/createHandleStats'>;
}
declare module 'autodll-webpack-plugin/lib/createHash.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/createHash'>;
}
declare module 'autodll-webpack-plugin/lib/createLogger.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/createLogger'>;
}
declare module 'autodll-webpack-plugin/lib/createMemory.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/createMemory'>;
}
declare module 'autodll-webpack-plugin/lib/createSettings.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/createSettings'>;
}
declare module 'autodll-webpack-plugin/lib/getEnv.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/getEnv'>;
}
declare module 'autodll-webpack-plugin/lib/getInstanceIndex.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/getInstanceIndex'>;
}
declare module 'autodll-webpack-plugin/lib/index.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/index'>;
}
declare module 'autodll-webpack-plugin/lib/mapParentConfig.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/mapParentConfig'>;
}
declare module 'autodll-webpack-plugin/lib/normalizeEntry.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/normalizeEntry'>;
}
declare module 'autodll-webpack-plugin/lib/paths.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/paths'>;
}
declare module 'autodll-webpack-plugin/lib/plugin.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/plugin'>;
}
declare module 'autodll-webpack-plugin/lib/utils/fs.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/utils/fs'>;
}
declare module 'autodll-webpack-plugin/lib/utils/index.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/utils/index'>;
}
declare module 'autodll-webpack-plugin/lib/utils/safeClone.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/utils/safeClone'>;
}
declare module 'autodll-webpack-plugin/lib/validateCache.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/lib/validateCache'>;
}
declare module 'autodll-webpack-plugin/src/createCompileIfNeeded.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/createCompileIfNeeded'>;
}
declare module 'autodll-webpack-plugin/src/createConfig.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/createConfig'>;
}
declare module 'autodll-webpack-plugin/src/createHandleStats.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/createHandleStats'>;
}
declare module 'autodll-webpack-plugin/src/createHash.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/createHash'>;
}
declare module 'autodll-webpack-plugin/src/createLogger.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/createLogger'>;
}
declare module 'autodll-webpack-plugin/src/createMemory.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/createMemory'>;
}
declare module 'autodll-webpack-plugin/src/createSettings.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/createSettings'>;
}
declare module 'autodll-webpack-plugin/src/getEnv.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/getEnv'>;
}
declare module 'autodll-webpack-plugin/src/getInstanceIndex.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/getInstanceIndex'>;
}
declare module 'autodll-webpack-plugin/src/index.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/index'>;
}
declare module 'autodll-webpack-plugin/src/mapParentConfig.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/mapParentConfig'>;
}
declare module 'autodll-webpack-plugin/src/normalizeEntry.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/normalizeEntry'>;
}
declare module 'autodll-webpack-plugin/src/paths.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/paths'>;
}
declare module 'autodll-webpack-plugin/src/plugin.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/plugin'>;
}
declare module 'autodll-webpack-plugin/src/utils/fs.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/utils/fs'>;
}
declare module 'autodll-webpack-plugin/src/utils/index.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/utils/index'>;
}
declare module 'autodll-webpack-plugin/src/utils/safeClone.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/utils/safeClone'>;
}
declare module 'autodll-webpack-plugin/src/validateCache.js' {
declare module.exports: $Exports<'autodll-webpack-plugin/src/validateCache'>;
}

View file

@ -1,46 +0,0 @@
// flow-typed signature: 6d6b4e28b1ef5b7419a59c32761d27f5
// flow-typed version: <<STUB>>/glob_v7.1.2/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'glob'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'glob' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'glob/common' {
declare module.exports: any;
}
declare module 'glob/glob' {
declare module.exports: any;
}
declare module 'glob/sync' {
declare module.exports: any;
}
// Filename aliases
declare module 'glob/common.js' {
declare module.exports: $Exports<'glob/common'>;
}
declare module 'glob/glob.js' {
declare module.exports: $Exports<'glob/glob'>;
}
declare module 'glob/sync.js' {
declare module.exports: $Exports<'glob/sync'>;
}

View file

@ -1,102 +0,0 @@
// flow-typed signature: fbec9bc08efb50bade7bd6c2bab84e41
// flow-typed version: <<STUB>>/loader-utils_v1.1.0/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'loader-utils'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'loader-utils' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'loader-utils/lib/getCurrentRequest' {
declare module.exports: any;
}
declare module 'loader-utils/lib/getHashDigest' {
declare module.exports: any;
}
declare module 'loader-utils/lib/getOptions' {
declare module.exports: any;
}
declare module 'loader-utils/lib/getRemainingRequest' {
declare module.exports: any;
}
declare module 'loader-utils/lib/index' {
declare module.exports: any;
}
declare module 'loader-utils/lib/interpolateName' {
declare module.exports: any;
}
declare module 'loader-utils/lib/isUrlRequest' {
declare module.exports: any;
}
declare module 'loader-utils/lib/parseQuery' {
declare module.exports: any;
}
declare module 'loader-utils/lib/parseString' {
declare module.exports: any;
}
declare module 'loader-utils/lib/stringifyRequest' {
declare module.exports: any;
}
declare module 'loader-utils/lib/urlToRequest' {
declare module.exports: any;
}
// Filename aliases
declare module 'loader-utils/lib/getCurrentRequest.js' {
declare module.exports: $Exports<'loader-utils/lib/getCurrentRequest'>;
}
declare module 'loader-utils/lib/getHashDigest.js' {
declare module.exports: $Exports<'loader-utils/lib/getHashDigest'>;
}
declare module 'loader-utils/lib/getOptions.js' {
declare module.exports: $Exports<'loader-utils/lib/getOptions'>;
}
declare module 'loader-utils/lib/getRemainingRequest.js' {
declare module.exports: $Exports<'loader-utils/lib/getRemainingRequest'>;
}
declare module 'loader-utils/lib/index.js' {
declare module.exports: $Exports<'loader-utils/lib/index'>;
}
declare module 'loader-utils/lib/interpolateName.js' {
declare module.exports: $Exports<'loader-utils/lib/interpolateName'>;
}
declare module 'loader-utils/lib/isUrlRequest.js' {
declare module.exports: $Exports<'loader-utils/lib/isUrlRequest'>;
}
declare module 'loader-utils/lib/parseQuery.js' {
declare module.exports: $Exports<'loader-utils/lib/parseQuery'>;
}
declare module 'loader-utils/lib/parseString.js' {
declare module.exports: $Exports<'loader-utils/lib/parseString'>;
}
declare module 'loader-utils/lib/stringifyRequest.js' {
declare module.exports: $Exports<'loader-utils/lib/stringifyRequest'>;
}
declare module 'loader-utils/lib/urlToRequest.js' {
declare module.exports: $Exports<'loader-utils/lib/urlToRequest'>;
}

View file

@ -1,53 +0,0 @@
// flow-typed signature: 729d832efcac0a21ab881042caf78e1e
// flow-typed version: <<STUB>>/react-lifecycles-compat_v3.0.4/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-lifecycles-compat'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'react-lifecycles-compat' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'react-lifecycles-compat/react-lifecycles-compat.cjs' {
declare module.exports: any;
}
declare module 'react-lifecycles-compat/react-lifecycles-compat.es' {
declare module.exports: any;
}
declare module 'react-lifecycles-compat/react-lifecycles-compat' {
declare module.exports: any;
}
declare module 'react-lifecycles-compat/react-lifecycles-compat.min' {
declare module.exports: any;
}
// Filename aliases
declare module 'react-lifecycles-compat/react-lifecycles-compat.cjs.js' {
declare module.exports: $Exports<'react-lifecycles-compat/react-lifecycles-compat.cjs'>;
}
declare module 'react-lifecycles-compat/react-lifecycles-compat.es.js' {
declare module.exports: $Exports<'react-lifecycles-compat/react-lifecycles-compat.es'>;
}
declare module 'react-lifecycles-compat/react-lifecycles-compat.js' {
declare module.exports: $Exports<'react-lifecycles-compat/react-lifecycles-compat'>;
}
declare module 'react-lifecycles-compat/react-lifecycles-compat.min.js' {
declare module.exports: $Exports<'react-lifecycles-compat/react-lifecycles-compat.min'>;
}

View file

@ -1,123 +0,0 @@
// flow-typed signature: 4307ae4d07743816402f6fe06ed629ad
// flow-typed version: <<STUB>>/source-map_v0.5.7/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'source-map'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'source-map' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'source-map/dist/source-map.debug' {
declare module.exports: any;
}
declare module 'source-map/dist/source-map' {
declare module.exports: any;
}
declare module 'source-map/dist/source-map.min' {
declare module.exports: any;
}
declare module 'source-map/lib/array-set' {
declare module.exports: any;
}
declare module 'source-map/lib/base64-vlq' {
declare module.exports: any;
}
declare module 'source-map/lib/base64' {
declare module.exports: any;
}
declare module 'source-map/lib/binary-search' {
declare module.exports: any;
}
declare module 'source-map/lib/mapping-list' {
declare module.exports: any;
}
declare module 'source-map/lib/quick-sort' {
declare module.exports: any;
}
declare module 'source-map/lib/source-map-consumer' {
declare module.exports: any;
}
declare module 'source-map/lib/source-map-generator' {
declare module.exports: any;
}
declare module 'source-map/lib/source-node' {
declare module.exports: any;
}
declare module 'source-map/lib/util' {
declare module.exports: any;
}
declare module 'source-map/source-map' {
declare module.exports: any;
}
// Filename aliases
declare module 'source-map/dist/source-map.debug.js' {
declare module.exports: $Exports<'source-map/dist/source-map.debug'>;
}
declare module 'source-map/dist/source-map.js' {
declare module.exports: $Exports<'source-map/dist/source-map'>;
}
declare module 'source-map/dist/source-map.min.js' {
declare module.exports: $Exports<'source-map/dist/source-map.min'>;
}
declare module 'source-map/lib/array-set.js' {
declare module.exports: $Exports<'source-map/lib/array-set'>;
}
declare module 'source-map/lib/base64-vlq.js' {
declare module.exports: $Exports<'source-map/lib/base64-vlq'>;
}
declare module 'source-map/lib/base64.js' {
declare module.exports: $Exports<'source-map/lib/base64'>;
}
declare module 'source-map/lib/binary-search.js' {
declare module.exports: $Exports<'source-map/lib/binary-search'>;
}
declare module 'source-map/lib/mapping-list.js' {
declare module.exports: $Exports<'source-map/lib/mapping-list'>;
}
declare module 'source-map/lib/quick-sort.js' {
declare module.exports: $Exports<'source-map/lib/quick-sort'>;
}
declare module 'source-map/lib/source-map-consumer.js' {
declare module.exports: $Exports<'source-map/lib/source-map-consumer'>;
}
declare module 'source-map/lib/source-map-generator.js' {
declare module.exports: $Exports<'source-map/lib/source-map-generator'>;
}
declare module 'source-map/lib/source-node.js' {
declare module.exports: $Exports<'source-map/lib/source-node'>;
}
declare module 'source-map/lib/util.js' {
declare module.exports: $Exports<'source-map/lib/util'>;
}
declare module 'source-map/source-map.js' {
declare module.exports: $Exports<'source-map/source-map'>;
}

View file

@ -1,60 +0,0 @@
// flow-typed signature: 7f0a5671a6d757d5e9f880e207a37572
// flow-typed version: <<STUB>>/terser-webpack-plugin_v1.0.2/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'terser-webpack-plugin'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'terser-webpack-plugin' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'terser-webpack-plugin/dist/cjs' {
declare module.exports: any;
}
declare module 'terser-webpack-plugin/dist/index' {
declare module.exports: any;
}
declare module 'terser-webpack-plugin/dist/minify' {
declare module.exports: any;
}
declare module 'terser-webpack-plugin/dist/TaskRunner' {
declare module.exports: any;
}
declare module 'terser-webpack-plugin/dist/worker' {
declare module.exports: any;
}
// Filename aliases
declare module 'terser-webpack-plugin/dist/cjs.js' {
declare module.exports: $Exports<'terser-webpack-plugin/dist/cjs'>;
}
declare module 'terser-webpack-plugin/dist/index.js' {
declare module.exports: $Exports<'terser-webpack-plugin/dist/index'>;
}
declare module 'terser-webpack-plugin/dist/minify.js' {
declare module.exports: $Exports<'terser-webpack-plugin/dist/minify'>;
}
declare module 'terser-webpack-plugin/dist/TaskRunner.js' {
declare module.exports: $Exports<'terser-webpack-plugin/dist/TaskRunner'>;
}
declare module 'terser-webpack-plugin/dist/worker.js' {
declare module.exports: $Exports<'terser-webpack-plugin/dist/worker'>;
}

View file

@ -1,67 +0,0 @@
// flow-typed signature: e7e7f59f1cdd9c963584b4620763fec3
// flow-typed version: <<STUB>>/uglifyjs-webpack-plugin_v1.1.6/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'uglifyjs-webpack-plugin'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'uglifyjs-webpack-plugin' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'uglifyjs-webpack-plugin/dist/cjs' {
declare module.exports: any;
}
declare module 'uglifyjs-webpack-plugin/dist/index' {
declare module.exports: any;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/index' {
declare module.exports: any;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/minify' {
declare module.exports: any;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/versions' {
declare module.exports: any;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/worker' {
declare module.exports: any;
}
// Filename aliases
declare module 'uglifyjs-webpack-plugin/dist/cjs.js' {
declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/cjs'>;
}
declare module 'uglifyjs-webpack-plugin/dist/index.js' {
declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/index'>;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/index.js' {
declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/index'>;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/minify.js' {
declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/minify'>;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/versions.js' {
declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/versions'>;
}
declare module 'uglifyjs-webpack-plugin/dist/uglify/worker.js' {
declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/uglify/worker'>;
}

View file

@ -1,60 +0,0 @@
// flow-typed signature: a652d8adeb137f15eeb79e87d8238710
// flow-typed version: <<STUB>>/unfetch_v3.0.0/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'unfetch'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'unfetch' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'unfetch/dist/unfetch.es' {
declare module.exports: any;
}
declare module 'unfetch/dist/unfetch' {
declare module.exports: any;
}
declare module 'unfetch/dist/unfetch.umd' {
declare module.exports: any;
}
declare module 'unfetch/polyfill' {
declare module.exports: any;
}
declare module 'unfetch/src/index' {
declare module.exports: any;
}
// Filename aliases
declare module 'unfetch/dist/unfetch.es.js' {
declare module.exports: $Exports<'unfetch/dist/unfetch.es'>;
}
declare module 'unfetch/dist/unfetch.js' {
declare module.exports: $Exports<'unfetch/dist/unfetch'>;
}
declare module 'unfetch/dist/unfetch.umd.js' {
declare module.exports: $Exports<'unfetch/dist/unfetch.umd'>;
}
declare module 'unfetch/polyfill.js' {
declare module.exports: $Exports<'unfetch/polyfill'>;
}
declare module 'unfetch/src/index.js' {
declare module.exports: $Exports<'unfetch/src/index'>;
}

View file

@ -1,102 +0,0 @@
// flow-typed signature: d41ce38862b325831cb20e57893195bc
// flow-typed version: <<STUB>>/webpack-sources_v1.1.0/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'webpack-sources'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'webpack-sources' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'webpack-sources/lib/CachedSource' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/ConcatSource' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/index' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/LineToLineMappedSource' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/OriginalSource' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/PrefixSource' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/RawSource' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/ReplaceSource' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/Source' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/SourceAndMapMixin' {
declare module.exports: any;
}
declare module 'webpack-sources/lib/SourceMapSource' {
declare module.exports: any;
}
// Filename aliases
declare module 'webpack-sources/lib/CachedSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/CachedSource'>;
}
declare module 'webpack-sources/lib/ConcatSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/ConcatSource'>;
}
declare module 'webpack-sources/lib/index.js' {
declare module.exports: $Exports<'webpack-sources/lib/index'>;
}
declare module 'webpack-sources/lib/LineToLineMappedSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/LineToLineMappedSource'>;
}
declare module 'webpack-sources/lib/OriginalSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/OriginalSource'>;
}
declare module 'webpack-sources/lib/PrefixSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/PrefixSource'>;
}
declare module 'webpack-sources/lib/RawSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/RawSource'>;
}
declare module 'webpack-sources/lib/ReplaceSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/ReplaceSource'>;
}
declare module 'webpack-sources/lib/Source.js' {
declare module.exports: $Exports<'webpack-sources/lib/Source'>;
}
declare module 'webpack-sources/lib/SourceAndMapMixin.js' {
declare module.exports: $Exports<'webpack-sources/lib/SourceAndMapMixin'>;
}
declare module 'webpack-sources/lib/SourceMapSource.js' {
declare module.exports: $Exports<'webpack-sources/lib/SourceMapSource'>;
}

File diff suppressed because it is too large Load diff

View file

@ -1,60 +0,0 @@
// flow-typed signature: 83ca23a55b5361dc350877279882bf56
// flow-typed version: <<STUB>>/webpackbar_v2.6.1/flow_v0.73.0
/**
* This is an autogenerated libdef stub for:
*
* 'webpackbar'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'webpackbar' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'webpackbar/dist/cjs' {
declare module.exports: any;
}
declare module 'webpackbar/dist/description' {
declare module.exports: any;
}
declare module 'webpackbar/dist/index' {
declare module.exports: any;
}
declare module 'webpackbar/dist/profile' {
declare module.exports: any;
}
declare module 'webpackbar/dist/utils' {
declare module.exports: any;
}
// Filename aliases
declare module 'webpackbar/dist/cjs.js' {
declare module.exports: $Exports<'webpackbar/dist/cjs'>;
}
declare module 'webpackbar/dist/description.js' {
declare module.exports: $Exports<'webpackbar/dist/description'>;
}
declare module 'webpackbar/dist/index.js' {
declare module.exports: $Exports<'webpackbar/dist/index'>;
}
declare module 'webpackbar/dist/profile.js' {
declare module.exports: $Exports<'webpackbar/dist/profile'>;
}
declare module 'webpackbar/dist/utils.js' {
declare module.exports: $Exports<'webpackbar/dist/utils'>;
}

View file

@ -28,7 +28,6 @@
"scripts": {
"build": "taskr",
"release": "taskr release",
"flow": "flow check",
"prepublish": "npm run release"
},
"taskr": {
@ -89,7 +88,6 @@
"react-dom": "^16.0.0"
},
"devDependencies": {
"@babel/preset-flow": "7.0.0",
"@taskr/clear": "1.1.0",
"@taskr/esnext": "1.1.0",
"@taskr/watch": "1.1.0",