Skip to content

Commit

Permalink
build: 📦️ test for vercel build
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Aug 13, 2023
1 parent f17a7a0 commit 73e97ee
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions scripts/build-playground.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { genJSONFile, genTxtFile, genWebFile } from '../packages/cli/src/genFile.js'

// import { genJSONFile, genTxtFile, genWebFile } from '../packages/cli/src/genFile.js'
import { buildWeb } from './utils.js'

const __dirname = fileURLToPath(new URL('.', import.meta.url))

async function createPlaygroundServer() {
const playgroundAssetsPath = path.resolve(__dirname, '../playground/src/assets')
await genWebFile({
dep: 3,
writePath: playgroundAssetsPath,
})
await genJSONFile(3, playgroundAssetsPath, true)
await genTxtFile(3, playgroundAssetsPath, true)
// const playgroundAssetsPath = path.resolve(__dirname, '../playground/src/assets')
// await genWebFile({
// dep: 3,
// writePath: playgroundAssetsPath,
// })
// await genJSONFile(3, playgroundAssetsPath, true)
// await genTxtFile(3, playgroundAssetsPath, true)
await buildWeb({
isDeploy: true,
buildPath: path.resolve(__dirname, '../playground/dist'),
Expand Down

0 comments on commit 73e97ee

Please sign in to comment.