Add install for atom

This commit is contained in:
Jake Howard 2016-02-07 16:32:59 +00:00
parent 844334b9c1
commit d8c05814df
3 changed files with 36 additions and 23 deletions

25
atom/packages.json Normal file
View file

@ -0,0 +1,25 @@
[
"sublime-style-column-selection",
"zen",
"activate-power-mode",
"atom-alignment",
"atom-html-preview",
"autoclose-html",
"change-case",
"file-icons",
"glowing-cursor",
"highlight-selected",
"keybinding-cheatsheet",
"language-babel",
"linter",
"linter-eslint",
"merge-conflicts",
"minimap",
"minimap-highlight-selected",
"multi-cursor",
"open-recent",
"react",
"script",
"trailint-spaces",
"monokai"
]

View file

@ -1,23 +0,0 @@
- sublime-style-column-selection
- zen
- activate-power-mode
- atom-alignment
- atom-html-preview
- autoclose-html
- change-case
- file-icons
- glowing-cursor
- highlight-selected
- keybinding-cheatsheet
- language-babel
- linter
- linter-eslint
- merge-conflicts
- minimap
- minimap-highlight-selected
- multi-cursor
- open-recent
- react
- script
- trailint-spaces
- monokai

11
wscript
View file

@ -30,6 +30,17 @@ def apt_install_extras(ctx):
for package in packages:
print("apt-get install {} -y".format(package))
def install_atom(ctx):
FILENAME = "atom.deb"
os.system('wget https://atom.io/download/deb -O {}'.format(FILENAME))
os.system('dpkg -i {}'.format(FILENAME))
os.remove(FILENAME)
def install_atom_packages(ctx):
packages = json.load(open(DIR + '/atom/packages.json'))
packages = " ".join(packages)
os.system("apm install {}".format(packages))
if __name__ == '__main__':
print("Please run this file using waf, not directly.")