mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 21:01:41 +00:00
update
This commit is contained in:
25
node_modules/module-lookup-amd/bin/cli.js
generated
vendored
Executable file
25
node_modules/module-lookup-amd/bin/cli.js
generated
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
const lookup = require('../');
|
||||
|
||||
const program = require('commander');
|
||||
|
||||
program
|
||||
.version(require('../package.json').version)
|
||||
.usage('[options] <path>')
|
||||
.option('-c, --config <path>', 'location of a RequireJS config file for AMD')
|
||||
.option('-f, --filename <path>', 'file containing the dependency')
|
||||
.option('-d, --directory <path>', 'directory containing all files')
|
||||
.parse(process.argv);
|
||||
|
||||
const config = program.config;
|
||||
const filename = program.filename;
|
||||
const partial = program.args[0];
|
||||
|
||||
console.log(lookup({
|
||||
config: config,
|
||||
filename: filename,
|
||||
partial: partial
|
||||
}));
|
Reference in New Issue
Block a user