AppGeo/emberate

View on GitHub
lib/util/isModulable.js

Summary

Maintainability
A
0 mins
Test Coverage
fileBlacklist = ['app.js', 'index.js'];

module.exports = function(path) {
  var parts = path.split('/');
  return !(/^\./.test(parts[parts.length - 1]) || fileBlacklist.indexOf(path) !== -1);
}