Permalink
Browse files

Use bemjson and bemhtml techs by default

  • Loading branch information...
1 parent 90cb902 commit 92dd66658f4314808686014bae9c9f1a9e5cd483 Varvara Stepanova committed Dec 11, 2012
Showing with 26 additions and 4 deletions.
  1. +23 −1 .bem/levels/blocks.js
  2. +3 −3 .bem/levels/bundles.js
View
@@ -1,6 +1,28 @@
+var PATH = require('path'),
+
+ pjoin = PATH.join,
+ presolve = PATH.resolve.bind(null, __dirname),
+
+ PRJ_ROOT = presolve('../../'),
+
+ PRJ_TECHS = presolve('../techs/'),
+ BEMBL_TECHS = pjoin(PRJ_ROOT, 'bem-bl/blocks-common/i-bem/bem/techs');
+
+
exports.getTechs = function() {
- return {};
+ return {
+ 'js' : pjoin(BEMBL_TECHS, 'js.js'),
+ 'css' : 'css',
+ 'ie.css' : 'ie.css',
+ 'ie6.css' : 'ie6.css',
+ 'ie7.css' : 'ie7.css',
+ 'ie8.css' : 'ie8.css',
+ 'ie9.css' : 'ie9.css',
+
+ 'bemhtml' : pjoin(BEMBL_TECHS, 'bemhtml.js'),
+ };
};
+exports.defaultTechs = ['css', 'js', 'bemhtml'];
View
@@ -11,7 +11,7 @@ var PATH = require('path'),
exports.getTechs = function() {
return {
- 'bemjson.js' : '',
+ 'bemjson.js' : pjoin(PRJ_TECHS, 'bemjson.js'),
'bemdecl.js' : 'bemdecl.js',
'deps.js' : 'deps.js',
'js' : 'js-i',
@@ -29,6 +29,6 @@ exports.getTechs = function() {
};
-// Do not create any techs files during bundle creation by default
-exports.defaultTechs = [];
+// Create bundles in bemjson.js tech
+exports.defaultTechs = ['bemjson.js'];

0 comments on commit 92dd666

Please sign in to comment.