Skip to content

Commit 3b4c65f

Browse files
committed
feat: builder vite tailwind
1 parent 3e7d744 commit 3b4c65f

File tree

15 files changed

+195
-4
lines changed

15 files changed

+195
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from '@vueform/builder'
2+
3+
import '@vueform/builder/index.css'
4+
5+
export default defineConfig({})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div class="h-screen">
3+
<VueformBuilder />
4+
</div>
5+
</template>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { createApp } from 'vue'
2+
import './style.css'
3+
import App from './App.vue'
4+
import Vueform from '@vueform/vueform'
5+
import vueformConfig from './../vueform.config'
6+
import Builder from '@vueform/builder'
7+
import builderConfig from './../builder.config'
8+
9+
const app = createApp(App)
10+
app.use(Vueform, vueformConfig)
11+
app.use(Builder, builderConfig)
12+
app.mount('#app')
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import vueformPlugin from '@vueform/vueform/tailwind'
2+
import builderPlugin from '@vueform/builder/tailwind'
3+
4+
/** @type {import('tailwindcss').Config} */
5+
export default {
6+
content: [
7+
'./index.html',
8+
'./src/**/*.{vue,js,ts,jsx,tsx}',
9+
'./vueform.config.js',
10+
'./node_modules/@vueform/vueform/themes/tailwind/**/*.vue',
11+
'./node_modules/@vueform/vueform/themes/tailwind/**/*.js',
12+
'./node_modules/@vueform/builder/**/*.js',
13+
'./node_modules/@vueform/builder/**/*.css',
14+
],
15+
darkMode: 'class',
16+
theme: {
17+
extend: {},
18+
},
19+
plugins: [
20+
vueformPlugin,
21+
builderPlugin,
22+
]
23+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import en from '@vueform/vueform/locales/en'
2+
import theme from '@vueform/vueform/dist/tailwind'
3+
import { defineConfig } from '@vueform/vueform'
4+
import builder from '@vueform/builder/plugin'
5+
6+
export default defineConfig({
7+
theme,
8+
locales: { en },
9+
locale: 'en',
10+
apiKey: 'YOUR_PUBLIC_KEY',
11+
plugins: [
12+
builder,
13+
],
14+
})
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from '@vueform/builder'
2+
3+
import '@vueform/builder/index.css'
4+
5+
export default defineConfig({})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div class="h-screen">
3+
<VueformBuilder />
4+
</div>
5+
</template>

0 commit comments

Comments
 (0)