Using react-tools from the terminal, I can run the following script to compile my JSX into JavaScript:
jsx ./assets/src/jsx ./assets/build/js
However, when I try putting the same line of code into a CodeKit hook, nothing happens. Replacing it with mkdir ./dummy
works as expected and verifies that the working directory is correct. Providing absolute paths to JSX (/usr/local/bin/jsx
) or to the assets doesn't seem to make a difference. Obviously since mkdir
works, I know that the hook is being triggered properly.
Just to see if it would work, I have also tried minifying a dummy JavaScript file, which also had no effect:
uglifyjs ./assets/src/jsx/dummy.js
I am absolutely stumped. Has anyone successfully integrated JSX and CodeKit?