Skip to content

Commit 72b5bcd

Browse files
committed
restructure templates
1 parent 047e260 commit 72b5bcd

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

app/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,12 @@ module.exports = class extends JavaGenerator {
329329
this.$copyTpl('project-multi', {writeOnceFiles: writeOnceFiles});
330330
// generate modules only once because module would be obviously renamed after initial generation
331331
if (!this.context.updateMode) {
332-
this.$copyTpl('project-multi-bom', {
332+
this.$copyTpl('project-multi/bom', {
333333
writeOnceFiles: writeOnceFiles,
334334
targetFolder: this.modulePrefix + '-bom'
335335
});
336336
const moduleDir = this.modulePrefix + '-' + this.moduleName;
337-
this.$copyTpl('project-multi-module', {
337+
this.$copyTpl('project-multi/module', {
338338
writeOnceFiles: writeOnceFiles,
339339
targetFolder: moduleDir
340340
});
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/test-app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ describe('check multi-module app generation', function () {
107107
assert.file(read(appPath + '/templates/gradle-base'));
108108
assert.file(read(appPath + '/templates/project-base').map(dotfile));
109109
assert.file(read(appPath + '/templates/project-multi').map(dotfile));
110-
assert.file(read(appPath + '/templates/project-multi-bom').map(subdir('foo-bom')));
111-
assert.file(read(appPath + '/templates/project-multi-module').map(subdir('foo-sample')));
110+
assert.file(read(appPath + '/templates/project-multi/bom').map(subdir('foo-bom')));
111+
assert.file(read(appPath + '/templates/project-multi/module').map(subdir('foo-sample')));
112112
assert.file(read(appPath + '/templates/sources').map(dotfile).map(repackage).map(subdir('foo-sample')));
113113
});
114114

0 commit comments

Comments
 (0)