-
Notifications
You must be signed in to change notification settings - Fork 11
refactor(sync-figma): migrate scripts to TypeScript #714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
9a58984
400048b
c6fda46
c6232ca
0b7716c
17e6399
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,15 +5,24 @@ | |
| "description": "Internal CLI scripts for syncing assets from Figma", | ||
| "type": "module", | ||
| "scripts": { | ||
| "format": "prettier --write \"./src/**/*.{js,mjs,md}\"", | ||
| "format:check": "prettier --check \"./src/**/*.{js,mjs,md}\"", | ||
| "notify:slack": "node ./commands/notify-slack.mjs", | ||
| "sync-icons:basic": "TYPE=basic node --env-file-if-exists=.env ./commands/sync-icons.mjs", | ||
| "sync-icons:symbol": "TYPE=symbol node --env-file-if-exists=.env ./commands/sync-icons.mjs" | ||
| "format": "prettier --write \"./{commands,src}/**/*.{ts,md}\"", | ||
| "format:check": "prettier --check \"./{commands,src}/**/*.{ts,md}\"", | ||
| "notify:slack": "tsx ./commands/notify-slack.ts", | ||
| "sync-icons:basic": "TYPE=basic tsx --env-file-if-exists=.env ./commands/sync-icons.ts", | ||
| "sync-icons:symbol": "TYPE=symbol tsx --env-file-if-exists=.env ./commands/sync-icons.ts", | ||
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "lodash-es": "^4.18.1", | ||
| "p-limit": "^6.2.0", | ||
| "picocolors": "^1.1.1" | ||
| "picocolors": "^1.1.1", | ||
| "prettier": "^3.9.6" | ||
| }, | ||
| "devDependencies": { | ||
| "@repo/typescript-config": "workspace:*", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. eslint도 추가해서 문법 검사를 같이 해주는 게 어떨까요??
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오 누락되었었네요! eslint 추가했습니다.~ |
||
| "@types/lodash-es": "^4.17.12", | ||
| "@types/node": "^22.20.1", | ||
| "tsx": "^4.23.12", | ||
| "typescript": "catalog:" | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier는 루트에서 공용으로 관리하기로 했던 것으로 기억합니다! 확인 한 번 부탁드려요.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier script만 제거했습니다.!
icon 추출하면서 file write 작업 전 prettier를 돌려서 파일 변경 사항을 확인하고 있어서 런타임에 prettier를 돌리는 코드가 있어서 의존성은 남겨두었습니다.