felipecrv / jsx-requirejs-plugin

A RequireJS plugin for loading and compiling (with r.js) JavaScript files containing JSX.
MIT License
270 stars 44 forks source link

save js files in build directory #36

Closed clsx524 closed 9 years ago

clsx524 commented 9 years ago

Hi,

This plugin works great when I used it to write reactjs with requirejs for my project, but I find it hard to write unit tests using karma. Is there a way to write converted js files to build directories so that I can directly run karma tests on them?

Thanks

felipecrv commented 9 years ago

The r.js build doesn't work for karma?

__ Felipe O. Carvalho http://felipe.rs On Feb 28, 2015 3:17 AM, "clsx524" notifications@github.com wrote:

Hi,

This plugin works great when I used it to write reactjs with requirejs for my project, but I find it hard to write unit tests using karma. Is there a way to write converted js files to build directories so that I can directly run karma tests on them?

Thanks

— Reply to this email directly or view it on GitHub https://github.com/philix/jsx-requirejs-plugin/issues/36.

clsx524 commented 9 years ago

I don't know how karma could work with this plugin. After some digging, I successfully integrated this plugin into grunt-contrib-jasmine and grunt-template-jasmine-requirejs.