Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apla/brackets-jsx
https://github.com/apla/brackets-jsx
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/apla/brackets-jsx
- Owner: apla
- License: mit
- Created: 2015-12-29T14:38:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T09:45:22.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T14:53:55.008Z (3 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
React (.jsx) language mode for Brackets IDE
=========================================Actually this is just backported [jsx mode](https://github.com/codemirror/CodeMirror/blob/master/mode/jsx/jsx.js) for CodeMirror.
A word to the [marijnh](https://github.com/marijnh):
> Well, I suppose if three people are working on one, the need for this mode is pressing.
> And it looks like it's going to be less work to write one myself rather than to keep hinting
> and reviewing and pushing people in the right direction. You can find my version in b3f9487.
> Please test it and submit failing test cases. If this helps you in a financial way,
> a donation to cover the morning spent on this is much appreciated.How it works
------------This module removes original `xml` and `javascript` modes from brackets and replaces it with latest version from CodeMirror. After, `jsx` file extension is disassociated from `javascript` mode and new `jsx` mode is created.
How to update the extension
---------------------------I've created [script](build.sh) which fetch `xml`, `javascript` and `jsx` modes from CodeMirror.
Then script concatenate results, wraps result with `_header.js` and `_footer.js` and put result into brackets extension `main.js`.After everything is done, you'll need to change version in `package.json` and commit changes.
`npm run-script package` will produce archive ready to upload.