Skip to content

Commit

Permalink
Meta: move demo to separate dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Sep 4, 2022
1 parent 7b2aebd commit a8d6bea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
index.html linguist-documentation
/demo linguist-documentation
File renamed without changes.
2 changes: 1 addition & 1 deletion vite.config.ts → demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {defineConfig} from 'vite'
// eslint-disable-next-line n/file-extension-in-import
import unocss from 'unocss/vite'
import {presetUno, presetIcons, transformerDirectives} from 'unocss'
import presetDaisy from './index.js'
import presetDaisy from '../index.js'

export default defineConfig({
plugins: [
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"version": "1.1.0",
"description": "UnoCSS preset for daisyUI",
"scripts": {
"build": "tsc && esbuild index.ts --bundle --format=esm --external:camelcase --outdir=.",
"build": "vite build demo",
"lint": "xo",
"prepack": "npm run build"
"prepack": "tsc && esbuild index.ts --bundle --format=esm --external:camelcase --outdir=.",
"preview": "vite preview demo",
"start": "vite demo"
},
"repository": "kidonng/unocss-preset-daisy",
"license": "MIT",
Expand Down

0 comments on commit a8d6bea

Please sign in to comment.