diff --git a/generators/target/index.js b/generators/target/index.js index 319bf5c..bfe6c96 100644 --- a/generators/target/index.js +++ b/generators/target/index.js @@ -139,9 +139,11 @@ module.exports = generators.Base.extend({ } ); - this.fs.copy( + this.fs.copyTpl( this.templatePath('index.fuse.unoproj'), - this.destinationPath(path.join(this.configOptions.clientFolder, 'scripts', this.targetname, 'index.unoproj')) + this.destinationPath(path.join(this.configOptions.clientFolder, 'scripts', this.targetname, 'index.unoproj')), { + appname : this.config.get('appname') + } ); this.fs.copy( this.templatePath('index.fuse.uxl'), @@ -164,4 +166,4 @@ module.exports = generators.Base.extend({ } ); } -}); +}); \ No newline at end of file diff --git a/test/mocha/target.spec.js b/test/mocha/target.spec.js index b4a5944..dfde7a8 100644 --- a/test/mocha/target.spec.js +++ b/test/mocha/target.spec.js @@ -88,8 +88,10 @@ describe(generatorShortname + ':target', function() { var expectedContents = [ ['test/e2e/dashboard-web/index.e2e.ts', /dashboard-web\.e2e/], [path.join(clientFolder, 'scripts', 'dashboard-web', 'vendor.ts'), /fuse_polyfills/], - [path.join(clientFolder, 'scripts', 'dashboard-web', 'bootstrap.ts'), /fuse\/bootstrap/] + [path.join(clientFolder, 'scripts', 'dashboard-web', 'bootstrap.ts'), /fuse\/bootstrap/], + [path.join(clientFolder, 'scripts', 'dashboard-web', 'index.unoproj'), /"ApplicationLabel": "dummyappname"/] ]; + assert.fileContent(expectedContents); }); @@ -124,4 +126,4 @@ describe(generatorShortname + ':target', function() { }); -}); +}); \ No newline at end of file