ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

React IDE

by turadg ST2/ST3

React IDE utils for Sublime (ST3)

Labels react, jest, lazyspec, ide

Details

Installs

  • Total 56K
  • Win 24K
  • OS X 22K
  • Linux 10K
Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 26 39 21 33 44 46 40 48 51 28 26 29 46 30 29 37 33 33 38 46 50 50 36 21 34 40 57 39 41 41 21 34 43 48 36 41 40 26 20 40 34 41 41 46 23 26
OS X 19 38 19 17 28 32 36 44 34 20 31 28 33 25 29 28 24 29 36 33 41 37 36 18 24 41 36 28 34 40 15 16 31 36 35 42 35 11 22 30 39 40 32 38 28 16
Linux 6 18 10 11 14 14 29 21 13 9 12 11 16 12 17 11 15 16 23 30 16 22 23 19 12 17 22 16 16 15 16 19 14 19 21 19 16 15 16 15 19 19 29 20 13 11

Readme

Source
raw.​githubusercontent.​com

React IDE for Sublime

This plugin contains some commands to assist in developing React components.

  • Switch between component and test
  • Switch between component and stylesheet
  • Make import for current file

If the test isn't defined yet, the command will attempt to run LazySpec to autogenerate one.

Related

If you're using Atom, Nuclide is way better. I built this because I still prefer Sublime.

If you want snippets, try React Development Snippets.

Caveats

It makes some huge assumptions about how your files are organized. PRs welcomed to relax these.

It doesn't yet support more than one project.

Required configuration

Open Preferences > Package Settings > React IDE > Settings - User and make it look like this:

{
  "src": "/Users/<username>/path/to/your/project/"
}

(Note the trailing slash.)

Installation

Using Package Control

WIP: https://github.com/wbond/package_control_channel/pull/6185

Without Package Control

Navigate to your Sublime Text packages folder and git clone this project.

MacOS

“/Users/{user}/Library/Application Support/Sublime Text {2|3}/Packages”

Windows

“C:\Users{user}\AppData\Roaming\Sublime Text {2|3}\Packages”

git clone https://github.com/turadg/sublime-react-ide.git

Sublime should pick up the changes automatically, without having to restart.