Skip to content

Commit

Permalink
update to generator-jhipster 8.0.0-rc.1 (#212)
Browse files Browse the repository at this point in the history
* update jhipster branch

* update snapshots

* make java-audit compose with java

* use command.configs

* update jhipster branch

* adjusts

* bump generator-jhipster to 8.0.0-rc.1.

* move app generator to server

* cleanup

* Update command.mjs

* adjusts

* update snapshot

* add comment about command import
  • Loading branch information
mshima authored Oct 15, 2023
1 parent 31f8919 commit c96ed2b
Show file tree
Hide file tree
Showing 29 changed files with 1,157 additions and 2,190 deletions.
1 change: 0 additions & 1 deletion .blueprint/cli/commands.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
const defaultCommands = {
'generate-sample': {
desc: 'Generate a test sample',
blueprint: '@jhipster/jhipster-dev',
},
};

Expand Down
6 changes: 5 additions & 1 deletion .blueprint/generate-sample/command.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const command = {
},
},
options: {},
import: [GENERATOR_APP, `jhipster-entity-audit:${GENERATOR_APP}`],
import: [
GENERATOR_APP,
// Add blueprint server generator because RC.1 is not loading blueprints options for blueprint generator command.
`jhipster-entity-audit:server`,
],
};

export default command;
4 changes: 4 additions & 0 deletions .blueprint/generate-sample/generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ export default class extends BaseGenerator {
skipJhipsterDependencies: true,
insight: false,
skipChecks: true,
skipInstall: true,
},
});
},
async jhipsterInfo() {
await this.composeWithJHipster('info');
},
});
}
}
2 changes: 1 addition & 1 deletion .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
12 changes: 6 additions & 6 deletions .yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
"sbs": null,
"written": true
},
"app": {
"command": false,
"priorities": ["initializing", "prompting", "composing"],
"sbs": true,
"written": true
},
"client": {
"command": false,
"priorities": ["composing"],
Expand All @@ -35,6 +29,12 @@
"sbs": true,
"written": true
},
"server": {
"command": false,
"priorities": ["initializing", "prompting", "composing"],
"sbs": true,
"written": true
},
"spring-boot-custom-audit": {
"command": false,
"priorities": ["configuring", "loading", "writing", "postWriting"],
Expand Down
3 changes: 2 additions & 1 deletion cli/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const { version, bin } = require('../package.json');
const packagePath = dirname(__dirname);
const packageFolderName = basename(packagePath);
const devBlueprintPath = join(packagePath, '.blueprint');
const blueprint = packageFolderName.startsWith('jhipster-') ? `generator-${packageFolderName}` : packageFolderName;

(async () => {
const { runJHipster, done, logger } = await import('generator-jhipster/cli');
Expand All @@ -19,7 +20,7 @@ const devBlueprintPath = join(packagePath, '.blueprint');
defaultCommand: 'app',
devBlueprintPath,
blueprints: {
[packageFolderName]: version,
[blueprint]: version,
},
printBlueprintLogo: () => {
console.log('===================== JHipster entity-audit =====================');
Expand Down
2 changes: 1 addition & 1 deletion generators/angular-audit/generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { clientApplicationTemplatesBlock } from 'generator-jhipster/generators/c
export default class extends BaseApplicationGenerator {
ngxDiff;

async _postConstruct() {
async beforeQueue() {
await this.dependsOnJHipster('bootstrap-application');
}

Expand Down
Loading

0 comments on commit c96ed2b

Please sign in to comment.