mello_yello
mello_yello

Reputation: 61

How to compile jsx within Sublime?

I'm trying to make the transition to React and I'm setting up new tools. I think I like Sublime Text 3. I have it running now with the babel and eslint packages. Now I'm not sure when to compile my jsx into separate js files.

I have used the babel-cli watch option, but something that automatically happens within Sublime would be ideal...not another process a developer has to manually startup. Does the sublime-babel package somehow do this? I didn't see any options or configurations for output directories, etc.

Upvotes: 0

Views: 561

Answers (1)

Marcel Mandatory
Marcel Mandatory

Reputation: 1445

You have many options.

You can run grunt, gulp, webpack to do so.

Personally I use webpack I have my scripts in package.json and run them by writhing following in console.

npm run webpack
npm run watch
npm run test

Do not use solution which is only for one IDE or Text editor and solution that are not sharable between team members.

Upvotes: -1

Related Questions