Compile tool for Rhapscript
npm install -g rhapsodify
- Compile:
rhapsodify \rhapscript_file_path
rhapsodify \rhapscript_file_path \dist_path
Use --log
or --l
to compile with log
- Get, set Rhapscript path:
rhapsodify load-rhapscript-from
rhapsodify load-rhapscript-from \rhapscript_path
Use rhapsodify load-rhapscript-from npm
to load RhapScript from npm
var fs = require('fs');
fs.createReadStream(\rhapFilePath)
.pipe(rhapsodify.Rhapsodify(\rhapFilePath))
.pipe(fs.createWriteStream(\compiledJSFilePath));
The compiled js files can then be bundled with browserify like any normal javascript files