mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-11 14:46:37 +03:00
Summary: Release notes: upgrades Prepack to use Babel 7.0.0-beta.53 This is a big PR that updates all of Prepack to Babel 7. Babylon is now `babel/parser` and pretty much all of the the previous Babel packages are now located in scoped packages. I had to make a bunch of changes around Jest/Flow/Webpack to get this all working. The build times of building Prepack itself seem considerably faster (easily twice as fast locally). I followed most of the Babel 6 -> 7 upgrade guide from the Babel site in terms of changing nodes and type definitions to match the new ones. Pull Request resolved: https://github.com/facebook/prepack/pull/2256 Differential Revision: D8850583 Pulled By: trueadm fbshipit-source-id: 2d2aaec25c6a1ccd1ec0c08c5e7e2a71f78ac2d8
115 lines
3.2 KiB
JavaScript
115 lines
3.2 KiB
JavaScript
// flow-typed signature: f965116cdb881170be8c42b10554e195
|
|
// flow-typed version: da30fe6876/chalk_v1.x.x/flow_>=v0.25.x
|
|
|
|
type $npm$chalk$StyleElement = {
|
|
open: string,
|
|
close: string
|
|
};
|
|
|
|
type $npm$chalk$Chain = $npm$chalk$Style & ((...text: any[]) => string);
|
|
|
|
type $npm$chalk$Style = {
|
|
// General
|
|
reset: $npm$chalk$Chain,
|
|
bold: $npm$chalk$Chain,
|
|
dim: $npm$chalk$Chain,
|
|
italic: $npm$chalk$Chain,
|
|
underline: $npm$chalk$Chain,
|
|
inverse: $npm$chalk$Chain,
|
|
strikethrough: $npm$chalk$Chain,
|
|
|
|
// Text colors
|
|
black: $npm$chalk$Chain,
|
|
red: $npm$chalk$Chain,
|
|
green: $npm$chalk$Chain,
|
|
yellow: $npm$chalk$Chain,
|
|
blue: $npm$chalk$Chain,
|
|
magenta: $npm$chalk$Chain,
|
|
cyan: $npm$chalk$Chain,
|
|
white: $npm$chalk$Chain,
|
|
gray: $npm$chalk$Chain,
|
|
grey: $npm$chalk$Chain,
|
|
|
|
// Background colors
|
|
bgBlack: $npm$chalk$Chain,
|
|
bgRed: $npm$chalk$Chain,
|
|
bgGreen: $npm$chalk$Chain,
|
|
bgYellow: $npm$chalk$Chain,
|
|
bgBlue: $npm$chalk$Chain,
|
|
bgMagenta: $npm$chalk$Chain,
|
|
bgCyan: $npm$chalk$Chain,
|
|
bgWhite: $npm$chalk$Chain
|
|
};
|
|
|
|
type $npm$chalk$StyleMap = {
|
|
// General
|
|
reset: $npm$chalk$StyleElement,
|
|
bold: $npm$chalk$StyleElement,
|
|
dim: $npm$chalk$StyleElement,
|
|
italic: $npm$chalk$StyleElement,
|
|
underline: $npm$chalk$StyleElement,
|
|
inverse: $npm$chalk$StyleElement,
|
|
strikethrough: $npm$chalk$StyleElement,
|
|
|
|
// Text colors
|
|
black: $npm$chalk$StyleElement,
|
|
red: $npm$chalk$StyleElement,
|
|
green: $npm$chalk$StyleElement,
|
|
yellow: $npm$chalk$StyleElement,
|
|
blue: $npm$chalk$StyleElement,
|
|
magenta: $npm$chalk$StyleElement,
|
|
cyan: $npm$chalk$StyleElement,
|
|
white: $npm$chalk$StyleElement,
|
|
gray: $npm$chalk$StyleElement,
|
|
|
|
// Background colors
|
|
bgBlack: $npm$chalk$StyleElement,
|
|
bgRed: $npm$chalk$StyleElement,
|
|
bgGreen: $npm$chalk$StyleElement,
|
|
bgYellow: $npm$chalk$StyleElement,
|
|
bgBlue: $npm$chalk$StyleElement,
|
|
bgMagenta: $npm$chalk$StyleElement,
|
|
bgCyan: $npm$chalk$StyleElement,
|
|
bgWhite: $npm$chalk$StyleElement
|
|
};
|
|
|
|
declare module "chalk" {
|
|
declare var enabled: boolean;
|
|
declare var supportsColor: boolean;
|
|
declare var styles: $npm$chalk$StyleMap;
|
|
|
|
declare function stripColor(value: string): any;
|
|
declare function hasColor(str: string): boolean;
|
|
|
|
// General
|
|
declare var reset: $npm$chalk$Chain;
|
|
declare var bold: $npm$chalk$Chain;
|
|
declare var dim: $npm$chalk$Chain;
|
|
declare var italic: $npm$chalk$Chain;
|
|
declare var underline: $npm$chalk$Chain;
|
|
declare var inverse: $npm$chalk$Chain;
|
|
declare var strikethrough: $npm$chalk$Chain;
|
|
|
|
// Text colors
|
|
declare var black: $npm$chalk$Chain;
|
|
declare var red: $npm$chalk$Chain;
|
|
declare var green: $npm$chalk$Chain;
|
|
declare var yellow: $npm$chalk$Chain;
|
|
declare var blue: $npm$chalk$Chain;
|
|
declare var magenta: $npm$chalk$Chain;
|
|
declare var cyan: $npm$chalk$Chain;
|
|
declare var white: $npm$chalk$Chain;
|
|
declare var gray: $npm$chalk$Chain;
|
|
declare var grey: $npm$chalk$Chain;
|
|
|
|
// Background colors
|
|
declare var bgBlack: $npm$chalk$Chain;
|
|
declare var bgRed: $npm$chalk$Chain;
|
|
declare var bgGreen: $npm$chalk$Chain;
|
|
declare var bgYellow: $npm$chalk$Chain;
|
|
declare var bgBlue: $npm$chalk$Chain;
|
|
declare var bgMagenta: $npm$chalk$Chain;
|
|
declare var bgCyan: $npm$chalk$Chain;
|
|
declare var bgWhite: $npm$chalk$Chain;
|
|
}
|