-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
executable file
·17 lines (14 loc) · 908 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/env node
'use strict'
const program = require('commander')
const absolutePath = require('./lib/absolutePath')
const build = require('./lib/build')
const os = require('os')
program.version(require('./package.json').version)
.option('-s, --source [path]', 'The path to the plugin directory. If none is given, assumes your current working directory.', absolutePath, process.cwd())
.option('-o, --output [path]', 'The path to the output directory. If none is given, assumes your current working directory.', absolutePath, process.cwd())
.option('-b, --build [path]', 'The path to the temporary build directory. If none is given, use your OS temp directory.', absolutePath, os.tmpdir())
.option('-i, --increment [level]', 'Increment the version found `plugin.xml` by release type: major, minor, patch.')
.option('-q, --quiet', 'Do not log messages')
.parse(process.argv)
build(program)