Skip to content
This repository was archived by the owner on Apr 21, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .catrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ const lint = {
...ignore.ignore,
// ignore for @mikojs/eslint-config-base testing
'packages/eslint-config-base/src/__tests__/__ignore__',
'packages/nested-flow/**/flow-typed/npm',
'packages/create-project/**/flow-typed/npm',
],
}),
};
Expand All @@ -75,8 +73,6 @@ const jest = {
),
{
exclude: [
/node_modules/,
/flow-typed\/npm/,
/__generated__/,
/__tests__\/__ignore__\/.*\/__tests__/,
/__tests__\/__ignore__\/[a-zA-Z]*.js$/,
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ install:
@yarn lerna exec "configs flow-typed:lerna install --verbose" \
--stream \
--concurrency 1
@yarn nested-flow flow-typed install

babel-all:
@$(call babel-build)
Expand Down Expand Up @@ -56,7 +55,6 @@ define babel-build
$(2)
ln -snf $(ROOT)/packages/configs/lib/bin/index.js ./node_modules/.bin/configs
ln -snf $(ROOT)/packages/badges/lib/bin/index.js ./node_modules/.bin/badges
ln -snf $(ROOT)/packages/nested-flow/lib/bin/index.js ./node_modules/.bin/nested-flow
ln -snf $(ROOT)/server/server/lib/bin/index.js ./node_modules/.bin/server
yarn lerna exec \
"configs babel:lerna $(1)" \
Expand Down
9 changes: 3 additions & 6 deletions __mocks__/envinfo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

export default ({
run: jest.fn().mockResolvedValue(
export default {
run: () =>
JSON.stringify({
Binaries: {
Node: {
Expand All @@ -15,7 +15,4 @@ export default ({
},
},
}),
),
}: {|
run: JestMockFn<$ReadOnlyArray<void>, Promise<string>>,
|});
};
17 changes: 2 additions & 15 deletions __mocks__/execa.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
// @flow

const mockResult: Promise<{ stdout: string }> & {
stdout?: {},
stderr?: {},
} = Promise.resolve({ stdout: '' });

mockResult.stdout = {
pipe: jest.fn(),
};

mockResult.stderr = {
pipe: jest.fn(),
};

export default (jest.fn().mockImplementation(() => mockResult): JestMockFn<
export default (jest.fn().mockResolvedValue({ stdout: '' }): JestMockFn<
$ReadOnlyArray<void>,
typeof mockResult,
Promise<{ stdout: string }>,
>);
1 change: 0 additions & 1 deletion __mocks__/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export default {
existsSync: jest.fn().mockReturnValue(true),
mkdirSync: jest.fn(),
createWriteStream: jest.fn(),
symlinkSync: jest.fn(),
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@mikojs/jest": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@mikojs/jest": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"husky": "latest",
"jest": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export default () =>
...result,
[key]: argu.reduce(
(newResult: $Values<resultType>, arguKey: string) =>
/** flow-bin can not be uesed in testing, flow-typed can not use flow-bin@latest */
['add', '--dev', 'flow-bin'].includes(arguKey)
['add', '--dev'].includes(arguKey)
? newResult
: {
...newResult,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@mikojs/jest": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@mikojs/jest": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"husky": "latest",
"jest": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@mikojs/jest": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"husky": "latest",
"jest": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"enzyme-adapter-react-16": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"enzyme-adapter-react-16": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"enzyme-adapter-react-16": "latest",
"eslint": "latest",
"eslint-watch": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"eslint": "latest",
"eslint-watch": "latest",
"fetch-mock": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"eslint": "latest",
"eslint-watch": "latest",
"fetch-mock": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"eslint": "latest",
"eslint-watch": "latest",
"fetch-mock": "latest",
"flow-bin": "latest",
"flow-typed": "latest",
"get-port": "latest",
"husky": "latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-project/src/stores/gitignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lib
.eslintcache

# flow
**/flow-typed/npm
flow-typed/npm

# jest
coverage${
Expand Down
2 changes: 0 additions & 2 deletions packages/nested-flow/.npmignore

This file was deleted.

17 changes: 0 additions & 17 deletions packages/nested-flow/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions packages/nested-flow/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/nested-flow/src/__tests__/index.js

This file was deleted.

Loading