* feat: migrate top turbo * ci: ci test * fix: fix codeql issues * feat: ci test * chore: lint * chore: misc changes * feat: rename vite helpers * feat: use fetch to handle assets * feat: update directory * feat: fetch charword table * feat: migrate download game data and detect missing voice files * feat: symlink relative path * feat: finish wrangler upload * feat: migrate wrangler download * feat: finish * chore: auto update * ci: update ci * ci: update ci --------- Co-authored-by: Halyul <Halyul@users.noreply.github.com>
25 lines
511 B
JavaScript
25 lines
511 B
JavaScript
import { build as viteBuild } from 'vite'
|
|
import { envParser } from '@aklive2d/libs'
|
|
|
|
const build = async (namesToBuild) => {
|
|
if (!namesToBuild.length) {
|
|
// skip as directory can only build
|
|
// when all operators are built
|
|
await viteBuild()
|
|
}
|
|
}
|
|
|
|
async function main() {
|
|
const { name } = envParser.parse({
|
|
name: {
|
|
type: 'string',
|
|
short: 'n',
|
|
multiple: true,
|
|
default: [],
|
|
},
|
|
})
|
|
await build(name)
|
|
}
|
|
|
|
main()
|