[Atom] apm (Atom Package Manager) でパッケージを管理する
- 2015 2/8
- カテゴリー : Text Editor
- apm . atom
- コメントを書く
Atom エディタにインストールするパッケージを管理するなら atom/apm (Atom Package Manager) の star コマンドが便利なので、使い方をご紹介します。
API トークンの設定
初回に apm コマンドを使うときだけ、ブラウザで https://atom.io/account のページが開くので、記載されている API token をターミナルに入力して設定する必要があります。
% apm stars Welcome to Atom! Before you can publish packages, you'll need an API token. Visit your account page on Atom.io https://atom.io/account, copy the token and paste it below when prompted. Press [Enter] to open your account page on Atom.io. Token> _x9Ra8h3koIPN9efvjYHUcx Saving token to Keychain ✓ Packages starred by you (0) └── (empty) Use `apm stars --install` to install them all or visit http://atom.io/packages to read more about them. |
パッケージにスターを付ける
下記のように apm star
% apm star atom-beautifier ⭐ Starring atom-beautifier ✓ % apm star atom-jshint ⭐ Starring atom-jshint ✓ |
スターを付けたパッケージを一覧表示する
apm stars もしくは apm starred コマンドで apm star したパッケージのリストを出力させることができます。
% apm stars Packages starred by you (2) ├── ⭐ atom-beautifier Beautifier for Atom (5133 downloads, 8 stars) └── ⭐ atom-jshint Validates your JS against JSHint as you type. The original and most used. (15429 downloads, 35 stars) Use `apm stars --install` to install them all or visit http://atom.io/packages to read more about them. |
スターを付けたパッケージをまとめてインストール
apm stars –install コマンドで apm stars で一覧表示されたパッケージをまとめてインストールすることができます。
apm stars --install Installing atom-beautifier to /Users/your_user/.atom/packages ✓ Installing atom-jshint to /Users/your_user/.atom/packages ✓ |
以上です。