Skip to content

Commit

Permalink
feat: remove kmp generator (#858)
Browse files Browse the repository at this point in the history
Co-authored-by: khalilou88 <[email protected]>
  • Loading branch information
khalilou88 and khalilou88 authored Feb 7, 2024
1 parent 9982bc5 commit dd84c44
Show file tree
Hide file tree
Showing 48 changed files with 3 additions and 1,596 deletions.
1 change: 0 additions & 1 deletion .github/workflows/plugin-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- nx-gradle create-nx-gradle-workspace
- nx-gradle gradle-root-directory e2e
- nx-gradle gradle-root-directory kotlin dsl e2e
- nx-gradle kmp kotlin dsl e2e
- nx-gradle micronaut e2e
- nx-gradle micronaut kotlin dsl e2e
- nx-gradle all e2e
Expand Down
7 changes: 1 addition & 6 deletions packages/common/src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ export type CustomCli =
| 'create-nx-gradle-workspace';
export type TargetsType = Record<string, TargetConfiguration>;
export type FrameworkType = 'spring-boot' | 'quarkus' | 'micronaut' | 'none';
export type PresetType =
| 'spring-boot'
| 'quarkus'
| 'micronaut'
| 'kmp'
| 'none';
export type PresetType = 'spring-boot' | 'quarkus' | 'micronaut' | 'none';
export type DependencyManagementType =
| 'bom'
| 'spring-boot-parent-pom'
Expand Down
1 change: 0 additions & 1 deletion packages/create-nx-gradle-workspace/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ async function main() {
{ name: 'spring-boot', message: 'Spring Boot' },
{ name: 'quarkus', message: 'Quarkus' },
{ name: 'micronaut', message: 'Micronaut' },
{ name: 'kmp', message: 'Kotlin Multiplatform' },
{ name: 'none', message: 'None' },
],
})
Expand Down
5 changes: 0 additions & 5 deletions packages/nx-gradle/generators.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
"x-type": "library",
"description": "library generator"
},
"kmp": {
"factory": "./src/generators/kmp/generator",
"schema": "./src/generators/kmp/schema.json",
"description": "kotlin multiplatform generator"
},
"preset": {
"factory": "./src/generators/preset/generator",
"schema": "./src/generators/preset/schema.json",
Expand Down
3 changes: 1 addition & 2 deletions packages/nx-gradle/src/generators/init/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ function normalizeOptions(
tree: Tree,
options: NxGradleInitGeneratorSchema,
): NormalizedSchema {
const kotlinExtension =
options.dsl === 'kotlin' || options.preset === 'kmp' ? '.kts' : '';
const kotlinExtension = options.dsl === 'kotlin' ? '.kts' : '';

const generateRepositories = process.env['NODE_ENV'] === 'test';

Expand Down
6 changes: 1 addition & 5 deletions packages/nx-gradle/src/generators/init/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"description": "preset",
"type": "string",
"default": "spring-boot",
"enum": ["spring-boot", "quarkus", "micronaut", "kmp", "none"],
"enum": ["spring-boot", "quarkus", "micronaut", "none"],
"x-prompt": {
"message": "Which preset to use? or 'none' to skip.",
"type": "list",
Expand All @@ -82,10 +82,6 @@
"value": "micronaut",
"label": "Micronaut"
},
{
"value": "kmp",
"label": "Kotlin Multiplatform"
},
{
"value": "none",
"label": "None"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Loading

0 comments on commit dd84c44

Please sign in to comment.