Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Glob wildcards don't seem to work #10

Open
ghost opened this issue Aug 29, 2012 · 1 comment
Open

Glob wildcards don't seem to work #10

ghost opened this issue Aug 29, 2012 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 29, 2012

Here's my sample code:
var packagedFrontend = airDrop('/frontend.js').include('frontend/*/.js');

This throws an error:

/node_modules/air-drop/lib/air-drop.js:46
if (err) throw err;
^
Path Not Found: node_modules/underscore/index

@chrisjpowers
Copy link
Owner

Try this:

var packagedFrontend = airDrop('/frontend.js').include(__dirname + '/frontend/**/*.js');

You may have to update the path, but the important part is to use ** for wildcard directories and *.js for wildcard filenames.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant