Skip to content

Commit

Permalink
ocd: lowercase all plugin names
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jul 18, 2024
1 parent d95687a commit 65e9d21
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions config/vite.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @license MIT
*/

import Icons from 'unplugin-icons/vite'
import icons from 'unplugin-icons/vite'
import { mergeConfig } from 'vite'
import { compileTemplate } from 'vue/compiler-sfc'

Expand Down Expand Up @@ -72,7 +72,7 @@ function compiler(svg, collection, icon) {
/** @type {import('vite').UserConfig} */
export const baseConfig = {
// TODO:: remove custom compiler when unplugin-icons is updated
plugins: [Icons({ scale: 1, compiler: { compiler } })],
plugins: [icons({ scale: 1, compiler: { compiler } })],

resolve: {
alias: { 'sefirot/': new URL('../lib/', import.meta.url).pathname },
Expand Down
13 changes: 9 additions & 4 deletions histoire.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HstVue } from '@histoire/plugin-vue'
import { HstVue as hstVue } from '@histoire/plugin-vue'
import { defaultColors, defineConfig } from 'histoire'
import { baseConfig } from './config/vite'

Expand All @@ -10,8 +10,9 @@ function getDocsHost(): string {
}

export default defineConfig({
plugins: [HstVue()],
plugins: [hstVue()],
setupFile: 'stories/histoire.setup.ts',
defaultStoryProps: { autoPropsDisabled: true },

theme: { title: 'Sefirot', colors: { primary: defaultColors.neutral } },
backgroundPresets: [
Expand All @@ -20,6 +21,10 @@ export default defineConfig({
{ label: 'Dark', color: '#191919' }
],

defaultStoryProps: { autoPropsDisabled: true },
vite: { ...baseConfig, define: { __DOCS_HOST__: JSON.stringify(getDocsHost()) } }
vite: {
...baseConfig,
define: {
__DOCS_HOST__: JSON.stringify(getDocsHost())
}
}
})
8 changes: 5 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/// <reference lib="esnext" />
/// <reference types="vitest" />

import Vue from '@vitejs/plugin-vue'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from './config/vite'

export default defineConfig({
plugins: [Vue()],
plugins: [vue()],

resolve: {
alias: { 'tests/': new URL('./tests/', import.meta.url).pathname }
alias: {
'tests/': new URL('./tests/', import.meta.url).pathname
}
},

test: {
Expand Down

0 comments on commit 65e9d21

Please sign in to comment.