tauri/cli/tauri.js/bin/tauri-build.js
Noah Klayman de68a86c8c Refactor tauri.js to move command code outside of bin files (#140)
* refactor(tauri.js): move command code into helpers

* reafactor(tauri.js): move command helpers to api dir

* fix(tauri.js/tests): import tauricon from proper dir

* fix(tauri.js/tests): add api dir to moduleNameMapper
2019-12-10 21:44:49 +01:00

26 lines
403 B
JavaScript

const parseArgs = require('minimist')
const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help',
d: 'debug'
},
boolean: ['h', 'd']
})
if (argv.help) {
console.log(`
Description
Tauri build.
Usage
$ tauri build
Options
--help, -h Displays this message
`)
process.exit(0)
}
const build = require('../api/build')
build({ ctx: { debug: argv.debug } })