Skip to content

Commit

Permalink
✨ feat: initial project
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsii committed Oct 13, 2023
1 parent 5c528df commit 6b20570
Show file tree
Hide file tree
Showing 9 changed files with 336 additions and 40 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ dist

# IDE
.idea

# custom
icons.css
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
}
},
"dependencies": {
"@iconify/types": "^2.0.0",
"@iconify/utils": "^2.1.11",
"fs-extra": "^11.1.1",
"pathe": "^1.1.1",
"unplugin": "^1.4.0"
},
"devDependencies": {
Expand All @@ -128,6 +132,7 @@
"@jannajs/lint": "^2.3.8",
"@nuxt/kit": "^3.6.5",
"@nuxt/schema": "^3.6.5",
"@types/fs-extra": "^11.0.2",
"@types/node": "^20.5.2",
"bumpp": "^9.2.0",
"chalk": "^5.3.0",
Expand Down
3 changes: 3 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"devDependencies": {
"vite": "^4.4.9",
"vite-plugin-inspect": "^0.7.38"
},
"dependencies": {
"@iconify-json/bx": "^1.1.7"
}
}
22 changes: 19 additions & 3 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
import path from 'node:path'

import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'
import inspect from 'vite-plugin-inspect'

import Unplugin from '../src/vite'
import unplugin from '../src/vite'

export default defineConfig({
plugins: [Inspect(), Unplugin()],
plugins: [
inspect(),
unplugin({
cssGenerators: [
{
iconifyIcons: {
bx: ['badge', 'brightness'],
// bx: /badge/,
},
iconSelector: '.i-{prefix}--{name}',
outputPath: path.join(__dirname, 'public', 'icons.css'),
},
],
}),
],
})
Loading

0 comments on commit 6b20570

Please sign in to comment.