Skip to content

Commit

Permalink
Build html in sets by BH only
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewblond committed Nov 26, 2014
1 parent 7968d3c commit 5c13194
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .enb/make.js
Expand Up @@ -14,11 +14,10 @@ var DEFAULT_LANGS = ['ru', 'en'],
js = require('enb-diverse-js/techs/browser-js'),
ym = require('enb-modules/techs/prepend-modules'),
bemhtml = require('enb-bemxjst/techs/bemhtml-old'),
html = require('enb-bemxjst/techs/html-from-bemjson'),
html = require('enb-bh/techs/html-from-bemjson'),
bh = require('enb-bh/techs/bh-server'),
bhServerInclude = require('enb-bh/techs/bh-server-include'),
bhYm = require('enb-bh/techs/bh-client-module'),
bhHtml = require('enb-bh/techs/html-from-bemjson'),
copyFile = require('enb/techs/file-copy'),
mergeFiles = require('enb/techs/file-merge'),
mergeBemdecl = require('enb-bem-techs/techs/merge-bemdecl'),
Expand Down Expand Up @@ -216,16 +215,10 @@ module.exports = function(config) {
}]
]);

// Template techs
nodeConfig.addTechs([
[bemhtml],
[bh, { jsAttrName : 'data-bem', jsAttrScheme : 'json' }]
]);

// Build htmls
nodeConfig.addTechs([
[html],
[bhHtml, { target : '?.bh.html' }]
[bh, { jsAttrName : 'data-bem', jsAttrScheme : 'json' }],
[html]
]);

langs.forEach(function(lang) {
Expand All @@ -236,7 +229,7 @@ module.exports = function(config) {
});

nodeConfig.addTargets([
'_?.css', '_?.js', '?.html', '?.bh.html'
'_?.css', '_?.js', '?.html'
]);
});

Expand Down

0 comments on commit 5c13194

Please sign in to comment.