mirror of
https://github.com/Afilmory/afilmory
synced 2026-05-01 18:26:41 +00:00
feat: init
This commit is contained in:
18
apps/web/scripts/dev.ts
Normal file
18
apps/web/scripts/dev.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import { $ } from 'execa'
|
||||
|
||||
import { precheck } from './precheck'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
const workdir = path.resolve(__dirname, '..')
|
||||
|
||||
async function main() {
|
||||
await precheck()
|
||||
// Get command line arguments excluding node and script name
|
||||
const args = process.argv.slice(2)
|
||||
await $({ cwd: workdir, stdio: 'inherit' })`vite ${args}`
|
||||
}
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user