Skip to content

Commit 787bd87

Browse files
authored
Merge pull request #12034 from TylerAPfledderer/build/chakra-cli
build: add Chakra CLI
2 parents 7168212 + ba4f3d1 commit 787bd87

File tree

3 files changed

+216
-4
lines changed

3 files changed

+216
-4
lines changed

package.json

Lines changed: 6 additions & 2 deletions
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",
@@ -17,8 +18,10 @@
1718
"chromatic": "chromatic --project-token fee8e66c9916",
1819
"crowdin-clean": "rm -rf .crowdin && mkdir .crowdin",
1920
"crowdin-import": "ts-node src/scripts/crowdin-import.ts",
21+
"markdown-checker": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/markdownChecker.ts",
2022
"events-import": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/events-import.ts",
21-
"markdown-checker": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/markdownChecker.ts"
23+
"theme": "chakra-cli tokens ./src/@chakra-ui/theme.ts",
24+
"theme:watch": "chakra-cli tokens ./src/@chakra-ui/theme.ts --watch"
2225
},
2326
"dependencies": {
2427
"@chakra-ui/react": "^2.8.0",
@@ -57,6 +60,7 @@
5760
"yaml-loader": "^0.8.0"
5861
},
5962
"devDependencies": {
63+
"@chakra-ui/cli": "^2.4.1",
6064
"@chakra-ui/storybook-addon": "5.1.0",
6165
"@netlify/plugin-nextjs": "^4.41.3",
6266
"@storybook/addon-essentials": "7.6.6",
@@ -92,4 +96,4 @@
9296
"resolutions": {
9397
"jackspeak": "2.1.1"
9498
}
95-
}
99+
}

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": "ES6",
44
"lib": ["dom", "dom.iterable", "esnext", "ES2021.String"],
55
"allowJs": true,
66
"skipLibCheck": true,

0 commit comments

Comments
 (0)