Skip to content

Commit

Permalink
Merge pull request #7702 from roiLeo/chore/ci/ui
Browse files Browse the repository at this point in the history
🔧 libs/ui CI build on push
  • Loading branch information
roiLeo authored Oct 24, 2023
2 parents d2a7382 + cb7628c commit 78a3b02
Show file tree
Hide file tree
Showing 7 changed files with 352 additions and 154 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.libs-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build libs/ui package

on:
push:
branches: [ main, beta, production, nuxt ]
paths:
- 'libs/ui/**'
pull_request:
branches: [ main, beta, production, nuxt ]
paths:
- 'libs/ui/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
uses: ./.github/actions/pnpm-install
- run: cd libs/ui && pnpm histoire build
Empty file.
2 changes: 1 addition & 1 deletion libs/ui/histoire.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from 'histoire'
import { HstVue } from '@histoire/plugin-vue'
import vue from '@vitejs/plugin-vue'
// import vue from 'vue'
import { resolve } from 'path'

export default defineConfig({
Expand All @@ -14,6 +13,7 @@ export default defineConfig({
alias: {
'@': resolve(__dirname, '../../'),
'~': resolve(__dirname, '../../'),
'@google/model-viewer': './__mocks__/model-viewer.js',
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
"vite": "^4.5.0"
},
"dependencies": {
"@google/model-viewer": "^1.12.1",
"@google/model-viewer": "^3.3.0",
"@vueuse/core": "^9.13.0",
"bulma": "0.9.4",
"three": "^0.157.0",
"vue": "^3.3.6",
"vue-audio-visual": "2.5.0"
}
Expand Down
1 change: 1 addition & 0 deletions libs/ui/src/components/MediaItem/type/ModelMedia.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<script lang="ts" setup>
import '@google/model-viewer'
defineProps<{
animationSrc: string
disableOperation?: boolean
Expand Down
7 changes: 7 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ export default defineNuxtConfig({
host: '0.0.0.0',
},

vue: {
compilerOptions: {
// model-viewer from ModelMedia throw warning
isCustomElement: (tag) => tag.includes('model-viewer'),
},
},

nitro: {
publicAssets: [],
},
Expand Down
Loading

0 comments on commit 78a3b02

Please sign in to comment.