Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Commit

Permalink
V2 techs: use mixing style
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Alaev committed Jun 30, 2013
1 parent 31df30f commit 1a1d182
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions lib/techs/v2/bemdecl.js.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var FS = require('fs'),
PATH = require('../../path'),
INHERIT = require('inherit'),
Tech = require('../../tech').TechV2,
bemUtil = require('../../util');

exports.Tech = INHERIT(Tech, {
exports.API_VER = 2;

exports.techMixin = {

getCreateResult: function(path, suffix, vars) {
var basename = this.getPath(PATH.basename(path, '.' + suffix),
Expand Down Expand Up @@ -36,7 +36,7 @@ exports.Tech = INHERIT(Tech, {
return ['bemjson.js'];
}

});
};

function isSimple(obj) {
var t = typeof obj;
Expand Down
12 changes: 6 additions & 6 deletions lib/techs/v2/css.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var INHERIT = require('inherit'),
Template = require('../../template'),
Tech = require('../../tech').TechV2;
var Template = require('../../template');

exports.Tech = INHERIT(Tech, {
exports.API_VER = 2;

exports.techMixin = {

getBuildResultChunk: function(relPath, path, suffix) {
return '@import url(' + relPath + ');\n';
Expand All @@ -20,5 +20,5 @@ exports.Tech = INHERIT(Tech, {
'}'],
vars);

},
});
}
};
9 changes: 5 additions & 4 deletions lib/techs/v2/deps.js.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ var VM = require('vm'),
FS = require('fs'),
PATH = require('../../path'),
U = require('../../util'),
LOGGER = require('../../logger'),
INHERIT = require('inherit'),
Tech = require('../../').TechV2;
LOGGER = require('../../logger');

exports.Tech = INHERIT(Tech, {
exports.API_VER = 2;

exports.techMixin = {

getTechName: function() {
return 'deps.js';
Expand Down Expand Up @@ -152,7 +153,7 @@ exports.Tech = INHERIT(Tech, {
return false;
}

});
};

var Deps = exports.Deps = INHERIT({

Expand Down
8 changes: 4 additions & 4 deletions lib/techs/v2/ie.css.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var Q = require('q'),
QFS = require('q-fs'),
PATH = require('../../path'),
INHERIT = require('inherit'),
Tech = require('./css').Tech,
LOGGER = require('../../logger');

exports.Tech = INHERIT(Tech, {
exports.baseTechPath = PATH.join(__dirname, 'css');

exports.techMixin = {

getBuildSuffixesMap: function() {
var map = {},
Expand Down Expand Up @@ -51,4 +51,4 @@ exports.Tech = INHERIT(Tech, {
getFirstBuildChunks: function(output) {
return this.getBuildResultChunk(this.getPath(PATH.basename(output), 'css'));
}
});
};
10 changes: 5 additions & 5 deletions lib/techs/v2/ie6.css.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var Q = require('q'),
PATH = require('../../path'),
INHERIT = require('inherit'),
Tech = require('./ie.css').Tech;
PATH = require('../../path');

exports.Tech = INHERIT(Tech, {
exports.baseTechPath = PATH.join(__dirname, 'ie.css');

exports.techMixin = {

getFirstBuildChunks: function(outputName) {
var _this = this;
Expand All @@ -15,4 +15,4 @@ exports.Tech = INHERIT(Tech, {
});
}

});
};
7 changes: 3 additions & 4 deletions lib/techs/v2/js-i.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var INHERIT = require('inherit'),
Tech = require('../..').TechV2;
exports.API_VER = 2;

exports.Tech = INHERIT(Tech, {
exports.techMixin = {

getBuildResultChunk: function(relPath, path, suffix) {
return '/*borschik:include:' + relPath + '*/;\n';
Expand All @@ -13,4 +12,4 @@ exports.Tech = INHERIT(Tech, {
}
}

});
};
10 changes: 5 additions & 5 deletions lib/techs/v2/js.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var FS = require('fs'),
INHERIT = require('inherit'),
Tech = require('../..').TechV2;
var FS = require('fs');

exports.Tech = INHERIT(Tech, {
exports.API_VER = 2;

exports.techMixin = {

getBuildResultChunk: function(relPath, path, suffix) {

Expand All @@ -13,4 +13,4 @@ exports.Tech = INHERIT(Tech, {
'\n'].join('\n');

}
});
};

0 comments on commit 1a1d182

Please sign in to comment.