-
Notifications
You must be signed in to change notification settings - Fork 52
@channel.io/bezier-codemod npm package #1382
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
Conversation
🦋 Changeset detectedLatest commit: cdc1367 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…ns transformer (wip)
fff66e0
to
36d8bae
Compare
2544393
to
fcb488f
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #1382 +/- ##
=======================================
Coverage 84.23% 84.23%
=======================================
Files 309 309
Lines 3913 3913
Branches 804 804
=======================================
Hits 3296 3296
Misses 546 546
Partials 71 71 ☔ View full report in Codecov by Sentry. |
@@ -0,0 +1,19 @@ | |||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | |||
module.exports = { |
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.
@@ -0,0 +1,27 @@ | |||
#!/usr/bin/env node |
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.
This line should be added to all files that will be executed through the command line. It's called a Shebang, and basically, it specifies what interpreter the file should be passed to for execution in Unix-like systems.
|
||
import App from './App.js' | ||
|
||
meow( |
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.
- https://github.com/sindresorhus/meow
--help
커맨드 사용 시 아래 텍스트가 출력됩니다.
import React from 'react' | ||
import { AllIcon, Button, CheckIcon as CheckIconSource, Icon, type IconName, IconSize } from '@channel.io/bezier-react' | ||
|
||
import { Foo } from './foo' |
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.
실제로는 사용되지 않는 import도 있으나, 실제 채널 어플리케이션과 같은 상황을 구현하기 위해서 추가했습니다.
Self Checklist
CODEOWNERS
file.Related Issue
Summary
코드 마이그레이션 자동화를 위한
@channel.io/bezier-codemod
패키지를 구현합니다.Details
@channel.io/bezier-codemod
package is Codemod transformations to help upgrade app using Bezier design system.Usage
In your terminal, navigate into your project's folder, then run:
Transformations
Icons to Bezier icons
icons-to-bezier-icons
Update the import syntax for the icon source moved from
@channel.io/bezier-react
to@channel.io/bezier-icons
.For example:
Transforms into:
Breaking change or not (Yes/No)
No
References
아래 레퍼런스를 참고하여
npx
로 실행 가능한 패키지를 구현했습니다.아래 레퍼런스에서 패키지 구성 방식을 참고했습니다.
코드 변환은
ts-morph
를 학습하여 구현했습니다.UI는
ink
,ink-ui
를 학습하여 구현했습니다. 패키지 구성엔create-ink-app
도 함께 사용하여 구현했습니다.