Skip to content

Commit

Permalink
Added lang html targets to sets
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewblond committed Jun 17, 2014
1 parent e7db1d0 commit 4d1fcd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .enb/make.js
Expand Up @@ -218,6 +218,8 @@ module.exports = function(config) {
});

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

// Base techs
nodeConfig.addTechs([
[provide, { target : '?.bemjson.js' }],
Expand Down Expand Up @@ -281,6 +283,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([
'_?.css', '_?.js', '?.html', '?.bh.html'
]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"istanbul": "^0.2.7",
"enb": "0.13.4",
"enb-bem-docs": "0.1.4",
"enb-bem-examples": "0.2.4",
"enb-bem-examples": "0.2.6",
"enb-modules": "0.1.2",
"enb-diverse-js": "0.1.0",
"enb-bemxjst": "1.2.0",
Expand Down

0 comments on commit 4d1fcd8

Please sign in to comment.