Skip to content

Commit

Permalink
fix(fuse): Fix templating issue in unoproj file
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
thaiat committed Apr 6, 2016
1 parent c4115c5 commit 77b22ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions generators/target/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -164,4 +166,4 @@ module.exports = generators.Base.extend({
}
);
}
});
});
6 changes: 4 additions & 2 deletions test/mocha/target.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

});
Expand Down Expand Up @@ -124,4 +126,4 @@ describe(generatorShortname + ':target', function() {

});

});
});

0 comments on commit 77b22ea

Please # to comment.