Skip to content

Commit 5db9aaa

Browse files
committed
chore: improve npm scripts, update to react 19.0.0, parcel 2.13.3, storybook 8.4.7 et.al.
also Parcel now distributes the library into separate files to improve tree shaking in end applications. fix: alleviate the npm peerdependencies configuration
1 parent ff013f4 commit 5db9aaa

File tree

6 files changed

+2190
-4127
lines changed

6 files changed

+2190
-4127
lines changed

.github/workflows/publish-storybook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Generate test reports
3333
run: npm run test:ci
3434
- name: Build Storybook
35-
run: npm run build:storybook
35+
run: npm run storybook:build
3636
- name: Configure GH pages
3737
uses: actions/configure-pages@v5
3838
- name: Upload Storybook Documentation

.parcelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@parcel/config-default",
3+
"bundler": "@parcel/bundler-library"
4+
}

.storybook/main.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import remarkGfm from 'remark-gfm';
33

44
const config: StorybookConfig = {
55
stories: ["../src/components/introduction.mdx", "../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
6+
67
addons: [
78
"@storybook/addon-webpack5-compiler-swc",
89
"@storybook/addon-links",
@@ -18,16 +19,20 @@ const config: StorybookConfig = {
1819
},
1920
},
2021
],
22+
2123
framework: {
2224
name: "@storybook/react-webpack5",
2325
options: { builder: { useSWC: true } }
2426
},
27+
2528
core: {
2629
disableTelemetry: true,
2730
},
31+
2832
typescript: {
2933
reactDocgen: 'react-docgen-typescript',
3034
},
35+
3136
build: {
3237
test: {
3338
disableBlocks: false,
@@ -39,7 +44,10 @@ const config: StorybookConfig = {
3944
disableTreeShaking: false
4045
}
4146
},
42-
staticDirs: ["../test-reports"]
47+
48+
staticDirs: ["../test-reports"],
49+
50+
docs: {}
4351
};
4452

4553
export default config;

.storybook/preview.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type { Preview } from "@storybook/react";
22

3-
const preview: Preview = {};
3+
const preview: Preview = {
4+
// tags: ["autodocs"]
5+
};
46

57
export default preview;

0 commit comments

Comments
 (0)