Comparing version 1.3.0 to 1.4.0
@@ -79,2 +79,9 @@ 'use strict'; | ||
var dontCompile = function (pathName) { | ||
// Baby Tolk wont compile files that begin with an underscore `_`. | ||
// This is by convention. | ||
var baseName = Path.basename(pathName); | ||
return baseName[0] === '_'; | ||
}; | ||
module.exports = { | ||
@@ -93,3 +100,3 @@ extensions: extensionMap, | ||
var adapters = extensionMap[extension]; | ||
var adapter = adapters && adapters[0]; | ||
var adapter = !dontCompile(pathName) && adapters && adapters[0]; | ||
@@ -96,0 +103,0 @@ var continuation; |
{ | ||
"name": "baby-tolk", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "A file reader that promises to translate non-web assets to web assets given the available transpilers, sourcemaps and all", | ||
@@ -5,0 +5,0 @@ "main": "lib/baby-tolk.js", |
@@ -35,3 +35,3 @@ Baby Tolk | ||
Now you are ready to start reading files from the file system. Baby Tolk automatically loads the transpilers it has access to in the scope it is run in. | ||
Now you are ready to start reading files from the file system. Baby Tolk automatically loads the transpilers it has access to in the scope it is run in. By convention Baby Tolk won't compile any files if the filename begins with an underscore `_` character. | ||
@@ -38,0 +38,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12165
212