Skip to content

Commit

Permalink
fix husky version (#1152)
Browse files Browse the repository at this point in the history
* fix husky version

* adjusts
  • Loading branch information
mshima authored Jun 6, 2024
1 parent f1eced4 commit 4b9ea7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ionic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
working-directory: ${{ github.workspace }}/generator-jhipster-ionic
- name: Check Version
run: $JHIPSTER_INSTALL/02-checkVersion.sh
- run: cli.cjs generate-sample ${{ matrix.jdl }} --force --no-insight --skip-checks --skip-commit-hook --skip-install --skip-jhipster-dependencies
- run: cli.cjs generate-sample ${{ matrix.jdl }} --force --no-insight --skip-checks --skip-install --skip-jhipster-dependencies
- uses: jhipster/actions/compare-sample@v0
id: compare-backend
if: >-
Expand All @@ -86,7 +86,7 @@ jobs:
application-folder: backend
compare-folder: backend
generator-path: generator-jhipster-ionic
cmd: cli.cjs generate-sample ${{ matrix.jdl }} --force --no-insight --skip-checks --skip-git --skip-commit-hook --skip-install --skip-jhipster-dependencies
cmd: cli.cjs generate-sample ${{ matrix.jdl }} --force --no-insight --skip-checks --skip-git --skip-install --skip-jhipster-dependencies
- uses: jhipster/actions/compare-sample@v0
id: compare
if: >-
Expand All @@ -97,7 +97,7 @@ jobs:
application-folder: backend
compare-folder: ionic4j
generator-path: generator-jhipster-ionic
cmd: cli.cjs generate-sample ${{ matrix.jdl }} --force --no-insight --skip-checks --skip-git --skip-commit-hook --skip-install --skip-jhipster-dependencies
cmd: cli.cjs generate-sample ${{ matrix.jdl }} --force --no-insight --skip-checks --skip-git --skip-install --skip-jhipster-dependencies
- name: Ionic tests
run: cat package.json; npm install; npm test
working-directory: ${{ github.workspace }}/ionic4j
Expand Down
9 changes: 9 additions & 0 deletions generators/ionic/generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ export default class extends BaseApplicationGenerator {
});
}

get [BaseApplicationGenerator.PREPARING]() {
return this.asPreparingTaskGroup({
husky({ application }) {
application.nodeDependencies.husky = '9.0.11';
application.nodeDependencies['lint-staged'] = '15.2.5';
},
});
}

get [BaseApplicationGenerator.WRITING]() {
return this.asWritingTaskGroup({
async writingTemplateTask({ application }) {
Expand Down

0 comments on commit 4b9ea7a

Please sign in to comment.