mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 16:41:34 +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
514 B
JavaScript
22 lines
514 B
JavaScript
module.exports = config => {
|
|
const { tauriDir } = require('../helpers/app-paths')
|
|
const merge = require('webpack-merge')
|
|
const Runner = require('../runner')
|
|
const tauri = new Runner({ modeDir: tauriDir })
|
|
const tauriConfig = require('../helpers/tauri-config')(
|
|
merge(
|
|
{
|
|
ctx: {
|
|
prod: true
|
|
}
|
|
},
|
|
config
|
|
)
|
|
)
|
|
|
|
require('../generator').generate(tauriConfig.tauri)
|
|
require('../entry').generate(tauriDir, tauriConfig)
|
|
|
|
return tauri.build(tauriConfig)
|
|
}
|