forked from feather-team/feather2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeather
More file actions
executable file
·28 lines (25 loc) · 697 Bytes
/
Copy pathfeather
File metadata and controls
executable file
·28 lines (25 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env node
var Liftoff = require('liftoff');
var argv = require('minimist')(process.argv.slice(2));
var path = require('path');
var cli = new Liftoff({
name: 'feather2',
processTitle: 'feather',
moduleName: 'feather2',
configName: '{feather-conf,feather_conf}',
extensions: {
'.js': null
}
});
cli.launch({
cwd: argv.r || argv.root,
configPath: argv.f || argv.file
}, function(env){
var feather;
env.modulePath = path.join(__dirname, '../index.js');
feather = require(env.modulePath);
feather.set('system.localNPMFolder', path.join(env.cwd));
feather.set('system.globalNPMFolder', path.dirname(__dirname));
feather.cli.name = this.name;
feather.cli.run(argv, env);
});