Skip to content

Commit

Permalink
chore: some renaming to svelte 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 13, 2023
1 parent 6dc6a3e commit ec4fdd7
Show file tree
Hide file tree
Showing 5 changed files with 551 additions and 438 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Svelte 3 tests
name: Svelte 4 tests

on:
push:
Expand All @@ -19,7 +19,7 @@ jobs:
name: Build and test

env:
dir: ./examples/svelte3
dir: ./examples/svelte4

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![Test status](https://github.com/histoire-dev/histoire/actions/workflows/test.yml/badge.svg)](https://github.com/histoire-dev/histoire/actions/workflows/test.yml)
[![Test status](https://github.com/histoire-dev/histoire/actions/workflows/test-vue3.yml/badge.svg)](https://github.com/histoire-dev/histoire/actions/workflows/test-vue3.yml)
[![Test status](https://github.com/histoire-dev/histoire/actions/workflows/test-svelte3.yml/badge.svg)](https://github.com/histoire-dev/histoire/actions/workflows/test-svelte3.yml)
[![Test status](https://github.com/histoire-dev/histoire/actions/workflows/test-svelte4.yml/badge.svg)](https://github.com/histoire-dev/histoire/actions/workflows/test-svelte4.yml)
[![Test status](https://github.com/histoire-dev/histoire/actions/workflows/test-nuxt3.yml/badge.svg)](https://github.com/histoire-dev/histoire/actions/workflows/test-nuxt3.yml)

[Read the Documentation](https://histoire.dev) |
Expand Down
2 changes: 1 addition & 1 deletion examples/svelte4/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "histoire-example-svelte3",
"name": "histoire-example-svelte4",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/histoire-plugin-svelte/src/index.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function HstSvelte (): Plugin {
{
id: 'svelte',
patterns: ['**/*.svelte'],
pluginIds: ['svelte3'],
pluginIds: ['svelte4'],
},
],
theme: {
Expand All @@ -33,7 +33,7 @@ export function HstSvelte (): Plugin {
},

supportPlugin: {
id: 'svelte3',
id: 'svelte4',
moduleName: '@histoire/plugin-svelte',
setupFn: 'setupSvelte3',
importStoryComponent: (file, index) => `import Comp${index} from ${JSON.stringify(file.moduleId)}`,
Expand Down
Loading

0 comments on commit ec4fdd7

Please sign in to comment.