tauri/mode/generator.js
nothingismagick f0d95a4244 feat(alpha) prep (#27)
* 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>
2019-08-22 16:46:45 -03:00

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))
}