mirror of
https://github.com/tauri-apps/vue-cli-plugin-tauri.git
synced 2026-02-04 02:31:17 +01:00
20 lines
494 B
JavaScript
20 lines
494 B
JavaScript
const cli = require('@tauri-apps/cli')
|
|
|
|
module.exports = async (api, options) => {
|
|
cli.run([
|
|
'init',
|
|
'--directory', api.resolve('.'),
|
|
'--app-name', options.appName,
|
|
'--window-title', options.windowTitle,
|
|
'--dist-dir', 'Set automatically by Vue CLI plugin',
|
|
'--dev-path', 'Set automatically by Vue CLI plugin'
|
|
])
|
|
|
|
api.extendPackage({
|
|
scripts: {
|
|
'tauri:serve': 'vue-cli-service tauri:serve',
|
|
'tauri:build': 'vue-cli-service tauri:build'
|
|
}
|
|
})
|
|
}
|