Set up netlify builds (#100)

This commit is contained in:
Aria 2022-03-18 15:58:26 +01:00 committed by GitHub
parent 3c1799dcfd
commit 139c3ed556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,4 @@
/dist
/test-results/
/playwright-report/
/playwright-report/
/build

View file

@ -20,6 +20,11 @@ const port = 8080
// https://vitejs.dev/config/
export default defineConfig({
root: path.join(playgroundDir, './src'),
build: {
outDir: '../build',
minify: false,
emptyOutDir: true,
},
assetsInclude: ['**/*.gltf', '**/*.glb'],
server: {

View file

@ -9,6 +9,8 @@
],
"scripts": {
"serve": "vite --config ./devEnv/vite.config.ts",
"build:static": "vite --config ./devEnv/vite.config.ts build",
"build:preview": "vite --config ./devEnv/vite.config.ts preview",
"typecheck": "yarn run build",
"test": "playwright test --config=devEnv/playwright.config.ts",
"test:ci": "percy exec -- playwright test --reporter=dot --config=devEnv/playwright.config.ts --project=chromium",

View file

@ -0,0 +1 @@
/* /index.html 200