Skip to content

Commit

Permalink
Merge pull request #553 from /issues/552@v2
Browse files Browse the repository at this point in the history
Added lang html targets to sets
  • Loading branch information
tadatuta committed Jun 17, 2014
2 parents d17e96c + f69114a commit a9c8aba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .enb/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ module.exports = function(config) {
});

config.nodes(['*.examples/*/*', '*.tests/*/*', '*.bundles/index'], function (nodeConfig) {
var langs = config.getLanguages();

// Base techs
nodeConfig.addTechs([
[provide, { target : '?.bemjson.js' }],
Expand All @@ -222,6 +224,13 @@ module.exports = function(config) {
[bhHtml, { target : '?.bh.html' }]
]);

langs.forEach(function(lang) {
var destTarget = '?.' + lang + '.html';

nodeConfig.addTech([copyFile, { source : '?.html', target : destTarget }]);
nodeConfig.addTarget(destTarget);
});

nodeConfig.addTargets([
'?.html', '?.bh.html'
]);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"istanbul": "~0.2.6",
"vow": "0.4.4",
"enb": "0.13.4",
"enb-bem-docs": "0.1.2",
"enb-bem-examples": "0.2.3",
"enb-bem-docs": "0.1.4",
"enb-bem-examples": "0.2.6",
"enb-diverse-js": "0.1.0",
"enb-modules": "0.1.2",
"enb-bemxjst": "1.2.0",
Expand Down

0 comments on commit a9c8aba

Please sign in to comment.