Skip to content

Commit 09dda8c

Browse files
feat: upgrade to Svelte 4 & Storybook 8
1 parent 18572f3 commit 09dda8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+5512
-13935
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ root = true
33
[*]
44
charset = utf-8
55
indent_style = space
6-
indent_size = 4
6+
indent_size = 2
77
end_of_line = lf
88
insert_final_newline = true
9-
trim_trailing_whitespace = true
9+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.DS_Store
2-
node_modules/
2+
node_modules
3+
/build
4+
/package
35
.env
46
.env.*
57
!.env.example
6-
dist
7-
storybook-static
88

99
# Ignore files for PNPM, NPM and YARN
1010
pnpm-lock.yaml

.eslintrc.cjs

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ name: Node CI
33
on: [push]
44

55
jobs:
6-
build:
7-
runs-on: ubuntu-latest
6+
build:
7+
runs-on: ubuntu-latest
88

9-
strategy:
10-
matrix:
11-
node-version: [16.x]
9+
strategy:
10+
matrix:
11+
node-version: [20.x]
1212

13-
steps:
14-
- uses: actions/checkout@v1
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: ${{ matrix.node-version }}
19-
- name: npm install, build, and test
20-
run: |
21-
npm install
22-
npm run build --if-present
23-
npm run build-storybook --if-present
24-
env:
25-
CI: true
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: npm install, build, and test
20+
run: |
21+
npm install
22+
npm run build --if-present
23+
npm run build-storybook --if-present
24+
env:
25+
CI: true

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ lerna-debug.log*
99

1010
node_modules
1111
dist
12-
storybook-static
1312
dist-ssr
1413
*.local
1514

@@ -23,3 +22,5 @@ dist-ssr
2322
*.njsproj
2423
*.sln
2524
*.sw?
25+
26+
*storybook.log

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
.DS_Store
2-
node_modules
3-
.env
4-
.env.*
5-
!.env.example
6-
dist
7-
storybook-static
8-
91
# Ignore files for PNPM, NPM and YARN
102
pnpm-lock.yaml
113
package-lock.json

.prettierrc

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,18 @@
11
{
2-
"arrowParens": "avoid",
3-
"bracketSpacing": false,
4-
"bracketSameLine": true,
5-
"singleQuote": true,
6-
"trailingComma": "none",
7-
"printWidth": 80,
8-
"svelteSortOrder": "options-scripts-markup-styles",
9-
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
10-
"pluginSearchDirs": false,
11-
"overrides": [
12-
{
13-
"files": "*.svelte",
14-
"options": {"parser": "svelte", "printWidth": 100}
15-
},
16-
{
17-
"files": [
18-
"*.json",
19-
"postcss.config.js",
20-
"rollup.config.js",
21-
"tailwind.config.js",
22-
"stylelint.config.js"
23-
],
24-
"options": {
25-
"printWidth": 150
26-
}
27-
},
28-
{
29-
"files": ["*.json"],
30-
"options": {
31-
"parser": "json"
32-
}
33-
}
34-
]
2+
"useTabs": false,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"tabWidth": 2,
6+
"printWidth": 100,
7+
"pluginSearchDirs": false,
8+
"bracketSameLine": true,
9+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
10+
"overrides": [
11+
{
12+
"files": "*.svelte",
13+
"options": {
14+
"parser": "svelte"
15+
}
16+
}
17+
]
3518
}

.storybook/CustomTheme.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

.storybook/CustomTheme.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { create } from '@storybook/theming';
2+
3+
export default create({
4+
base: 'dark',
5+
brandTitle: 'Svelte + Storybook + TailwindCSS',
6+
brandUrl: 'https://svelte-storybook-tailwindcss.sveltehub.dev',
7+
brandImage: 'https://sveltehub.dev/templates/storybook-tailwindcss/logo-white.png',
8+
brandTarget: '_blank'
9+
});

0 commit comments

Comments
 (0)