Skip to content

Commit

Permalink
rename to js
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 2, 2023
1 parent 3cbaf80 commit a699fe2
Show file tree
Hide file tree
Showing 57 changed files with 23 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .blueprint/generate-sample/generator.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readdir } from 'node:fs/promises';
import BaseGenerator from 'generator-jhipster/generators/base';
import command from './command.mjs';
import command from './command.js';

export default class extends BaseGenerator {
sampleName;
Expand Down
4 changes: 2 additions & 2 deletions .blueprint/generate-sample/index.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default } from './generator.mjs';
export { default as command } from './command.mjs';
export { default } from './generator.js';
export { default as command } from './command.js';
9 changes: 2 additions & 7 deletions .yo-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
"sbs": true,
"written": true
},
"common": {
"command": false,
"priorities": ["writing"],
"sbs": true,
"written": true
},
"cypress": {
"command": false,
"priorities": ["postWriting"],
Expand Down Expand Up @@ -102,11 +96,12 @@
}
},
"jhipsterVersion": "8.0.0-beta.3",
"js": true,
"localBlueprint": false,
"prettierDefaultIndent": 2,
"projectName": "Micronaut Blueprint",
"sampleWritten": true,
"skipCommitHook": true,
"subGenerators": ["angular", "client", "common", "cypress", "heroku", "react", "server"]
"subGenerators": ["angular", "client", "cypress", "heroku", "react", "server"]
}
}
2 changes: 1 addition & 1 deletion cli/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const devBlueprintPath = join(packagePath, '.blueprint');

(async () => {
const { runJHipster, done, logger } = await import('generator-jhipster/cli');
const { getLogo } = await import('./logo.mjs');
const { getLogo } = await import('./logo.js');
const executableName = Object.keys(bin)[0];

runJHipster({
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseApplicationGenerator from 'generator-jhipster/generators/base-application';
import { angularFiles } from './files.mjs';
import { angularFiles } from './files.js';

export default class extends BaseApplicationGenerator {
constructor(args, opts, features) {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions generators/angular/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './generator.js';
1 change: 0 additions & 1 deletion generators/angular/index.mjs

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BaseApplicationGenerator from 'generator-jhipster/generators/base-application';
import { commonFiles } from './files.mjs';
import { commonFiles } from './files.js';

export default class extends BaseApplicationGenerator {
constructor(args, opts, features) {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions generators/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './generator.js';
1 change: 0 additions & 1 deletion generators/client/index.mjs

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions generators/cypress/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './generator.js';
1 change: 0 additions & 1 deletion generators/cypress/index.mjs

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions generators/docker/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './generator.js';
1 change: 0 additions & 1 deletion generators/docker/index.mjs

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions generators/heroku/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './generator.js';
export { default as command } from './command.js';
2 changes: 0 additions & 2 deletions generators/heroku/index.mjs

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions generators/liquibase/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './generator.js';
1 change: 0 additions & 1 deletion generators/liquibase/index.mjs

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions generators/micronaut-cache/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './generator.js';
1 change: 0 additions & 1 deletion generators/micronaut-cache/index.mjs

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions generators/react/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './generator.js';
1 change: 0 additions & 1 deletion generators/react/index.mjs

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions generators/server/files.mjs → generators/server/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,7 @@ export const serverFiles = {
],
serverJavaService: [
javaMainPackageTemplatesBlock({
templates: [
'service/util/RandomUtil.java',
],
templates: ['service/util/RandomUtil.java'],
}),
javaMainPackageTemplatesBlock({
condition: generator => !generator.skipUserManagement,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
} from 'generator-jhipster/generators';
import { createNeedleCallback, createBase64Secret } from 'generator-jhipster/generators/base/support';
import mnConstants from '../constants.cjs';
import { writeFiles } from './files.mjs';
import { writeFiles } from './files.js';

import command from './command.mjs';
import { entityFiles } from './entity-files.mjs';
import command from './command.js';
import { entityFiles } from './entity-files.js';

export default class extends ServerGenerator {
command = command;
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions generators/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './generator.js';
export { default as command } from './command.js';
2 changes: 0 additions & 2 deletions generators/server/index.mjs

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
"url": "https://sendilkumarn.com"
},
"type": "module",
"imports": {
"#lib/*": "./lib/*",
"#test-utils": "./test/utils.mjs"
},
"bin": {
"mhipster": "cli/cli.cjs"
},
Expand Down

0 comments on commit a699fe2

Please sign in to comment.