New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spring-controller sub-generator #6451

Merged
merged 10 commits into from Oct 11, 2017

add service alias to commands and fix issues after rename

  • Loading branch information...
xetys committed Oct 3, 2017
commit 6c6d34203736ca21dbbf1a3a5c1158701b92f9b8
Copy path View file
@@ -53,6 +53,7 @@ module.exports = {
desc: 'Create a new JHipster server-side application'
},
'spring-service': {

This comment has been minimized.

@deepu105

deepu105 Oct 2, 2017

Member

add alias : 'service' here so that old command works as well, else this will be breaking change

alias: 'service',
argument: ['name'],
desc: 'Create a new Spring service bean'
},
Copy path View file

This file was deleted.

Oops, something went wrong.
Copy path View file

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Copy path View file
@@ -11,7 +11,7 @@ const SERVER_MAIN_SRC_DIR = constants.SERVER_MAIN_SRC_DIR;
describe('JHipster generator service', () => {
describe('creates service without interface', () => {
beforeEach((done) => {
helpers.run(require.resolve('../generators/service'))
helpers.run(require.resolve('../generators/spring-service'))
.inTmpDir((dir) => {
fse.copySync(path.join(__dirname, '../test/templates/default'), dir);
})
@@ -37,7 +37,7 @@ describe('JHipster generator service', () => {
describe('creates service with interface', () => {
beforeEach((done) => {
helpers.run(require.resolve('../generators/service'))
helpers.run(require.resolve('../generators/spring-service'))
.inTmpDir((dir) => {
fse.copySync(path.join(__dirname, '../test/templates/default'), dir);
})
ProTip! Use n and p to navigate between commits in a pull request.