mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-24 03:04:36 +03:00
de68a86c8c
* 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
22 lines
492 B
JavaScript
22 lines
492 B
JavaScript
module.exports = config => {
|
|
const { tauriDir } = require('../helpers/app-paths')
|
|
const Runner = require('../runner')
|
|
const merge = require('webpack-merge')
|
|
const tauri = new Runner()
|
|
const tauriConfig = require('../helpers/tauri-config')(
|
|
merge(
|
|
{
|
|
ctx: {
|
|
debug: true
|
|
}
|
|
},
|
|
config
|
|
)
|
|
)
|
|
|
|
require('../generator').generate(tauriConfig.tauri)
|
|
require('../entry').generate(tauriDir, tauriConfig)
|
|
|
|
return tauri.run(tauriConfig)
|
|
}
|