chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:44:08 +08:00
commit 983960e2dd
1244 changed files with 281996 additions and 0 deletions
+18
View File
@@ -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')
}
}
+14
View File
@@ -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}`)
}
})()