Skip to content

Instantly share code, notes, and snippets.

@tadatuta
Created Dec 10, 2014
Embed
What would you like to do?
enb conf for bemtree
@@ -15,7 +15,7 @@ var techs = {
prependYm: require('enb-modules/techs/prepend-modules'),
// bemtree
- // bemtree: require('enb-bemxjst/techs/bemtree-old'),
+ bemtree: require('enb-bemxjst/techs/bemtree-old'),
// bemhtml
bemhtml: require('enb-bemxjst/techs/bemhtml-old'),
@@ -40,8 +40,7 @@ module.exports = function(config) {
nodeConfig.addTechs([
// essential
[enbBemTechs.levels, { levels: levels }],
- [techs.fileProvider, { target: '?.bemjson.js' }],
- [enbBemTechs.bemjsonToBemdecl],
+ [techs.fileProvider, { target: '?.bemdecl.js' }],
[enbBemTechs.deps],
[enbBemTechs.files],
@@ -54,11 +53,10 @@ module.exports = function(config) {
}],
// bemtree
- // [tech.bemtree, { devMode: process.env.BEMTREE_ENV === 'development' }],
+ [techs.bemtree, { devMode: process.env.BEMTREE_ENV === 'development' }],
// bemhtml
[techs.bemhtml, { devMode: process.env.BEMHTML_ENV === 'development' }],
- [techs.htmlFromBemjson],
// client bemhtml
[enbBemTechs.depsByTechToBemdecl, {
@@ -94,6 +92,6 @@ module.exports = function(config) {
[techs.borschik, { sourceTarget: '?.css', destTarget: '_?.css', tech: 'cleancss', freeze: true, minify: isProd }]
]);
- nodeConfig.addTargets([/* '?.bemtree.js', */ '?.html', '_?.css', '_?.js']);
+ nodeConfig.addTargets(['?.bemtree.js', '?.bemhtml.js', '_?.css', '_?.js']);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment