From d91e57cc7035d35f65ed4efbf91c23e5f928a237 Mon Sep 17 00:00:00 2001 From: Ivan Voischev Date: Fri, 6 Nov 2015 17:15:46 +0300 Subject: [PATCH] feat(*): fix build examples --- .enb/config/levels.js | 3 +-- .enb/helpers/page.js | 4 +++- .enb/make.js | 1 - .enb/tasks/examples.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.enb/config/levels.js b/.enb/config/levels.js index e6f3bec..bcd9a3d 100644 --- a/.enb/config/levels.js +++ b/.enb/config/levels.js @@ -19,8 +19,7 @@ var path = require('path'), module.exports = function(platform, opts) { opts = opts || {}; var projectLevels = [ - { path: 'common.blocks', check: true }, - { path: 'test.blocks', check: true } + { path: 'common.blocks', check: true } ]; var levels = [ diff --git a/.enb/helpers/page.js b/.enb/helpers/page.js index 53f7c8f..8ce90e8 100644 --- a/.enb/helpers/page.js +++ b/.enb/helpers/page.js @@ -62,7 +62,9 @@ module.exports = function(node, opts) { }), levels = [].concat( config.levels(opts.platform), - sublevels + sublevels, + // ADD test.blocks for render example pages + { path: 'test.blocks', check: true } ); node.addTechs([ diff --git a/.enb/make.js b/.enb/make.js index ac26bc9..b701d40 100644 --- a/.enb/make.js +++ b/.enb/make.js @@ -1,7 +1,6 @@ var path = require('path'), env = process.env, techs = require('./techs'), - config = require('./config'), configurePage = require('./helpers/page'); module.exports = function(project) { diff --git a/.enb/tasks/examples.js b/.enb/tasks/examples.js index 2e95270..8155ed1 100644 --- a/.enb/tasks/examples.js +++ b/.enb/tasks/examples.js @@ -47,10 +47,10 @@ module.exports = function(project) { */ function configure(helper, platform) { var dir = platform + '.examples'; - helper.configure({ destPath: dir, - levels: config.levels(platform), + // ADD test.blocks for render example pages + levels: [].concat(config.levels(platform), { path: 'test.blocks', check: true }), techSuffixes: ['examples'], fileSuffixes: ['bemjson.js', 'title.txt'] });