-
Notifications
You must be signed in to change notification settings - Fork 15
refactor: use utils in nx-plugin #1157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 89 commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
09ec54b
chore: add plugin to nx.json
BioPhoton a449ca5
chore: add plugin to nx.json plugins
BioPhoton a2c3278
refactor: test use latest version
BioPhoton 5ec4034
refactor: test use latest version 2
BioPhoton 57bfc00
Merge branch 'main' into use-cp-nx-plugin
BioPhoton add0f3a
Merge branch 'main' into use-cp-nx-plugin
BioPhoton 93e20e8
refactor: fix lint
BioPhoton 3cb3a8d
refactor: wip
BioPhoton 00e6fae
refactor: wip 2
BioPhoton 2e8a05c
Merge branch 'main' into use-cp-nx-plugin
BioPhoton 99d988a
refactor: update packages
BioPhoton 0e66ac8
chore: update packages
BioPhoton f402ecb
refactor: use process.stdout.write
BioPhoton 41bce2b
refactor: test pkg new
BioPhoton 59a3f83
refactor: add output arg handling to nx-plugin args
BioPhoton 06c94d9
docs: add release steps
BioPhoton e355699
Merge branch 'main' into use-cp-nx-plugin
BioPhoton e7da7ef
chore: update packages
BioPhoton 8f69a5e
docs: update release section
BioPhoton 8dced0b
docs: update release section
BioPhoton 0049a64
chore: update packags
BioPhoton 39d2357
Merge branch 'main' into use-cp-nx-plugin
BioPhoton 8aa17d1
Merge branch 'main' into use-cp-nx-plugin
06f0b65
refactor: move plugin default exports
55c022b
refactor: remove bin option from config
e419189
refactor: update packages
3fb6747
refactor: remove bin options for config generator
4ba05a6
refactor: add env options and correct bin
d61fa16
Merge branch 'main' into use-cp-nx-plugin
71779ae
refactor: refactor plugin options
45e33a3
refactor: packages update
c8ab27c
refactor: fix text
4dcbedb
refactor: fix import
2d12182
refactor: fix logger spacing
804319b
refactor: add logger helper unit tests
a54e5dc
refactor: add env and cwd to logger in execProcess
0a8af75
refactor: fix unit tests
50d9f2c
refactor: wip
256ea00
refactor: wip revert
2b05307
refactor: wip 1
cbf9d19
refactor: move objToCliArgs parts and reuse
5559d5f
refactor: fix unit tests
0a5170f
refactor: wip
9a1558e
refactor: wip
b8c4659
refactor: wip
e326512
Merge branch 'main' into use-cp-nx-plugin
eff86ed
refactor: wip
521ef30
refactor: fix file not found of for uninstalled packages
27859c4
refactor: fix build
9fc52be
refactor: wip
be0b7fd
refactor: cleanup
b5bd0ad
refactor: fix lint
441fccc
refactor: wip
4ed9e62
Merge remote-tracking branch 'refs/remotes/origin/main' into use-cp-n…
fb28d0a
refactor: fix unit tests
52ad389
refactor: fix unit tests 2
ab96ed9
refactor: fix lint
1c4619c
refactor: remove logic
4824b91
refactor: fix lint
37f7cff
refactor: fix e2e
56a87fc
refactor: fix e2e
52e5d46
refactor: wip
b8f27b6
refactor: use nx-plugin in nx.json
924cf94
refactor: remove nx-plugin in nx.json
0e5d7a8
refactor: remove nx-plugin in nx.json
fba5f15
refactor: use dynamic imports, delete duplicated code
6c48309
refactor: use dynamic imports, delete duplicated code
d400fa0
refactor: wip
222ebda
refactor: wip
5219bea
refactor: wip
ed75f3c
refactor: wip
3fbfcd7
refactor: wip
7e5a223
refactor: wip
21eab84
refactor: wip
315461d
refactor: wip
89d37e0
refactor: wip
d3fe1f3
refactor: wip
6e64a0b
refactor: wip
a35f427
refactor: wip
f2cfdcc
refactor: wip
acc2395
refactor: wip
7b50f22
refactor: wip
3a4b5b1
refactor: wip
0c052cb
Merge branch 'main' into use-utils-in-nx-plugin
798363f
refactor: wip
7d36180
refactor: wip
7c573c7
refactor: wip debug
e6087e8
refactor: wip debug
f1e3746
refactor: wip debug
e646270
refactor: move commandLog
a3df06e
refactor: wip
457b002
refactor: wip
20f9ffd
refactor: wip
4649c98
refactor: wip
4dc27c3
refactor: wip
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
136 changes: 0 additions & 136 deletions
136
packages/nx-plugin/src/executors/internal/cli.unit.test.ts
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
14 changes: 6 additions & 8 deletions
14
packages/nx-plugin/src/plugin/target/configuration-target.ts
This file contains hidden or 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 |
|---|---|---|
| @@ -1,19 +1,17 @@ | ||
| import type { TargetConfiguration } from '@nx/devkit'; | ||
| import type { RunCommandsOptions } from 'nx/src/executors/run-commands/run-commands.impl'; | ||
| import { objectToCliArgs } from '../../executors/internal/cli.js'; | ||
| import { PACKAGE_NAME } from '../../internal/constants.js'; | ||
|
|
||
| export function createConfigurationTarget(options?: { | ||
| export async function createConfigurationTarget(options?: { | ||
| projectName?: string; | ||
| bin?: string; | ||
| }): TargetConfiguration<RunCommandsOptions> { | ||
| const { projectName, bin = PACKAGE_NAME } = options ?? {}; | ||
| }): Promise<TargetConfiguration<RunCommandsOptions>> { | ||
| const { projectName } = options ?? {}; | ||
| const { objectToCliArgs } = await import('@code-pushup/utils'); | ||
| const args = objectToCliArgs({ | ||
| ...(projectName ? { project: projectName } : {}), | ||
| }); | ||
| const argsString = args.length > 0 ? args.join(' ') : ''; | ||
| const baseCommand = `nx g ${bin}:configuration`; | ||
| const argsString = args.length > 0 ? ` ${args.join(' ')}` : ''; | ||
| return { | ||
| command: argsString ? `${baseCommand} ${argsString}` : baseCommand, | ||
| command: `nx g ${PACKAGE_NAME}:configuration${argsString}`, | ||
| }; | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.