Skip to content

Commit

Permalink
chore: basic configuration for threejs
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Dec 4, 2024
1 parent b86854d commit c4aa079
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/stage/src/components/ThreeViewer.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
</script>

<template>
<div>
<h1>3D View</h1>
<div>Working in progress</div>
<TresCanvas />
</div>
</template>
2 changes: 2 additions & 0 deletions packages/stage/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Tres from '@tresjs/core'
import NProgress from 'nprogress'
import { createPinia } from 'pinia'
import { setupLayouts } from 'virtual:generated-layouts'
Expand Down Expand Up @@ -34,4 +35,5 @@ createApp(App)
.use(router)
.use(pinia)
.use(i18n)
.use(Tres)
.mount('#app')
2 changes: 2 additions & 0 deletions packages/stage/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { copyFile, cp, mkdir } from 'node:fs/promises'
import path, { join, resolve } from 'node:path'

import VueI18n from '@intlify/unplugin-vue-i18n/vite'
import { templateCompilerOptions } from '@tresjs/core'
import Vue from '@vitejs/plugin-vue'
import { ofetch } from 'ofetch'
import Unocss from 'unocss/vite'
Expand Down Expand Up @@ -53,6 +54,7 @@ export default defineConfig({
plugins: {
vue: Vue({
include: [/\.vue$/, /\.md$/],
...templateCompilerOptions,
}),
},
}),
Expand Down

0 comments on commit c4aa079

Please sign in to comment.