Skip to content

Commit

Permalink
feat(*): fix build examples
Browse files Browse the repository at this point in the history
  • Loading branch information
voischev committed Nov 6, 2015
1 parent b7f1dd2 commit d91e57c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .enb/config/levels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
4 changes: 3 additions & 1 deletion .enb/helpers/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
1 change: 0 additions & 1 deletion .enb/make.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions .enb/tasks/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
});
Expand Down

0 comments on commit d91e57c

Please sign in to comment.