-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooling-deps): add cli subcommand/nx executor for project deps
[Finishes #186638343]
- Loading branch information
1 parent
43181a6
commit c241cf2
Showing
22 changed files
with
945 additions
and
318 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,5 +9,11 @@ | |
{ | ||
"path": "../cli-core", | ||
}, | ||
{ | ||
"path": "../cli-plugin-example", | ||
}, | ||
{ | ||
"path": "../tooling-deps", | ||
}, | ||
], | ||
} |
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 |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@types/aws-lambda": "^8.10.133", | ||
"@types/js-yaml": "^4.0.9" | ||
} | ||
} |
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,34 @@ | ||
# @code-like-a-carpenter/tooling-deps | ||
|
||
[](https://github.com/RichardLitt/standard-readme) | ||
|
||
> A CLI plugin for Code Like a Carpenter to manage dependencies | ||
## Table of Contents | ||
|
||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Maintainer](#maintainer) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
|
||
## Install | ||
|
||
```bash | ||
npm i @code-like-a-carpenter/tooling-deps | ||
``` | ||
|
||
## Usage | ||
|
||
## Maintainer | ||
|
||
[Ian Remmel](https://www.ianwremmel.com) | ||
|
||
## Contributing | ||
|
||
Please see contributing guidelines at the | ||
[project homepage](https://www.github.com/code-like-a-carpenter/workbench/). | ||
|
||
## License | ||
|
||
MIT © [Ian Remmel](https://www.ianwremmel.com) 2023 until at least now |
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,9 @@ | ||
{ | ||
"executors": { | ||
"deps": { | ||
"implementation": "./executors/deps/executor", | ||
"schema": "./executors/deps/schema.json", | ||
"description": "deps executor" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/@code-like-a-carpenter/tooling-deps/executors/deps/executor.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,15 @@ | ||
import type {Executor} from '@nx/devkit'; | ||
|
||
// eslint-disable-next-line workspaces/no-absolute-imports | ||
import {main} from '@code-like-a-carpenter/tooling-deps'; | ||
|
||
import type {DepsExecutor} from './schema'; | ||
|
||
const runExecutor: Executor<DepsExecutor> = async (options) => { | ||
await main(options); | ||
return { | ||
success: true, | ||
}; | ||
}; | ||
|
||
export default runExecutor; |
16 changes: 16 additions & 0 deletions
16
packages/@code-like-a-carpenter/tooling-deps/executors/deps/schema.d.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,16 @@ | ||
/* eslint-disable */ | ||
/** | ||
* This file was automatically generated by json-schema-to-typescript. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | ||
* and run json-schema-to-typescript to regenerate this file. | ||
*/ | ||
|
||
export interface DepsExecutor { | ||
awsSdkVersion?: string; | ||
devPatterns?: string[]; | ||
dryRun?: boolean; | ||
ignoreDirs?: string[]; | ||
packageName: string; | ||
definitelyTyped?: string[]; | ||
[k: string]: unknown; | ||
} |
41 changes: 41 additions & 0 deletions
41
packages/@code-like-a-carpenter/tooling-deps/executors/deps/schema.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,41 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"version": 2, | ||
"title": "Deps executor", | ||
"description": "", | ||
"type": "object", | ||
"properties": { | ||
"awsSdkVersion": { | ||
"default": "3.188.0", | ||
"type": "string" | ||
}, | ||
"devPatterns": { | ||
"default": ["*.spec.[jt]sx?"], | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"dryRun": { | ||
"default": false, | ||
"type": "boolean" | ||
}, | ||
"ignoreDirs": { | ||
"default": [".aws-sam", "dist", "node_modules", "build", "public/build"], | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"packageName": { | ||
"type": "string" | ||
}, | ||
"definitelyTyped": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": ["packageName"] | ||
} |
Oops, something went wrong.