-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupported-templates.ts
52 lines (50 loc) · 1.19 KB
/
supported-templates.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import {
BuildTool,
BuildToolValueTypes,
Framework,
FrameworkValueTypes,
Router,
RouterValueTypes,
Store,
StoreValueTypes,
} from "./common/constant.js";
export type Combinations = {
buildTool: BuildToolValueTypes;
framework: FrameworkValueTypes;
store?: StoreValueTypes;
router?: RouterValueTypes;
};
/**
* 配置可选组合
*/
const SUPPORTED_COMBINATIONS: Array<Combinations> = [
{
buildTool: BuildTool.Value.Vite,
framework: Framework.Value.React,
},
{
buildTool: BuildTool.Value.Webpack,
framework: Framework.Value.React,
},
{
buildTool: BuildTool.Value.Vite,
framework: Framework.Value.React,
store: Store.Value.Zustand,
},
{
buildTool: BuildTool.Value.Vite,
framework: Framework.Value.React,
store: Store.Value.Jotai,
},
{
buildTool: BuildTool.Value.Vite,
framework: Framework.Value.React,
router: Router.Value.ReactRouter,
},
{
buildTool: BuildTool.Value.Vite,
framework: Framework.Value.React,
router: Router.Value.TanstackRouter,
},
];
export default SUPPORTED_COMBINATIONS;