-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtok-cli.config.ts
53 lines (52 loc) · 1.33 KB
/
tok-cli.config.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
53
import { RootConfig } from '@toktokhan-dev/cli'
import { commit } from '@toktokhan-dev/cli-plugin-commit'
import { genApi } from '@toktokhan-dev/cli-plugin-gen-api-react-query'
import { genIcon } from '@toktokhan-dev/cli-plugin-gen-icon-chakra'
import { genImg } from '@toktokhan-dev/cli-plugin-gen-img'
import { genRoutePage } from '@toktokhan-dev/cli-plugin-gen-route-pages'
import { genSource } from '@toktokhan-dev/cli-plugin-gen-source'
import { genTheme } from '@toktokhan-dev/cli-plugin-gen-theme-chakra'
const config: RootConfig<{
plugins: [
typeof genImg,
typeof genRoutePage,
typeof genApi,
typeof genTheme,
typeof genIcon,
typeof genSource,
typeof commit,
]
}> = {
plugins: [genImg, genRoutePage, genApi, genTheme, genIcon, genSource, commit],
'gen:img': {
input: 'public/images',
oneDepth: true,
basePath: '/images',
},
'gen:route': {
oneDepth: true,
},
'gen:api': {
swaggerSchemaUrl: 'https://sales-api-dev.pluuug.com/openapi.json/',
},
'gen:theme': {
tokenModes: {
colors: {
light: 'light',
dark: 'dark',
},
textStyles: {
base: 'mobile',
sm: 'tablet',
md: 'desktop',
},
},
},
'gen:icon': {
input: 'public/icons',
},
'gen:source': {
appName: 'toktokhan-dev',
},
}
export default config