github pages
jsdf / coffee-reactify Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jnordberg/coffeeify
DEPRECATED – browserify transform to compile coffeescript + react jsx (cjsx)
License: MIT License
This project forked from jnordberg/coffeeify
DEPRECATED – browserify transform to compile coffeescript + react jsx (cjsx)
License: MIT License
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...
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.
Thank you!
Can you please update the doc how can I use coffee-reactify
with gulp?
Regards,
Alex
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
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
Hi, can you please update the npm package version? thanks a lot
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.