Skip to content

Commit bf69647

Browse files
build: add and set up @chakra-ui/cli
1 parent d4290f9 commit bf69647

File tree

3 files changed

+215
-3
lines changed

3 files changed

+215
-3
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
7+
"postinstall": "yarn theme",
78
"build": "next build",
89
"postbuild": "next-sitemap",
910
"start": "next start",
@@ -16,7 +17,9 @@
1617
"build-storybook": "storybook build",
1718
"crowdin-clean": "rm -rf .crowdin && mkdir .crowdin",
1819
"crowdin-import": "ts-node src/scripts/crowdin-import.ts",
19-
"markdown-checker": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/markdownChecker.ts"
20+
"markdown-checker": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/markdownChecker.ts",
21+
"theme": "chakra-cli tokens ./src/@chakra-ui/theme.ts --strict-token-types --strict-component-types",
22+
"theme:watch": "chakra-cli tokens ./src/@chakra-ui/theme.ts --strict-token-types --strict-component-types --watch"
2023
},
2124
"dependencies": {
2225
"@chakra-ui/next-js": "^2.1.5",
@@ -56,6 +59,7 @@
5659
"yaml-loader": "^0.8.0"
5760
},
5861
"devDependencies": {
62+
"@chakra-ui/cli": "^2.4.1",
5963
"@chakra-ui/storybook-addon": "5.1.0",
6064
"@netlify/plugin-nextjs": "^4.41.3",
6165
"@storybook/addon-essentials": "7.6.6",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "ESNext",
44
"lib": ["dom", "dom.iterable", "esnext", "ES2021.String"],
55
"allowJs": true,
66
"skipLibCheck": true,

0 commit comments

Comments
 (0)