chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { command } from 'execa'
|
||||
|
||||
import { LogHelper } from '@/helpers/log-helper'
|
||||
|
||||
/**
|
||||
* Build web app
|
||||
*/
|
||||
export default async function buildApp(options = {}) {
|
||||
const { quiet = false } = options
|
||||
|
||||
await command('vite build --config app/vite.config.js', {
|
||||
stdio: quiet ? 'ignore' : 'inherit'
|
||||
})
|
||||
|
||||
if (!quiet) {
|
||||
LogHelper.success('Web app built')
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { LogHelper } from '@/helpers/log-helper'
|
||||
|
||||
import buildApp from './build-app'
|
||||
|
||||
/**
|
||||
* Execute the building app script
|
||||
*/
|
||||
;(async () => {
|
||||
try {
|
||||
await buildApp()
|
||||
} catch (e) {
|
||||
LogHelper.error(`Failed to build: ${e}`)
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user