-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add concurrency option to run and exec (#1312)
To speed things up, add a `concurrency` option to `aegir run` and `aegir exec` - this will run commands up to the cocurrency limit while still taking monorepo sibling dependencies into account. --------- Co-authored-by: Cayman <caymannava@gmail.com>
- Loading branch information
1 parent
c99edc0
commit 4d3c319
Showing
34 changed files
with
463 additions
and
19 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
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
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,12 @@ | ||
{ | ||
"name": "a-large-monorepo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"homepage": "https://github.com/ipfs/aegir#readme", | ||
"scripts": { | ||
"docs": "aegir docs" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
test/fixtures/projects/a-large-monorepo/packages/a/package.json
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,17 @@ | ||
{ | ||
"name": "a", | ||
"version": "1.0.0", | ||
"description": "", | ||
"homepage": "https://github.com/ipfs/aegir#readme", | ||
"exports": { | ||
".": { | ||
"import": "./src/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "echo very test" | ||
}, | ||
"type": "module", | ||
"author": "", | ||
"license": "ISC" | ||
} |
16 changes: 16 additions & 0 deletions
16
test/fixtures/projects/a-large-monorepo/packages/a/src/index.js
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,16 @@ | ||
/** | ||
* @typedef {import('./types').ExportedButNotInExports} ExportedButNotInExports | ||
*/ | ||
|
||
/** | ||
* @typedef {object} AnExportedInterface | ||
* @property {() => void} AnExportedInterface.aMethod | ||
*/ | ||
|
||
export const useHerp = () => { | ||
|
||
} | ||
|
||
export const useDerp = () => { | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
test/fixtures/projects/a-large-monorepo/packages/a/src/types.ts
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,3 @@ | ||
export interface ExportedButNotInExports { | ||
aMethod(): void | ||
} |
39 changes: 39 additions & 0 deletions
39
test/fixtures/projects/a-large-monorepo/packages/a/tsconfig.json
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,39 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": true, | ||
// project options | ||
"outDir": "dist", | ||
"allowJs": true, | ||
"checkJs": true, | ||
"target": "ES2020", | ||
"module": "ES2020", | ||
"lib": ["ES2021", "ES2021.Promise", "ES2021.String", "ES2020.BigInt", "DOM", "DOM.Iterable"], | ||
"noEmit": false, | ||
"noEmitOnError": true, | ||
"emitDeclarationOnly": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"incremental": true, | ||
"composite": true, | ||
"isolatedModules": true, | ||
"removeComments": false, | ||
"sourceMap": true, | ||
// module resolution | ||
"esModuleInterop": true, | ||
"moduleResolution": "node", | ||
// linter checks | ||
"noImplicitReturns": false, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": false, | ||
// advanced | ||
"verbatimModuleSyntax": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true, | ||
"stripInternal": true, | ||
"resolveJsonModule": true | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
test/fixtures/projects/a-large-monorepo/packages/a/typedoc.json
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,3 @@ | ||
{ | ||
"entryPoints": ["./src/index.js"] | ||
} |
20 changes: 20 additions & 0 deletions
20
test/fixtures/projects/a-large-monorepo/packages/b/package.json
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,20 @@ | ||
{ | ||
"name": "b", | ||
"version": "1.0.0", | ||
"description": "", | ||
"homepage": "https://github.com/ipfs/aegir#readme", | ||
"exports": { | ||
".": { | ||
"import": "./src/index.js" | ||
} | ||
}, | ||
"dependencies": { | ||
"a": "1.0.0" | ||
}, | ||
"scripts": { | ||
"test": "echo very test" | ||
}, | ||
"type": "module", | ||
"author": "", | ||
"license": "ISC" | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/projects/a-large-monorepo/packages/b/src/dir/index.js
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,7 @@ | ||
/** | ||
* @param {string} arg | ||
* @returns {boolean} | ||
*/ | ||
export function garply (arg) { | ||
return true | ||
} |
18 changes: 18 additions & 0 deletions
18
test/fixtures/projects/a-large-monorepo/packages/b/src/index.js
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,18 @@ | ||
/** | ||
* @typedef {import('./types.js').ExportedButNotInExports} ExportedButNotInExports | ||
*/ | ||
|
||
/** | ||
* @typedef {object} AnExportedInterface | ||
* @property {() => void} AnExportedInterface.aMethod | ||
*/ | ||
|
||
export const useHerp = () => { | ||
|
||
} | ||
|
||
export const useDerp = () => { | ||
|
||
} | ||
|
||
export { garply } from './dir/index.js' |
3 changes: 3 additions & 0 deletions
3
test/fixtures/projects/a-large-monorepo/packages/b/src/types.ts
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,3 @@ | ||
export interface ExportedButNotInExports { | ||
aMethod(): void | ||
} |
Oops, something went wrong.