-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add project configuration builder options
- Loading branch information
1 parent
b92e333
commit e8517a4
Showing
7 changed files
with
39 additions
and
25 deletions.
There are no files selected for viewing
9 changes: 5 additions & 4 deletions
9
libs/sage-monorepo/nx-sage-monorepo/src/plugins/build-project-configuration.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
13 changes: 13 additions & 0 deletions
13
libs/sage-monorepo/nx-sage-monorepo/src/plugins/plugin-configuration.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,13 @@ | ||
import { PluginOptions } from './plugin-options'; | ||
|
||
export type PluginConfiguration = { | ||
buildImageTargetName: string; | ||
}; | ||
|
||
export function createPluginConfiguration({ | ||
buildImageTargetName = 'build-image', | ||
}: PluginOptions): PluginConfiguration { | ||
return { | ||
buildImageTargetName, | ||
}; | ||
} |
3 changes: 3 additions & 0 deletions
3
libs/sage-monorepo/nx-sage-monorepo/src/plugins/plugin-options.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 type PluginOptions = { | ||
buildImageTargetName?: string; | ||
}; |
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
6 changes: 6 additions & 0 deletions
6
libs/sage-monorepo/nx-sage-monorepo/src/plugins/project-configuration-builder-options.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,6 @@ | ||
import { PluginConfiguration } from './plugin-configuration'; | ||
|
||
export type ProjectConfigurationBuilderOptions = { | ||
projectRoot: string; | ||
pluginConfig: PluginConfiguration; | ||
}; |
13 changes: 0 additions & 13 deletions
13
libs/sage-monorepo/nx-sage-monorepo/src/plugins/sage-monorepo-plugin-configuration.ts
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
libs/sage-monorepo/nx-sage-monorepo/src/plugins/sage-monorepo-plugin-options.ts
This file was deleted.
Oops, something went wrong.