Skip to content

Commit

Permalink
первый вариант
Browse files Browse the repository at this point in the history
собирает less | js | HTML
Make file
  • Loading branch information
banzalik committed Feb 14, 2012
1 parent cf3a569 commit 69b25e7
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bem-mini/.bem/level.js
Expand Up @@ -3,7 +3,8 @@ var myPath = require('bem/lib/path');
exports.techs = {
'js': '../i-bem/bem/techs/js.js',
'css': 'bem/lib/techs/css',
'bemhtml': '../i-bem/bem/techs/bemhtml.js'
'bemhtml': '../i-bem/bem/techs/bemhtml.js',
'less': '../.bem/techs/less.js'
};

for (var alias in exports.techs) {
Expand Down
13 changes: 12 additions & 1 deletion bem-mini/.bem/techs/less.js
@@ -1 +1,12 @@
exports.baseTechPath = require.resolve('bem/lib/techs/ie.css');
var myPath = require('bem/lib/path'),
Template = require('bem/lib/template'),
INHERIT = require('inherit'),
CssTech = require('bem/lib/techs/css').Tech;

exports.Tech = INHERIT(CssTech, {

getBuildResultChunk: function(relPath, path, suffix) {
return '@import url("' + relPath + '");\n';
}

});
10 changes: 10 additions & 0 deletions bem-mini/i-jquery/__core/i-jquery__core.bemhtml
@@ -0,0 +1,10 @@
block i-jquery, elem core, default: {
local(
this._mode = '',
this.ctx = {
block: 'b-page',
elem: 'js',
url: 'http://yandex.st/jquery/1.7.1/jquery.min.js'
}
) this.apply()
}
1 change: 1 addition & 0 deletions bem-mini/i-ua
Empty file added pages/index/index.js
Empty file.
1 change: 1 addition & 0 deletions pages/index/index.less
@@ -0,0 +1 @@
@import url("../../blocks/b-page/b-page.less");

0 comments on commit 69b25e7

Please sign in to comment.