Giter Site home page Giter Site logo

jsdf / coffee-reactify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jnordberg/coffeeify

110.0 110.0 7.0 50 KB

DEPRECATED – browserify transform to compile coffeescript + react jsx (cjsx)

License: MIT License

JavaScript 84.30% CoffeeScript 10.56% Shell 5.14%

coffee-reactify's Introduction

jsdf

github pages

coffee-reactify's People

Contributors

bobthecow avatar friss avatar hongymagic avatar hurrymaplelad avatar jnordberg avatar jsdf avatar jtmalinowski avatar juanxo avatar thlorenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

coffee-reactify's Issues

`Error: EMFILE, open` when browserifying with coffee-reactify

Hey there,

I'm getting what appears to be a file handle error on the react package.json file when attempting to browserify using coffee-reactify to transform cjsx.

Here's what I'm doing in a fresh directory named coffee-reactify-test:

In package.json

{
  "name": "foo",
  "version": "1.0.0",
  "description": "Foo project.",
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "browserify": "^9.0.3",
    "coffee-reactify": "^3.0.0",
    "coffee-script": "^1.9.1",
    "react": "^0.13.1"
  },
  "dependencies": {}
}

Run npm install to install node_modules (Command line)

npm install

Create an app.coffee file which requires my cjsx widget

Widget = require './widget.cjsx'

Create a widget.cjsx file which defines my widget

# @cjsx React.DOM

React = require('react')

Widget = React.createClass
  render: ->
    <div>
      My Widget
    </div>

module.exports = Widget

Run browserify with coffee-reactify transformation (Command line)

browserify -t coffee-reactify --extension=".cjsx" --extension=".coffee" app.coffee > bundle.js

Error

Error: EMFILE, open '/Users/foobar/coffee-reactify-test/node_modules/react/package.json'

Any insight appreciated...

Working with React 0.13.x

Hi there!

This is maybe more a question than an issue, but :
I can make coffee-reactify work nicely with react 0.12.1 coffee-script, browserify, coffeeify, and coffee-react-transform.

However I can't get this set-up to work with react 0.13.x.
I can update my react code and it will compile the build properly but I then I get the following js error :
Error: Invariant Violation: React.render(): Invalid component element.

  • Would coffee-rectify and react 0.13.x be supposed to work together ?
  • Any clue where is that error coming from ?
  • Any clue where I need to look / where to start if I want to fork and update coffee-reactify to work with the latest version of react ?
  • Any alternative ?

Thank you!

with gulp

Can you please update the doc how can I use coffee-reactify with gulp?

Regards,
Alex

cjsx source is not available in the generated inline sourcemaps

browserify -t coffee-reactify rad-component.cjsx neat-ui.coffee --debug | exorcist bundle.js.map > bundle.js

Looking at the sourcemap generated bundle.js.map, sourcesContent does not include rad-component.cjsx, instead this contains coffeescript version of rad-component.cjsx

sourceMap

Hi! Can i use use coffee-reactify with sourcemap?
i can't find options for grunt browserify transform for sourcemap... and for command line too

It is not working if using stdin as source

browserify -t coffee-reactify --extension=".cjsx" --extension=".coffee" -
browserify -t coffee-reactify -

I get this error for above commands. It probaby wants .coffee or .cjsx file but the generated file by browserify is _stream_0.js for stdin. Can i tell coffee-reactify to also parse .js files?

/home/cocomo/dev/golang/src/bitbucket.org/cocomo/publicwall/_stream_0.js:1
fnnn = -> alert 'hello'
        ^
ParseError: Unexpected token

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.