tauri/mode/generator.js
Lucas Fernandes Nogueira 9981da93ed chore(mode) cleanup (#23)
* feat(mode) cleanup

* fix(cli) fix bin entry
2019-08-21 23:35:51 +02:00

12 lines
353 B
JavaScript

const
path = require('path'),
{ writeFileSync } = require('fs')
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))
}