mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-20 09:11:55 +03:00
f0d95a4244
* feat(testing) add test apps, docs for testing Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * feat(testing) add test apps, docs for testing, fix entry and generator Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * feat(tauri) use require.resolve Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * feat(rust) fix for cargo sources Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * chore(version) bump Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * feat(tauri) setup tauri object Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * feat(demo) setup tauri object Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * feat(entry) fix generator Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev> * feat(docs) prepare quasar spa docs Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev>
12 lines
354 B
JavaScript
12 lines
354 B
JavaScript
const
|
|
path = require('path'),
|
|
{ writeFileSync } = require('fs-extra')
|
|
|
|
module.exports.generate = tauriConfig => {
|
|
const
|
|
{ bundle, ...cfg } = tauriConfig,
|
|
outDir = path.resolve(__dirname, '..')
|
|
writeFileSync(path.join(outDir, 'config.json'), JSON.stringify(cfg))
|
|
writeFileSync(path.join(outDir, 'bundle.json'), JSON.stringify(bundle))
|
|
}
|