mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 00:21:32 +03:00
fab788b4bd
* feat(tauri.js): move to typescript * fix(tauri.js): properly export api as commonjs * feat(tauri.js): convert tauricon to typescript * fix(tauri.js/tauricon): type error * chore(tauri.js/package): update yarn.lock * chore(tauri.js/package): add build/pretest scripts * refactor(tauri.js/template): remove duplicate types * chore(tauri.js) lint-fix * fix(tauri.js) build tauricon.ts * chore(tauri.js) remove unused code Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
26 lines
404 B
JavaScript
26 lines
404 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('../dist/build')
|
|
|
|
build({ ctx: { debug: argv.debug } })
|