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