To install packages from this channel, just add it to Package Control. Enable the command palette and type 'Add Repository'. Then paste the following URL: https://gist.githubusercontent.com/fnando/56393d3900af55bf9e94/raw/repositories.json
Created
September 30, 2016 23:42
-
-
Save tinogomes/3bc913eee61083e68bda53cdbe32d0e9 to your computer and use it in GitHub Desktop.
Custom Package Control repositories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
ruby packages.rb | |
git add . | |
git ci -a --allow-empty-message -m '' | |
git push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "json" | |
packages = { | |
"Ansible" => {repo: "clifford-github/sublime-ansible", branch: "master"}, | |
"Autoprefixer" => {repo: "sindresorhus/sublime-autoprefixer", branch: "master"}, | |
"Better QUnit" => {repo: "fnando/better-qunit-for-sublime-text", branch: "master"}, | |
"Better Rails" => {repo: "fnando/better-rails-for-sublime-text", branch: "master"}, | |
"Better RSpec" => {repo: "fnando/better-rspec-for-sublime-text", branch: "master"}, | |
"Better Ruby" => {repo: "fnando/better-ruby-for-sublime-text", branch: "master"}, | |
"Expand Selection to Quotes" => {repo: "kek/sublime-expand-selection-to-quotes", branch: "master"}, | |
"Highlight" => {repo: "n1k0/SublimeHighlight/tree/python3", branch: "master"}, | |
"Switch Case" => {repo: "fnando/sublime-switch-case", branch: "master"}, | |
"Theme - El Capitan" => {repo: "iccir/El-Capitan-Theme", branch: "master"} | |
} | |
payload = { | |
schema_version: "2.0", | |
packages: [] | |
} | |
packages.each do |name, info| | |
repo = info[:repo].split("/")[0, 2].join("/") | |
payload[:packages] << { | |
name: name, | |
details: %[https://github.com/#{repo}], | |
releases: [ | |
{ | |
sublime_text: "*", | |
details: %[https://github.com/#{info[:repo]}], | |
branch: info[:branch] | |
} | |
] | |
} | |
end | |
File.open("repositories.json", "w") do |file| | |
file << JSON.pretty_generate(payload) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schema_version": "2.0", | |
"packages": [ | |
{ | |
"name": "Ansible", | |
"details": "https://github.com/clifford-github/sublime-ansible", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/clifford-github/sublime-ansible", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Autoprefixer", | |
"details": "https://github.com/sindresorhus/sublime-autoprefixer", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/sindresorhus/sublime-autoprefixer", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Better QUnit", | |
"details": "https://github.com/fnando/better-qunit-for-sublime-text", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/fnando/better-qunit-for-sublime-text", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Better Rails", | |
"details": "https://github.com/fnando/better-rails-for-sublime-text", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/fnando/better-rails-for-sublime-text", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Better RSpec", | |
"details": "https://github.com/fnando/better-rspec-for-sublime-text", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/fnando/better-rspec-for-sublime-text", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Better Ruby", | |
"details": "https://github.com/fnando/better-ruby-for-sublime-text", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/fnando/better-ruby-for-sublime-text", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Expand Selection to Quotes", | |
"details": "https://github.com/kek/sublime-expand-selection-to-quotes", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/kek/sublime-expand-selection-to-quotes", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Highlight", | |
"details": "https://github.com/n1k0/SublimeHighlight", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/n1k0/SublimeHighlight/tree/python3", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Switch Case", | |
"details": "https://github.com/fnando/sublime-switch-case", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/fnando/sublime-switch-case", | |
"branch": "master" | |
} | |
] | |
}, | |
{ | |
"name": "Theme - El Capitan", | |
"details": "https://github.com/iccir/El-Capitan-Theme", | |
"releases": [ | |
{ | |
"sublime_text": "*", | |
"details": "https://github.com/iccir/El-Capitan-Theme", | |
"branch": "master" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment