create-packer 1.43.10 → 1.43.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/lib/workspace/.storybook/main.ts +1 -8
- package/template/lib/workspace/package.json +8 -8
- package/template/lib/workspace/packages/react/src/button/button.stories.ts +2 -1
- package/template/lib/workspace/packages/react/tsconfig.json +1 -1
- package/template/lib/workspace/packages/react/tsconfig.lint.json +1 -1
- package/template/lib/workspace/packages/ts/tsconfig.json +1 -1
- package/template/lib/workspace/packages/ts/tsconfig.lint.json +1 -1
- package/template/lib/workspace/tsconfig.json +2 -2
- package/template/lib/workspace/tsconfig.node.json +2 -2
- package/template/web-app/react-rsbuild/domain/app/components/app.tsx +2 -2
- package/template/web-app/react-rsbuild/domain/router/components/route-layout.tsx +1 -1
- package/template/web-app/react-rsbuild/domain/router/components/sub-route-outlet.tsx +1 -1
- package/template/web-app/react-rsbuild/domain/router/router.tsx +2 -1
- package/template/web-app/react-rsbuild/package.json +1 -1
- package/template/web-app/react-rsbuild/pages/index.tsx +1 -1
- package/template/web-app/react-rsbuild/shared/hooks/defineRouter/defineRouter.types.ts +1 -1
- package/template/web-app/react-rsbuild/shared/hooks/defineRouter/deineRouter.tsx +1 -1
- package/template/web-app/react-rsbuild/tsconfig.json +1 -1
- package/template/web-app/react-rsbuild/tsconfig.node.json +1 -1
- package/template/web-app/react-vite/domain/app/components/app.tsx +2 -2
- package/template/web-app/react-vite/domain/router/components/route-layout.tsx +1 -1
- package/template/web-app/react-vite/domain/router/components/sub-route-outlet.tsx +1 -1
- package/template/web-app/react-vite/domain/router/router.tsx +2 -1
- package/template/web-app/react-vite/package.json +1 -1
- package/template/web-app/react-vite/pages/index.tsx +1 -1
- package/template/web-app/react-vite/shared/hooks/defineRouter/defineRouter.types.ts +1 -1
- package/template/web-app/react-vite/shared/hooks/defineRouter/deineRouter.tsx +1 -1
- package/template/web-app/react-vite/tsconfig.json +1 -1
- package/template/web-app/react-vite/tsconfig.node.json +1 -1
- package/template/web-app/vue/.stylelintrc +6 -0
- package/template/web-app/vue/eslint.config.js +1 -0
- package/template/web-app/vue/package.json +1 -0
- package/template/web-app/vue/tsconfig.json +2 -1
- package/template/web-app/vue/tsconfig.node.json +1 -1
- package/template/web-app/vue-rsbuild/.stylelintrc +6 -0
- package/template/web-app/vue-rsbuild/eslint.config.js +1 -0
- package/template/web-app/vue-rsbuild/package.json +1 -0
- package/template/web-app/vue-rsbuild/tsconfig.json +2 -1
- package/template/web-app/vue-rsbuild/tsconfig.node.json +1 -1
- package/template/web-extension/tsconfig.json +1 -1
- package/template/web-extension/tsconfig.node.json +1 -1
package/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import svgr from '@svgr/rollup'
|
|
2
2
|
import type { StorybookConfig } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
|
-
function createStories(lib: string): string[] {
|
|
5
|
-
return [
|
|
6
|
-
`../packages/${lib}/src/**/*.mdx`,
|
|
7
|
-
`../packages/${lib}/src/**/*.stories.@(js|jsx|ts|tsx)`
|
|
8
|
-
]
|
|
9
|
-
}
|
|
10
|
-
|
|
11
4
|
const config: StorybookConfig = {
|
|
12
|
-
stories: [
|
|
5
|
+
stories: [`../packages/**/*.mdx`, `../packages/**/*.stories.@(js|jsx|ts|tsx)`],
|
|
13
6
|
addons: [
|
|
14
7
|
'@storybook/addon-links',
|
|
15
8
|
'@storybook/addon-essentials',
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@changesets/cli": "2.26.2",
|
|
45
45
|
"@eslint/js": "9.15.0",
|
|
46
|
-
"@storybook/addon-essentials": "8.
|
|
47
|
-
"@storybook/addon-interactions": "8.
|
|
48
|
-
"@storybook/addon-links": "8.
|
|
49
|
-
"@storybook/blocks": "8.
|
|
50
|
-
"@storybook/react": "8.
|
|
51
|
-
"@storybook/react-vite": "8.
|
|
46
|
+
"@storybook/addon-essentials": "8.6.12",
|
|
47
|
+
"@storybook/addon-interactions": "8.6.12",
|
|
48
|
+
"@storybook/addon-links": "8.6.12",
|
|
49
|
+
"@storybook/blocks": "8.6.12",
|
|
50
|
+
"@storybook/react": "8.6.12",
|
|
51
|
+
"@storybook/react-vite": "8.6.12",
|
|
52
52
|
"@storybook/testing-library": "0.2.2",
|
|
53
53
|
"@svgr/rollup": "8.1.0",
|
|
54
54
|
"@types/node": "20.3.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"eslint-plugin-import": "2.31.0",
|
|
61
61
|
"eslint-plugin-react": "7.37.2",
|
|
62
62
|
"eslint-plugin-react-hooks": "5.1.0",
|
|
63
|
-
"eslint-plugin-storybook": "0.
|
|
63
|
+
"eslint-plugin-storybook": "0.12.0",
|
|
64
64
|
"globals": "15.12.0",
|
|
65
65
|
"inquirer": "^8.1.2",
|
|
66
66
|
"postcss": "8.4.31",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"prop-types": "15.8.1",
|
|
73
73
|
"react": "18.2.0",
|
|
74
74
|
"react-dom": "18.2.0",
|
|
75
|
-
"storybook": "8.
|
|
75
|
+
"storybook": "8.6.12",
|
|
76
76
|
"stylelint": "16.10.0",
|
|
77
77
|
"stylelint-config-standard-scss": "13.0.0",
|
|
78
78
|
"ts-node": "10.9.1",
|
|
@@ -10,10 +10,11 @@ const meta: Meta<typeof Button> = {
|
|
|
10
10
|
backgroundColor: { control: 'color' }
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
type Story = StoryObj<typeof meta>
|
|
14
13
|
|
|
15
14
|
export default meta
|
|
16
15
|
|
|
16
|
+
type Story = StoryObj<typeof Button>
|
|
17
|
+
|
|
17
18
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
18
19
|
export const Primary: Story = {
|
|
19
20
|
args: {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"target": "ESNext",
|
|
14
14
|
"noImplicitAny": false,
|
|
15
15
|
"skipLibCheck": true,
|
|
16
|
-
"moduleResolution": "
|
|
16
|
+
"moduleResolution": "bundler",
|
|
17
17
|
"sourceMap": false,
|
|
18
18
|
"declaration": true,
|
|
19
19
|
"outDir": "dist",
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
"path": "./tsconfig.node.json"
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
|
-
}
|
|
35
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"strictNullChecks": true,
|
|
9
9
|
"target": "ESNext",
|
|
10
10
|
"noImplicitAny": false,
|
|
11
|
-
"moduleResolution": "
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
12
|
"sourceMap": false,
|
|
13
13
|
"declaration": true,
|
|
14
14
|
"outDir": "lib",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
"exclude": [
|
|
21
21
|
"node_modules/**/*"
|
|
22
22
|
]
|
|
23
|
-
}
|
|
23
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect } from 'react'
|
|
2
|
-
import { RouterProvider } from 'react-router
|
|
2
|
+
import { RouterProvider } from 'react-router/dom'
|
|
3
3
|
import { request } from '@/shared/service'
|
|
4
4
|
import { routerInstance } from '@/domain/router'
|
|
5
5
|
import { GlobalStyle } from '../app.styled'
|
|
@@ -18,7 +18,7 @@ export const Root = () => {
|
|
|
18
18
|
return (
|
|
19
19
|
<AppContext.Root>
|
|
20
20
|
<GlobalStyle />
|
|
21
|
-
<RouterProvider router={routerInstance}
|
|
21
|
+
<RouterProvider router={routerInstance} />
|
|
22
22
|
</AppContext.Root>
|
|
23
23
|
)
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react'
|
|
2
|
-
import { Outlet } from 'react-router
|
|
2
|
+
import { Outlet } from 'react-router'
|
|
3
3
|
import { useMount } from 'react-use'
|
|
4
4
|
import { last } from 'lodash-es'
|
|
5
5
|
import { useMatchRoutes, useRouter, routeType } from '@/domain/router'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { lazy } from 'react'
|
|
2
|
-
import { createBrowserRouter } from 'react-router
|
|
2
|
+
import { createBrowserRouter } from 'react-router'
|
|
3
3
|
import { defineRouter, routeType } from '@/shared/hooks'
|
|
4
4
|
import ids from './ids'
|
|
5
5
|
import * as home from './home'
|
|
@@ -9,6 +9,7 @@ const routes: routeType[] = [
|
|
|
9
9
|
path: '/',
|
|
10
10
|
id: ids.root,
|
|
11
11
|
Component: lazy(() => import('@/pages')),
|
|
12
|
+
hydrateFallbackElement: <>loading...</>,
|
|
12
13
|
children: [
|
|
13
14
|
...home.routes,
|
|
14
15
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DependencyList, useEffect, useMemo } from 'react'
|
|
2
|
-
import { useMatches, useSearchParams, NavigateOptions, createBrowserRouter } from 'react-router
|
|
2
|
+
import { useMatches, useSearchParams, NavigateOptions, createBrowserRouter } from 'react-router'
|
|
3
3
|
import { assign, isArray, reduce, get, map, split, omit, cloneDeep, last, forEach } from 'lodash-es'
|
|
4
4
|
import { stringify, parse } from 'qs'
|
|
5
5
|
import { defineStore } from 'define-zustand'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect } from 'react'
|
|
2
|
-
import { RouterProvider } from 'react-router
|
|
2
|
+
import { RouterProvider } from 'react-router/dom'
|
|
3
3
|
import { request } from '@/shared/service'
|
|
4
4
|
import { routerInstance } from '@/domain/router'
|
|
5
5
|
import { GlobalStyle } from '../app.styled'
|
|
@@ -18,7 +18,7 @@ export const Root = () => {
|
|
|
18
18
|
return (
|
|
19
19
|
<AppContext.Root>
|
|
20
20
|
<GlobalStyle />
|
|
21
|
-
<RouterProvider router={routerInstance}
|
|
21
|
+
<RouterProvider router={routerInstance} />
|
|
22
22
|
</AppContext.Root>
|
|
23
23
|
)
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react'
|
|
2
|
-
import { Outlet } from 'react-router
|
|
2
|
+
import { Outlet } from 'react-router'
|
|
3
3
|
import { useMount } from 'react-use'
|
|
4
4
|
import { last } from 'lodash-es'
|
|
5
5
|
import { useMatchRoutes, useRouter, routeType } from '@/domain/router'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { lazy } from 'react'
|
|
2
|
-
import { createBrowserRouter } from 'react-router
|
|
2
|
+
import { createBrowserRouter } from 'react-router'
|
|
3
3
|
import { defineRouter, routeType } from '@/shared/hooks'
|
|
4
4
|
import ids from './ids'
|
|
5
5
|
import * as home from './home'
|
|
@@ -9,6 +9,7 @@ const routes: routeType[] = [
|
|
|
9
9
|
path: '/',
|
|
10
10
|
id: ids.root,
|
|
11
11
|
Component: lazy(() => import('@/pages')),
|
|
12
|
+
hydrateFallbackElement: <>loading...</>,
|
|
12
13
|
children: [
|
|
13
14
|
...home.routes,
|
|
14
15
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DependencyList, useEffect, useMemo } from 'react'
|
|
2
|
-
import { useMatches, useSearchParams, NavigateOptions, createBrowserRouter } from 'react-router
|
|
2
|
+
import { useMatches, useSearchParams, NavigateOptions, createBrowserRouter } from 'react-router'
|
|
3
3
|
import { assign, isArray, reduce, get, map, split, omit, cloneDeep, last, forEach } from 'lodash-es'
|
|
4
4
|
import { stringify, parse } from 'qs'
|
|
5
5
|
import { defineStore } from 'define-zustand'
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
"target": "ESNext",
|
|
5
5
|
"useDefineForClassFields": true,
|
|
6
6
|
"module": "ESNext",
|
|
7
|
-
"moduleResolution": "
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"jsx": "preserve",
|
|
10
|
+
"jsxImportSource": "vue",
|
|
10
11
|
"sourceMap": true,
|
|
11
12
|
"resolveJsonModule": true,
|
|
12
13
|
"isolatedModules": true,
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
"target": "ESNext",
|
|
5
5
|
"useDefineForClassFields": true,
|
|
6
6
|
"module": "ESNext",
|
|
7
|
-
"moduleResolution": "
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"jsx": "preserve",
|
|
10
|
+
"jsxImportSource": "vue",
|
|
10
11
|
"sourceMap": true,
|
|
11
12
|
"resolveJsonModule": true,
|
|
12
13
|
"isolatedModules": true,
|