Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added levels.js to be able use bem-json as block level

  • Loading branch information...
commit e592cd2786ed279990ce7796110a2b4e132c263b 1 parent 0ec5268
Vova Bilonenko authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 .bem/level.js
View
17 .bem/level.js
@@ -0,0 +1,17 @@
+var myPath = require('bem/lib/path');
+
+exports.techs = {
+ 'js': '../i-bem/bem/techs/js.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 = ['js'];
+
+exports.isIgnorablePath = function(path) {
+ return (/\.(git|svn)$/.test(path) ||
+ /(GNU|MAC)?[Mm]akefile/.test(path));
+};
Please sign in to comment.
Something went wrong with that request. Please try again.