File: php-build/build-sample

Recommend this page to a friend!
  Classes of ikhsan  >  jQuery Calx  >  php-build/build-sample  >  Download  
File: php-build/build-sample
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: jQuery Calx
Calculate form input values based on formulas
Author: By
Last change: bump version to 2.2.8
Date: 8 months ago
Size: 691 bytes


Class file image Download
#!/usr/bin/env php
$unminifiedFile = '../sample/js/jquery-calx-sample-2.2.8.js';
$minifiedFile   = '../sample/js/jquery-calx-sample-2.2.8.min.js';

 * gathering all js source and build into one package

require 'calx-build-sample.php';
$jsBuild = ob_get_contents();

file_put_contents($unminifiedFile, $jsBuild);

 * start minifiying completed built

require 'vendor/autoload.php';

use Devize\ClosureCompiler\ClosureCompiler;

$compiler = new ClosureCompiler;