create-packer 1.25.27 → 1.25.30
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/web-app/react/package.json +2 -1
- package/template/web-app/react/router/index.ts +1 -1
- package/template/web-app/react/router/router.controller.ts +1 -1
- package/template/web-app/react/router/router.tsx +1 -2
- package/template/web-app/react/shared/types/utils.ts +0 -17
- package/template/web-app/react-webpack/package.json +1 -0
- package/template/web-app/react-webpack/router/index.ts +1 -1
- package/template/web-app/react-webpack/router/router.controller.ts +2 -2
- package/template/web-app/react-webpack/router/router.tsx +1 -2
- package/template/web-app/react-webpack/shared/types/utils.ts +0 -17
- package/template/web-app/vue/package.json +1 -0
- package/template/workspace/pnpm/package.json +2 -1
- package/template/workspace/nx/node_modules/.pnpm/minipass-fetch@3.0.3/node_modules/minipass-sized/.gitignore +0 -22
- package/template/workspace/nx/node_modules/.pnpm/minipass-sized@1.0.3/node_modules/minipass-sized/.gitignore +0 -22
- package/template/workspace/nx/node_modules/.pnpm/node_modules/minipass-sized/.gitignore +0 -22
- package/template/workspace/nx/node_modules/.pnpm/node_modules/npm-normalize-package-bin/.gitignore +0 -24
- package/template/workspace/nx/node_modules/.pnpm/npm-bundled@1.1.2/node_modules/npm-normalize-package-bin/.gitignore +0 -24
- package/template/workspace/nx/node_modules/.pnpm/npm-normalize-package-bin@1.0.1/node_modules/npm-normalize-package-bin/.gitignore +0 -24
- package/template/workspace/nx/node_modules/.pnpm/npm-packlist@5.1.1/node_modules/npm-normalize-package-bin/.gitignore +0 -24
- /package/template/web-app/react/router/{router.provider.ts → router.tool.ts} +0 -0
- /package/template/web-app/react-webpack/router/{router.provider.ts → router.tool.ts} +0 -0
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"commit": "git add . && npm run cz"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"1k-types": "1.0.1",
|
|
21
22
|
"axios": "1.3.6",
|
|
22
23
|
"define-zustand": "2.0.1",
|
|
23
24
|
"immer": "10.0.1",
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"stylelint": "15.7.0",
|
|
63
64
|
"stylelint-config-standard": "33.0.0",
|
|
64
65
|
"tailwindcss": "3.3.1",
|
|
65
|
-
"typescript": "5.
|
|
66
|
+
"typescript": "5.2.2",
|
|
66
67
|
"vite": "4.3.1",
|
|
67
68
|
"vite-plugin-checker": "0.6.2",
|
|
68
69
|
"vite-plugin-mock-dev-server": "1.2.1",
|
|
@@ -2,7 +2,7 @@ import { useMemo } from 'react'
|
|
|
2
2
|
import { useMatches, useSearchParams } from 'react-router-dom'
|
|
3
3
|
import { parse } from 'qs'
|
|
4
4
|
import { map } from 'lodash-es'
|
|
5
|
-
import { getRoute } from '@/router/router.
|
|
5
|
+
import { getRoute } from '@/router/router.tool'
|
|
6
6
|
import { routeType } from '@/router/router.types'
|
|
7
7
|
|
|
8
8
|
export function useQuery<Q extends Record<string, any>>() {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { lazy } from 'react'
|
|
2
2
|
import { createBrowserRouter } from 'react-router-dom'
|
|
3
3
|
import { assign, isArray, reduce } from 'lodash-es'
|
|
4
|
-
import { ValueType } from '@/shared/types'
|
|
5
4
|
import ids from './ids'
|
|
6
5
|
import * as home from './home'
|
|
7
6
|
import type { routeType } from './router.types'
|
|
@@ -35,7 +34,7 @@ export const routesById = (function flat(routes: routeType[], parentRoute?: rout
|
|
|
35
34
|
}
|
|
36
35
|
return result
|
|
37
36
|
},
|
|
38
|
-
{} as Record<
|
|
37
|
+
{} as Record<routeType['id'], routeType>
|
|
39
38
|
)
|
|
40
39
|
})(routes)
|
|
41
40
|
|
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
import type { UseBoundStore, StoreApi } from 'zustand'
|
|
2
|
-
export type ExtractArrayElType<T> = T extends Array<infer E> ? E : unknown
|
|
3
|
-
export type ExtractReadonlyArrayElType<T> = T extends ReadonlyArray<infer E> ? E : unknown
|
|
4
|
-
export type ExtractReadonlyArrayFieldType<T, K extends keyof any> = T extends ReadonlyArray<infer V>
|
|
5
|
-
? V extends { [key in K]: infer V2 }
|
|
6
|
-
? V2
|
|
7
|
-
: any
|
|
8
|
-
: any
|
|
9
|
-
export type ExtractArrayFieldType<T, K extends keyof any> = T extends Array<infer V>
|
|
10
|
-
? V extends { [key in K]: infer V2 }
|
|
11
|
-
? V2
|
|
12
|
-
: any
|
|
13
|
-
: any
|
|
14
|
-
|
|
15
|
-
export type UnReadonly<R extends Record<string, any>> = {
|
|
16
|
-
-readonly [K in keyof R]: R[K]
|
|
17
|
-
}
|
|
18
|
-
export type ValueType<R extends Record<string, any>> = R extends Record<string, infer V> ? V : R
|
|
19
2
|
export type ExtractModelType<T> = T extends UseBoundStore<StoreApi<infer S>> ? S : unknown
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { useMemo } from 'react'
|
|
1
2
|
import { useMatches, useSearchParams } from 'react-router-dom'
|
|
2
3
|
import { parse } from 'qs'
|
|
3
|
-
import { useMemo } from 'react'
|
|
4
4
|
import { map } from 'lodash-es'
|
|
5
|
-
import { getRoute } from '@/router/router.
|
|
5
|
+
import { getRoute } from '@/router/router.tool'
|
|
6
6
|
import { routeType } from '@/router/router.types'
|
|
7
7
|
|
|
8
8
|
export function useQuery<Q extends Record<string, any>>() {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { lazy } from 'react'
|
|
2
2
|
import { createBrowserRouter } from 'react-router-dom'
|
|
3
3
|
import { assign, isArray, reduce } from 'lodash-es'
|
|
4
|
-
import { ValueType } from 'shared/types'
|
|
5
4
|
import ids from './ids'
|
|
6
5
|
import * as home from './home'
|
|
7
6
|
import type { routeType } from './router.types'
|
|
@@ -35,7 +34,7 @@ export const routesById = (function flat(routes: routeType[], parentRoute?: rout
|
|
|
35
34
|
}
|
|
36
35
|
return result
|
|
37
36
|
},
|
|
38
|
-
{} as Record<
|
|
37
|
+
{} as Record<routeType['id'], routeType>
|
|
39
38
|
)
|
|
40
39
|
})(routes)
|
|
41
40
|
|
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
import type { UseBoundStore, StoreApi } from 'zustand'
|
|
2
|
-
export type ExtractArrayElType<T> = T extends Array<infer E> ? E : unknown
|
|
3
|
-
export type ExtractReadonlyArrayElType<T> = T extends ReadonlyArray<infer E> ? E : unknown
|
|
4
|
-
export type ExtractReadonlyArrayFieldType<T, K extends keyof any> = T extends ReadonlyArray<infer V>
|
|
5
|
-
? V extends { [key in K]: infer V2 }
|
|
6
|
-
? V2
|
|
7
|
-
: any
|
|
8
|
-
: any
|
|
9
|
-
export type ExtractArrayFieldType<T, K extends keyof any> = T extends Array<infer V>
|
|
10
|
-
? V extends { [key in K]: infer V2 }
|
|
11
|
-
? V2
|
|
12
|
-
: any
|
|
13
|
-
: any
|
|
14
|
-
|
|
15
|
-
export type UnReadonly<R extends Record<string, any>> = {
|
|
16
|
-
-readonly [K in keyof R]: R[K]
|
|
17
|
-
}
|
|
18
|
-
export type ValueType<R extends Record<string, any>> = R extends Record<string, infer V> ? V : R
|
|
19
2
|
export type ExtractModelType<T> = T extends UseBoundStore<StoreApi<infer S>> ? S : unknown
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"clear:changelog": "pnpm -r exec rimraf CHANGELOG.md",
|
|
11
11
|
"commit": "git add . && cz",
|
|
12
12
|
"push": "pnpm run commit && git push",
|
|
13
|
-
"login": "npm login --registry
|
|
13
|
+
"login": "npm login --registry https://registry.npmjs.org",
|
|
14
14
|
"clean:dist": "pnpm -r exec rimraf dist",
|
|
15
15
|
"pub": "pnpm run build && pnpm run changeVersion && pnpm run push && pnpm -r publish --registry https://registry.npmjs.org"
|
|
16
16
|
},
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@changesets/cli": "2.26.2",
|
|
34
34
|
"@types/node": "20.3.2",
|
|
35
35
|
"inquirer": "8",
|
|
36
|
+
"prettier": "2.8.8",
|
|
36
37
|
"ts-node": "10.9.1",
|
|
37
38
|
"typescript": "5.1.3"
|
|
38
39
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# ignore most things, include some others
|
|
2
|
-
/*
|
|
3
|
-
/.*
|
|
4
|
-
|
|
5
|
-
!bin/
|
|
6
|
-
!lib/
|
|
7
|
-
!docs/
|
|
8
|
-
!package.json
|
|
9
|
-
!package-lock.json
|
|
10
|
-
!README.md
|
|
11
|
-
!CONTRIBUTING.md
|
|
12
|
-
!LICENSE
|
|
13
|
-
!CHANGELOG.md
|
|
14
|
-
!example/
|
|
15
|
-
!scripts/
|
|
16
|
-
!tap-snapshots/
|
|
17
|
-
!test/
|
|
18
|
-
!.travis.yml
|
|
19
|
-
!.gitignore
|
|
20
|
-
!.gitattributes
|
|
21
|
-
!coverage-map.js
|
|
22
|
-
!index.js
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# ignore most things, include some others
|
|
2
|
-
/*
|
|
3
|
-
/.*
|
|
4
|
-
|
|
5
|
-
!bin/
|
|
6
|
-
!lib/
|
|
7
|
-
!docs/
|
|
8
|
-
!package.json
|
|
9
|
-
!package-lock.json
|
|
10
|
-
!README.md
|
|
11
|
-
!CONTRIBUTING.md
|
|
12
|
-
!LICENSE
|
|
13
|
-
!CHANGELOG.md
|
|
14
|
-
!example/
|
|
15
|
-
!scripts/
|
|
16
|
-
!tap-snapshots/
|
|
17
|
-
!test/
|
|
18
|
-
!.travis.yml
|
|
19
|
-
!.gitignore
|
|
20
|
-
!.gitattributes
|
|
21
|
-
!coverage-map.js
|
|
22
|
-
!index.js
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# ignore most things, include some others
|
|
2
|
-
/*
|
|
3
|
-
/.*
|
|
4
|
-
|
|
5
|
-
!bin/
|
|
6
|
-
!lib/
|
|
7
|
-
!docs/
|
|
8
|
-
!package.json
|
|
9
|
-
!package-lock.json
|
|
10
|
-
!README.md
|
|
11
|
-
!CONTRIBUTING.md
|
|
12
|
-
!LICENSE
|
|
13
|
-
!CHANGELOG.md
|
|
14
|
-
!example/
|
|
15
|
-
!scripts/
|
|
16
|
-
!tap-snapshots/
|
|
17
|
-
!test/
|
|
18
|
-
!.travis.yml
|
|
19
|
-
!.gitignore
|
|
20
|
-
!.gitattributes
|
|
21
|
-
!coverage-map.js
|
|
22
|
-
!index.js
|
package/template/workspace/nx/node_modules/.pnpm/node_modules/npm-normalize-package-bin/.gitignore
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# ignore most things, include some others
|
|
2
|
-
/*
|
|
3
|
-
/.*
|
|
4
|
-
|
|
5
|
-
!bin/
|
|
6
|
-
!lib/
|
|
7
|
-
!docs/
|
|
8
|
-
!package.json
|
|
9
|
-
!package-lock.json
|
|
10
|
-
!README.md
|
|
11
|
-
!CONTRIBUTING.md
|
|
12
|
-
!LICENSE
|
|
13
|
-
!CHANGELOG.md
|
|
14
|
-
!example/
|
|
15
|
-
!scripts/
|
|
16
|
-
!tap-snapshots/
|
|
17
|
-
!test/
|
|
18
|
-
!.github/
|
|
19
|
-
!.travis.yml
|
|
20
|
-
!.gitignore
|
|
21
|
-
!.gitattributes
|
|
22
|
-
!coverage-map.js
|
|
23
|
-
!map.js
|
|
24
|
-
!index.js
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# ignore most things, include some others
|
|
2
|
-
/*
|
|
3
|
-
/.*
|
|
4
|
-
|
|
5
|
-
!bin/
|
|
6
|
-
!lib/
|
|
7
|
-
!docs/
|
|
8
|
-
!package.json
|
|
9
|
-
!package-lock.json
|
|
10
|
-
!README.md
|
|
11
|
-
!CONTRIBUTING.md
|
|
12
|
-
!LICENSE
|
|
13
|
-
!CHANGELOG.md
|
|
14
|
-
!example/
|
|
15
|
-
!scripts/
|
|
16
|
-
!tap-snapshots/
|
|
17
|
-
!test/
|
|
18
|
-
!.github/
|
|
19
|
-
!.travis.yml
|
|
20
|
-
!.gitignore
|
|
21
|
-
!.gitattributes
|
|
22
|
-
!coverage-map.js
|
|
23
|
-
!map.js
|
|
24
|
-
!index.js
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# ignore most things, include some others
|
|
2
|
-
/*
|
|
3
|
-
/.*
|
|
4
|
-
|
|
5
|
-
!bin/
|
|
6
|
-
!lib/
|
|
7
|
-
!docs/
|
|
8
|
-
!package.json
|
|
9
|
-
!package-lock.json
|
|
10
|
-
!README.md
|
|
11
|
-
!CONTRIBUTING.md
|
|
12
|
-
!LICENSE
|
|
13
|
-
!CHANGELOG.md
|
|
14
|
-
!example/
|
|
15
|
-
!scripts/
|
|
16
|
-
!tap-snapshots/
|
|
17
|
-
!test/
|
|
18
|
-
!.github/
|
|
19
|
-
!.travis.yml
|
|
20
|
-
!.gitignore
|
|
21
|
-
!.gitattributes
|
|
22
|
-
!coverage-map.js
|
|
23
|
-
!map.js
|
|
24
|
-
!index.js
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# ignore most things, include some others
|
|
2
|
-
/*
|
|
3
|
-
/.*
|
|
4
|
-
|
|
5
|
-
!bin/
|
|
6
|
-
!lib/
|
|
7
|
-
!docs/
|
|
8
|
-
!package.json
|
|
9
|
-
!package-lock.json
|
|
10
|
-
!README.md
|
|
11
|
-
!CONTRIBUTING.md
|
|
12
|
-
!LICENSE
|
|
13
|
-
!CHANGELOG.md
|
|
14
|
-
!example/
|
|
15
|
-
!scripts/
|
|
16
|
-
!tap-snapshots/
|
|
17
|
-
!test/
|
|
18
|
-
!.github/
|
|
19
|
-
!.travis.yml
|
|
20
|
-
!.gitignore
|
|
21
|
-
!.gitattributes
|
|
22
|
-
!coverage-map.js
|
|
23
|
-
!map.js
|
|
24
|
-
!index.js
|
|
File without changes
|
|
File without changes
|