Skip to content

Commit

Permalink
chore: qr code and npm run dev playground directly
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Nov 5, 2023
1 parent 224c8c7 commit 07136de
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"access": "public"
},
"scripts": {
"dev": "vite",
"dev": "cd playground && npm run dev",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"playground": "cd playground && npm run dev",
Expand Down
11 changes: 6 additions & 5 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "playground",
"private": true,
"version": "0.0.0",
"type": "module",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite",
"dev": "vite --host",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
Expand All @@ -18,10 +18,11 @@
},
"devDependencies": {
"@tresjs/cientos": "3.5.1",
"@tresjs/core": "3.4.1",
"@tresjs/core": "3.5.0",
"@types/three": "^0.158.1",
"three": "^0.158.0",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2"
"unplugin-vue-components": "^0.25.2",
"vite-plugin-qrcode": "^0.2.2"
}
}
2 changes: 2 additions & 0 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { resolve } from 'pathe'
import UnoCSS from 'unocss/vite'
import { presetUno, presetIcons, presetWebFonts, presetTypography, transformerDirectives } from 'unocss'
import { templateCompilerOptions } from '@tresjs/core'
import { qrcode } from 'vite-plugin-qrcode'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down Expand Up @@ -82,6 +83,7 @@ export default defineConfig({
],
transformers: [transformerDirectives()],
}),
qrcode(),
],
server: {
fs: {
Expand Down
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 07136de

Please sign in to comment.