2019-11-18 00:30:14 +03:00
|
|
|
const parseArgs = require('minimist')
|
2019-08-20 00:09:29 +03:00
|
|
|
|
|
|
|
const argv = parseArgs(process.argv.slice(2), {
|
|
|
|
alias: {
|
|
|
|
h: 'help'
|
|
|
|
},
|
|
|
|
boolean: ['h']
|
|
|
|
})
|
|
|
|
|
|
|
|
if (argv.help) {
|
|
|
|
console.log(`
|
|
|
|
Description
|
|
|
|
Tauri dev.
|
|
|
|
Usage
|
|
|
|
$ tauri dev
|
|
|
|
Options
|
|
|
|
--help, -h Displays this message
|
|
|
|
`)
|
|
|
|
process.exit(0)
|
|
|
|
}
|
|
|
|
|
2019-11-16 21:51:46 +03:00
|
|
|
const { tauriDir } = require('../helpers/app-paths')
|
|
|
|
const Runner = require('../runner')
|
|
|
|
const tauri = new Runner()
|
|
|
|
const tauriConfig = require('../helpers/tauri-config')({
|
|
|
|
ctx: {
|
|
|
|
debug: true
|
|
|
|
}
|
|
|
|
})
|
2019-08-20 00:09:29 +03:00
|
|
|
|
2019-08-22 00:35:52 +03:00
|
|
|
require('../generator').generate(tauriConfig.tauri)
|
2019-10-07 21:36:56 +03:00
|
|
|
require('../entry').generate(tauriDir, tauriConfig)
|
2019-08-20 00:09:29 +03:00
|
|
|
|
|
|
|
tauri.run(tauriConfig)
|