Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cjsx-react-brunch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjsx-react-brunch

Adds CJSX support to brunch.

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Coffeescript JSX transform for brunch

coffee-react-brunch

Adds React support to brunch by automatically compiling *.cjsx files.

Optional

You can configure react-brunch to automatically insert a react header (# @cjsx React.DOM) into all *.cjsx files. Disabled by default.

Example config.coffee:

exports.config =
  plugins:
    react:
      autoIncludeCommentBlock: yes

  # Usual brunch config stuf...
  files:
    javascripts:
      joinTo: 'app.js'
    stylesheets:
      joinTo: 'app.css'
    templates:
      joinTo: 'app.js'

Usage

Install the plugin via npm with npm install --save coffee-react-brunch.

Or, do manual install:

  • Add "coffee-react-brunch": "x.y.z" to package.json of your brunch app. Pick a plugin version that corresponds to your minor (y) brunch version.
  • If you want to use git version of plugin, add "coffee-react-brunch": "git+ssh://git@github.com:brunch/coffee-react-brunch.git".

Credit

This is based on Paul Miller's javascript-brunch project and Matt McCray's react-brunch and adjusted to compile React (.cjsx) files.

Keywords

FAQs

Package last updated on 06 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc