LoginSignup
12
12

More than 5 years have passed since last update.

インストール済みAtomパッケージとapmのスターをdiffして同期するツール「Atom Package Diff」

Last updated at Posted at 2015-12-15

AtomにインストールしているパッケージとAtom.io上のスターを同期するCLIツール Atom Package Diff を公開しました。

導入

npm経由でインストールします。

$ npm install -g atom-package-diff

インストール済みパッケージとスターのdiff

apd statusコマンドでインストール済みパッケージとスターしているパッケージのdiffが見れます。

$ apd status
36 packages installed
30 packages starred

# Packages only in apm
project-manager react

# Packages only in local machine
Sublime-Style-Column-Selection atom-fuzzy-grep douglas language-babel language-ini language-swift term3 travis-ci-status

同期

apd sync --localを実行すると、インストール済みパッケージを全部apm starし、それ以外をapm unstarします。

apd sync --remoteでその逆の処理を行います。つまり、スターされているパッケージを全部インストールし、それ以外をアンインストールします。

$ apd sync --local
Unstaring ... project-manager
Unstaring ... react
Staring ... Sublime-Style-Column-Selection
Staring ... atom-fuzzy-grep
Staring ... douglas
Staring ... language-babel
Staring ... language-ini
Staring ... language-swift
Staring ... term3
Staring ... travis-ci-status

ソースコードは Github で公開しています。

12
12
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12