-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/v2' into lmdb-cache
- Loading branch information
Showing
649 changed files
with
20,075 additions
and
8,112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
os: [macos-latest, windows-latest] | ||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -23,9 +23,6 @@ jobs: | |
run: node scripts/link-native.js | ||
- uses: bahmutov/[email protected] | ||
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: strip native-packages/*/*.node | ||
- name: Strip debug symbols | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: strip -x native-packages/*/*.node # Must use -x on macOS. This produces larger results on linux. | ||
- name: Upload artifacts | ||
|
@@ -36,6 +33,36 @@ jobs: | |
- name: Smoke test | ||
run: node -e "require('@parcel/fs-search')" | ||
|
||
build-linux-gnu-x64: | ||
name: linux-gnu-x64 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker.io/centos/nodejs-12-centos7 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install yarn | ||
run: npm install --global yarn@1 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
- name: Link native packages | ||
run: node scripts/link-native.js | ||
- uses: bahmutov/[email protected] | ||
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034 | ||
run: strip native-packages/*/*.node | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bindings-linux-gnu-x64 | ||
path: native-packages/*/*.node | ||
- name: debug | ||
run: ls -l native-packages/*/*.node | ||
- name: Smoke test | ||
run: node -e 'require("@parcel/fs-search")' | ||
|
||
build-linux-gnu-arm: | ||
strategy: | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
os: [macos-latest, windows-latest] | ||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -22,9 +22,6 @@ jobs: | |
run: node scripts/link-native.js | ||
- uses: bahmutov/[email protected] | ||
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: strip native-packages/*/*.node | ||
- name: Strip debug symbols | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: strip -x native-packages/*/*.node # Must use -x on macOS. This produces larger results on linux. | ||
- name: Upload artifacts | ||
|
@@ -35,6 +32,36 @@ jobs: | |
- name: Smoke test | ||
run: node -e "require('@parcel/fs-search')" | ||
|
||
build-linux-gnu-x64: | ||
name: linux-gnu-x64 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker.io/centos/nodejs-12-centos7 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install yarn | ||
run: npm install --global yarn@1 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
- name: Link native packages | ||
run: node scripts/link-native.js | ||
- uses: bahmutov/[email protected] | ||
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034 | ||
run: strip native-packages/*/*.node | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bindings-linux-gnu-x64 | ||
path: native-packages/*/*.node | ||
- name: debug | ||
run: ls -l native-packages/*/*.node | ||
- name: Smoke test | ||
run: node -e 'require("@parcel/fs-search")' | ||
|
||
build-linux-gnu-arm: | ||
strategy: | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
// https://github.com/flow-typed/flow-typed/pull/3990/files | ||
|
||
declare module 'chalk' { | ||
declare type Color = | ||
| 'black' | ||
| 'red' | ||
| 'green' | ||
| 'yellow' | ||
| 'blue' | ||
| 'magenta' | ||
| 'cyan' | ||
| 'white' | ||
| 'gray' | ||
| 'grey' | ||
| 'blackBright' | ||
| 'redBright' | ||
| 'greenBright' | ||
| 'yellowBright' | ||
| 'blueBright' | ||
| 'magentaBright' | ||
| 'cyanBright' | ||
| 'whiteBright' | ||
| 'bgBlack' | ||
| 'bgRed' | ||
| 'bgGreen' | ||
| 'bgYellow' | ||
| 'bgBlue' | ||
| 'bgMagenta' | ||
| 'bgCyan' | ||
| 'bgWhite' | ||
| 'bgBlackBright' | ||
| 'bgRedBright' | ||
| 'bgGreenBright' | ||
| 'bgYellowBright' | ||
| 'bgBlueBright' | ||
| 'bgMagentaBright' | ||
| 'bgCyanBright' | ||
| 'bgWhiteBright'; | ||
|
||
declare type TemplateStringsArray = $ReadOnlyArray<string>; | ||
|
||
declare type Level = $Values<{ | ||
None: 0, | ||
Basic: 1, | ||
Ansi256: 2, | ||
TrueColor: 3, | ||
... | ||
}>; | ||
|
||
declare type ChalkOptions = {| | ||
level?: Level, | ||
|}; | ||
|
||
declare type ColorSupport = {| | ||
level: Level, | ||
hasBasic: boolean, | ||
has256: boolean, | ||
has16m: boolean, | ||
|}; | ||
|
||
declare type Chalk = {| | ||
(...text: string[]): string, | ||
(text: TemplateStringsArray, ...placeholders: string[]): string, | ||
Instance(options?: ChalkOptions): Chalk, | ||
level: Level, | ||
rgb(r: number, g: number, b: number): Chalk, | ||
hsl(h: number, s: number, l: number): Chalk, | ||
hsv(h: number, s: number, v: number): Chalk, | ||
hwb(h: number, w: number, b: number): Chalk, | ||
bgHex(color: string): Chalk, | ||
bgKeyword(color: string): Chalk, | ||
bgRgb(r: number, g: number, b: number): Chalk, | ||
bgHsl(h: number, s: number, l: number): Chalk, | ||
bgHsv(h: number, s: number, v: number): Chalk, | ||
bgHwb(h: number, w: number, b: number): Chalk, | ||
hex(color: string): Chalk, | ||
keyword(color: string): Chalk, | ||
|
||
+reset: Chalk, | ||
+bold: Chalk, | ||
+dim: Chalk, | ||
+italic: Chalk, | ||
+underline: Chalk, | ||
+inverse: Chalk, | ||
+hidden: Chalk, | ||
+strikethrough: Chalk, | ||
|
||
+visible: Chalk, | ||
|
||
+[Color]: Chalk, | ||
+red: Chalk, | ||
+green: Chalk, | ||
+yellow: Chalk, | ||
+blue: Chalk, | ||
+magenta: Chalk, | ||
+cyan: Chalk, | ||
+white: Chalk, | ||
+gray: Chalk, | ||
+grey: Chalk, | ||
+blackBright: Chalk, | ||
+redBright: Chalk, | ||
+greenBright: Chalk, | ||
+yellowBright: Chalk, | ||
+blueBright: Chalk, | ||
+magentaBright: Chalk, | ||
+cyanBright: Chalk, | ||
+whiteBright: Chalk, | ||
|
||
+bgBlack: Chalk, | ||
+bgRed: Chalk, | ||
+bgGreen: Chalk, | ||
+bgYellow: Chalk, | ||
+bgBlue: Chalk, | ||
+bgMagenta: Chalk, | ||
+bgCyan: Chalk, | ||
+bgWhite: Chalk, | ||
+bgBlackBright: Chalk, | ||
+bgRedBright: Chalk, | ||
+bgGreenBright: Chalk, | ||
+bgYellowBright: Chalk, | ||
+bgBlueBright: Chalk, | ||
+bgMagentaBright: Chalk, | ||
+bgCyanBright: Chalk, | ||
+bgWhiteBrigh: Chalk, | ||
|
||
supportsColor: ColorSupport, | ||
|}; | ||
|
||
declare module.exports: Chalk; | ||
} |
Oops, something went wrong.