'', // keeps debug quiet 'baseUri' => '../js', 'baseFolder' => array('./js/vendor', './js/vendor/codemirror'), 'assetFolder' => '..', 'debugMode' => true, // forces to always show 'autoRender' => false )); // having to hack the source path to get it work properly. // $sprocket->filePath = '.' . $sprocket->filePath); // concat complete echo "Rendering...\n"; $js = $sprocket->render(true); // write concat to js dir echo "Writing concatenated file...\n"; file_put_contents(SPROCKETIZED, $js); // google compile in to jsbin.VERSION.js echo "Google compiler compressing...\n"; system('java -jar "./lib/compiler.jar" --js="' . SPROCKETIZED . '" --js_output_file="' . PRODUCTION . '" --warning_level=QUIET'); unlink(SPROCKETIZED); echo "Compressed: " . PRODUCTION . "\nFile size: " . filesize(PRODUCTION) . " bytes.\n"; ?>