Skip to content

Instantly share code, notes, and snippets.

@brianjmiller
Created September 14, 2012 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjmiller/3722052 to your computer and use it in GitHub Desktop.
Save brianjmiller/3722052 to your computer and use it in GitHub Desktop.
Trying to get Gear to work
#!/usr/bin/env node
var gear = require('gear');
new gear.Queue(
{
registry: new gear.Registry(
{
module: 'gear-lib'
}
)
}
).read(['src/tincan.js', 'src/lrs.js', 'src/actor.js'])
.concat()
.jslint()
.jsminify()
.inspect()
.run();
/Users/brian/node_modules/gear/lib/registry.js:69
throw new Error('Directory ' + dirname + ' doesn\'t exist');
^
Error: Directory /Users/brian/Documents/Work/Rustici/repos/TinCanJS/node_modules/gear-lib/lib doesn't exist
at Object.Registry._loadDir (/Users/brian/node_modules/gear/lib/registry.js:69:19)
at Object.Registry._loadModule (/Users/brian/node_modules/gear/lib/registry.js:64:14)
at Object.Registry.load (/Users/brian/node_modules/gear/lib/registry.js:47:18)
at Object.Registry (/Users/brian/node_modules/gear/lib/registry.js:31:14)
at Object.<anonymous> (/Users/brian/Documents/Work/Rustici/repos/TinCanJS/build.js:7:19)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment