1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-22 00:01:31 +03:00
leon/scripts/app/build-app.js

18 lines
335 B
JavaScript
Raw Normal View History

2021-03-15 20:11:40 +03:00
import { command } from 'execa'
2019-02-10 15:26:50 +03:00
import { LogHelper } from '@/helpers/log-helper'
2019-02-10 15:26:50 +03:00
/**
* Build web app
*/
2022-09-03 14:12:41 +03:00
export default () =>
new Promise(async (resolve) => {
await command('vite --config app/vite.config.js build', {
shell: true,
stdout: 'inherit'
})
2019-02-10 15:26:50 +03:00
LogHelper.success('Web app built')
2022-09-03 14:12:41 +03:00
resolve()
})