
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
@charcoal-ui/icons-cli
Advanced tools
Figma からアイコンの SVG をダウンロードし、GitHub に自動で更新の Pull Request を作成します。
@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/icon-files ) |
Figma 内のコンポーネントは以下の命名規則に従います( 例: 16/Add
Inline/Add
)。
/
を含む/
の前は数字あるいは Inline
yarn icons-cli svg:optimize --color "#000" --ignoreFile ./misc/icons-cli-denylist
SVG ファイルに SVGO による最適化をかけつつ、指定した色を currentColor
に置換します。
ignoreFile
では、処理から除外する SVG ファイルの一覧を記したファイルを指定することができます。fast-globのパターンを使用できます。
必要な環境変数は以下です。
名前 | 必須 | 説明 |
---|---|---|
OUTPUT_ROOT_DIR | yes | svg ディレクトリが存在するディレクトリです(例: packages/icon-files ) |
yarn icons-cli files:generate
必要な環境変数は以下です。
名前 | 必須 | 説明 |
---|---|---|
OUTPUT_ROOT_DIR | yes | svg ディレクトリが存在するディレクトリです(例: packages/icon-files ) |
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 170 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 0 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.