Skip to content

Commit

Permalink
feat(playground): add nuxt/ssr playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Mar 24, 2022
1 parent 94df66a commit 2b601f3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nuxt-playground/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<div v-motion-slide-rotate-top>
Nuxt module playground!
</div>
</template>

<script setup>
</script>
28 changes: 28 additions & 0 deletions nuxt-playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { resolve } from 'path'
import { defineNuxtConfig } from 'nuxt3'
import MyModule from '../dist/nuxt.mjs'

export default defineNuxtConfig({
alias: {
'@vueuse/motion': resolve(__dirname, '../src/index.ts'),
},
modules: [
MyModule,
],
motion: {
directives: {
'slide-rotate-top': {
initial: {
y: -400,
opacity: 0,
rotate: 90,
},
enter: {
y: 0,
opacity: 1,
rotate: 0,
},
},
},
},
})

0 comments on commit 2b601f3

Please sign in to comment.