Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@charcoal-ui/icons-cli
Advanced tools
@charcoal-ui/icons-cli
Figma からアイコンの SVG をダウンロードし、GitHub に自動で更新の Pull Request を作成します。
GitLab にも対応しています。
npm
npm i --save-dev @charcoal-ui/icons-cli
yarn
yarn add -D @charcoal-ui/icons-cli
yarn icons-cli figma:export
必要な環境変数は以下です。
名前 | 必須 | 説明 |
---|---|---|
FIGMA_FILE_URL | yes | Figma の URL です。node-id は含んでいても良いです |
FIGMA_TOKEN | yes | Figma API のアクセストークンです |
OUTPUT_ROOT_DIR | yes | svg をダウンロードするディレクトリ( 例: packages/icons ) |
Figma 内のコンポーネントは以下の命名規則に従います( 例: 16/Add
Inline/Add
)。
/
を含む/
の前は数字あるいは Inline
yarn icons-cli svg:optimize --file path/to/file --color "#000"
ダウンロードしたファイルに SVGO による最適化をかけつつ、指定した色を currentColor
に置換します。
yarn icons-cli github:pr
必要な環境変数は以下です。
名前 | 必須 | 説明 |
---|---|---|
GITHUB_ACCESS_TOKEN | yes | GitHub のアクセストークンです |
GITHUB_REPO_OWNER | no | リポジトリの owner です( 例: pixiv ) |
GITHUB_REPO_NAME | no | リポジトリ名です( 例: charcoal ) |
GITHUB_DEFAULT_BRANCH | no | リポジトリのデフォルトブランチです( 例: main ) |
yarn icons-cli gitlab:mr
必要な環境変数は以下です。
名前 | 必須 | 説明 |
---|---|---|
GITLAB_PROJECT_ID | yes | GitLab のプロジェクト ID(数値)です |
GITLAB_ACCESS_TOKEN | yes | GitLab のアクセストークンです |
GITLAB_HOST | no | GitLab のホスト名(セルフホスティング版の場合は自身のサーバーのホスト名)です |
GITLAB_DEFAULT_BRANCH | no | リポジトリのデフォルトブランチです( 例: main ) |
FAQs
Figma からアイコンの SVG をダウンロードし、GitHub に自動で更新の Pull Request を作成します。
The npm package @charcoal-ui/icons-cli receives a total of 236 weekly downloads. As such, @charcoal-ui/icons-cli popularity was classified as not popular.
We found that @charcoal-ui/icons-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.