A django pipeline compiler to transform React in Coffeescript and Browserify
- Browserify
- coffee-reactify
pip install django-pipeline-cjsx
PIPELINE_COMPILERS = (
'pipeline_cjsx.compiler.CJSXCompiler',
)
PIPELINE_JS = {
'app': {
'source_filenames': (
'coffee/app.cjsx',
),
'output_filename': 'app.min.js',
}
}
PIPELINE_BROWSERIFY_BINARY = 'node ' + 'PATH_TO/node_modules/browserify/bin/cmd.js')
If you get an EMFILE
error. ie: Error: EMFILE, open 'FILENAME'
Add the following line to your .bash_profile
# Work around bug in browserify
ulimit -n 2560