Skip to content

Instantly share code, notes, and snippets.

@hendra
Forked from tommydunn/gist:6f885cc3efbd505e327a
Last active December 13, 2019 15:00
Show Gist options
  • Save hendra/d32715cfa031e3a3c9a1afbf130cf19d to your computer and use it in GitHub Desktop.
Save hendra/d32715cfa031e3a3c9a1afbf130cf19d to your computer and use it in GitHub Desktop.
Setting up Atom for Rails development
brew install caskroom/cask/brew-cask
brew cask install atom
apm install linter # Base linter
apm install linter-ruby
apm install linter-scss-lint
apm install linter-coffeelint
apm install linter-rubocop
apm install linter-haml
# nicer code
apm install atom-beautify
apm install atom-css-comb
# testing
apm install ruby-test
apm install cucumber
apm install cucumber-step # open the step definition
# language highlighting
apm install language-rspec
apm install language-haml
apm install language-docker
# just better
apm install project-manager
# other
apm install minimap # Shows you a tiny preview of the file on the right
apm install Sublime-Style-Column-Selection # Allows you to select columns
apm install toggle-quotes
apm install trailing-spaces
# for extra credit
apm install color-picker
apm install git-blame
gem install scss-lint
gem install rubocop
gem install coffee-script
npm install -g coffeelint
rbenv rehash # if you use rbenv
# Edit your Atom config (~/.atom/config.cson).
# Needed to make ruby-test and various linters find the correct executables. Check what paths you need.
"ruby-test":
specFramework: "rspec"
rspecAllCommand: "bundle exec rspec --tty spec"
rspecFileCommand: "bundle exec rspec --tty {relative_path}"
rspecSingleCommand: "bundle exec rspec --tty {relative_path}:{line_number}"
cucumberAllCommand: "bundle exec cucumber --color features"
cucumberFileCommand: "bundle exec cucumber --color {relative_path}"
cucumberSingleCommand: "bundle exec cucumber --color {relative_path}:{line_number}"
"linter-rubocop":
command: "/Users/[yourname]/.rbenv/shims/rubocop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment