Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 314 Bytes
#!/usr/bin/env ruby
require 'json'
`apm-beta clean`
plugins = `apm-beta list --installed --bare`
packages = plugins.split("\n").map { |p| p.split('@').first }.sort_by(&:downcase)
path = File.expand_path '../.atom/packages.cson', __dir__
File.write path, "packages: #{JSON.pretty_generate(packages).delete(',')}"
You can’t perform that action at this time.