Esempio n. 1
0
exports.getTechs = function() {
    var techs = {
        'introspection': './techs/introspection.js',
        'haml': './techs/haml.js',
        'scss': './techs/scss.js',
        'coffee': './techs/coffee.js'
    };

    for (var alias in techs) {
        var p = techs[alias];
        if (/\.{1,2}\//.test(p)) techs[alias] = PATH.absolute(p, __dirname);
    }

    return techs

};
Esempio n. 2
0
exports.getTechs = function() {
    var techs = {
        'introspection': './techs/introspection.js',
        'app': './techs/app.js',
        'model': './techs/model.js',
        'view': './techs/view.js',
        //'html': './techs/html.js',
        'bemdecl.js': 'bem/lib/techs/bemdecl.js',
        'js': 'bem/lib/techs/js',
        'css': 'bem/lib/techs/css'
    };

    for (var alias in techs) {
        var p = techs[alias];
        if (/\.{1,2}\//.test(p)) techs[alias] = PATH.absolute(p, __dirname);
    }

    return techs

};
Esempio n. 3
0
var myPath = require('bem/lib/path');

exports.techs = {
    'js': '../../bem-mini-offline/i-bem/bem/techs/js.js',
    'css': 'bem/lib/techs/css',
    'bemhtml': '../../bem-mini-offline/i-bem/bem/techs/bemhtml.js',
    'styl': '../../blocks/.bem/techs/styl.js',
    'ie.styl': '../../blocks/.bem/techs/ie.styl.js'
};

for (var alias in exports.techs) {
    var p = exports.techs[alias];
    if (/\.{1,2}\//.test(p)) exports.techs[alias] = myPath.absolute(p, __dirname);
}

exports.defaultTechs = ['css', 'js', 'bemhtml','styl','ie.styl'];

exports.isIgnorablePath = function(path) {
    return (/\.(git|svn)$/.test(path) ||
        /(GNU|MAC)?[Mm]akefile/.test(path));
};