This repository has been archived by the owner on Jan 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to write level config module as a function (closes #364, …
…BEM-931)
- Loading branch information
Vladimir Alaev
committed
Sep 12, 2013
1 parent
8a41b46
commit d93d204
Showing
2 changed files
with
41 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
var BEM = require('../../..'), | ||
PATH = require('path'), | ||
extend = BEM.util.extend, | ||
module.exports = function(BEM) { | ||
|
||
BEM_TECHS = '../../bem-bl/blocks-common/i-bem/bem/techs', | ||
PRJ_TECHS = '../../.bem/techs'; | ||
var PATH = require('path'), | ||
extend = BEM.util.extend, | ||
|
||
exports.getTechs = function() { | ||
BEM_TECHS = '../../bem-bl/blocks-common/i-bem/bem/techs'; | ||
|
||
return { | ||
'bemjson.js': '', | ||
'deps.js': 'v2/deps.js', | ||
'js': 'v2/js-i', | ||
'css': 'v2/css', | ||
'ie.css': 'v2/ie.css', | ||
'i18n': PATH.join(BEM_TECHS, 'v2/i18n.js'), | ||
'i18n.js': PATH.join(BEM_TECHS, 'v2/i18n.js.js'), | ||
'bemhtml': PATH.join(BEM_TECHS, 'v2/bemhtml.js'), | ||
'html': PATH.join(BEM_TECHS, 'html.js') | ||
getTechs: function() { | ||
|
||
return { | ||
'bemjson.js': '', | ||
'deps.js': 'v2/deps.js', | ||
'js': 'v2/js-i', | ||
'css': 'v2/css', | ||
'ie.css': 'v2/ie.css', | ||
'i18n': PATH.join(BEM_TECHS, 'v2/i18n.js'), | ||
'i18n.js': PATH.join(BEM_TECHS, 'v2/i18n.js.js'), | ||
'bemhtml': PATH.join(BEM_TECHS, 'v2/bemhtml.js'), | ||
'html': PATH.join(BEM_TECHS, 'html.js') | ||
}; | ||
}, | ||
|
||
getConfig: function() { | ||
|
||
return extend({}, this.__base() || {}, { | ||
|
||
bundleBuildLevels: this.resolvePaths([ | ||
'../../bem-bl/blocks-common', | ||
'../../bem-bl/blocks-desktop', | ||
'../../blocks' | ||
]) | ||
|
||
}); | ||
} | ||
}; | ||
|
||
}; | ||
|
||
exports.getConfig = function() { | ||
|
||
return extend({}, this.__base() || {}, { | ||
|
||
bundleBuildLevels: this.resolvePaths([ | ||
'../../bem-bl/blocks-common', | ||
'../../bem-bl/blocks-desktop', | ||
'../../blocks' | ||
]) | ||
|
||
}); | ||
|
||
}; |