Skip to content

Commit

Permalink
init: import git command
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 22, 2024
1 parent c223813 commit dc8ac50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion generators/init/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ Options:
--skip-install Do not automatically install dependencies (default: false)
--force-install Fail on install dependencies error (default: false)
--ask-answered Show prompts for already configured options (default: false)
--skip-git Skip git repository initialization
--force-git Force commit to git repository
--commit-msg <value> Commit changes (implies forceGit)
--monorepository Use monorepository
--base-name <value> Application base name
--prettier-tab-width <value> Default tab width for prettier
--monorepository Use monorepository
--skip-commit-hook Skip adding husky commit hooks
-h, --help display help for command
"
Expand Down
6 changes: 3 additions & 3 deletions generators/init/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import type { JHipsterCommandDefinition } from '../../lib/command/index.js';
import { GENERATOR_PROJECT_NAME } from '../generator-list.js';

const command: JHipsterCommandDefinition = {
const command = {
options: {},
import: [GENERATOR_PROJECT_NAME, 'jhipster:javascript:prettier', 'jhipster:javascript:husky'],
};
import: ['jhipster:git', GENERATOR_PROJECT_NAME, 'jhipster:javascript:prettier', 'jhipster:javascript:husky'],
} as const satisfies JHipsterCommandDefinition;

export default command;

0 comments on commit dc8ac50

Please sign in to comment.