Icontem

File: php-build/build

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

Contents

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

/**
 * gathering all js source and build into one package
 */

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

file_put_contents($unminifiedFile, $jsBuild);

/**
 * start minifiying completed built
 */

require 'vendor/autoload.php';

use Devize\ClosureCompiler\ClosureCompiler;

$compiler = new ClosureCompiler;
$compiler->addSourceFile($unminifiedFile);
$compiler->setTargetFile($minifiedFile);

$compiler->compile();
?>