Skip to content

Commit

Permalink
Filter out file junk (ie. .DS_Store) from retrieved test files to pre…
Browse files Browse the repository at this point in the history
…vent bundling errors.
  • Loading branch information
Madgvox committed Apr 12, 2015
1 parent 67443cf commit 2f36b6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gobblefile.js
@@ -1,5 +1,6 @@
var gobble = require( 'gobble' ),
sander = require( 'sander' ),
junk = require( 'junk' ),
Promise = sander.Promise,
path = require( 'path' ),
esperanto = require( 'esperanto' ),
Expand Down Expand Up @@ -146,7 +147,7 @@ test = (function () {
es5
]).transform( function bundleTests ( inputdir, outputdir, options ) {
return sander.lsr( inputdir, '__tests' ).then( function ( testModules ) {
var promises = testModules.sort().map( function ( mod ) {
var promises = testModules.filter( junk.not ).sort().map( function ( mod ) {
return esperanto.bundle({
base: inputdir,
entry: '__tests/' + mod
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -80,6 +80,7 @@
"gobble-esperanto-bundle": "^0.1.3",
"gobble-sorcery": "^0.3.0",
"jshint": "^2.5.11",
"junk": "^1.0.1",
"mocha": "^2.1.0",
"phantomjs": "^1.9.15",
"promises-aplus-tests": "*",
Expand Down

0 comments on commit 2f36b6a

Please sign in to comment.