Skip to content

Commit

Permalink
drop project-name generator (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Nov 4, 2024
1 parent 262b564 commit db5182d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 179 deletions.
20 changes: 1 addition & 19 deletions .yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,6 @@
"sbs": true,
"written": true
},
"project-name": {
"command": false,
"priorities": [
"initializing",
"prompting",
"configuring",
"composing",
"loading",
"preparing",
"default",
"writing",
"postWriting",
"install",
"end"
],
"sbs": false,
"written": true
},
"spring-boot": {
"command": false,
"priorities": ["writing", "postWriting"],
Expand All @@ -61,6 +43,6 @@
"projectName": "JHipster Ionic Blueprint",
"sampleWritten": true,
"skipCommitHook": true,
"subGenerators": ["app", "ionic", "project-name", "spring-boot"]
"subGenerators": ["app", "ionic", "spring-boot"]
}
}
10 changes: 9 additions & 1 deletion generators/ionic/generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ export default class extends BaseApplicationGenerator {
this.addBackendStorages();
}

await this.dependsOnJHipster('bootstrap-application');
await this.dependsOnJHipster('bootstrap-application', {
generatorOptions: {
defaultBaseName: () => {
const appYoRc = `${this.blueprintConfig.appDir}/.yo-rc.json`;
const backendAppBaseName = this.readDestinationJSON(appYoRc)?.['generator-jhipster']?.baseName ?? 'hipster';
return `${backendAppBaseName}Ionic`;
},
},
});
await this.dependsOnJHipster('init');
}

Expand Down
9 changes: 0 additions & 9 deletions generators/project-name/__snapshots__/generator.spec.mjs.snap

This file was deleted.

5 changes: 0 additions & 5 deletions generators/project-name/command.mjs

This file was deleted.

117 changes: 0 additions & 117 deletions generators/project-name/generator.mjs

This file was deleted.

26 changes: 0 additions & 26 deletions generators/project-name/generator.spec.mjs

This file was deleted.

2 changes: 0 additions & 2 deletions generators/project-name/index.mjs

This file was deleted.

0 comments on commit db5182d

Please sign in to comment.