Skip to content

Commit

Permalink
v0.6.4: Fix Concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Jan 18, 2019
1 parent ef16e94 commit 3296993
Show file tree
Hide file tree
Showing 10 changed files with 133 additions and 119 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ __"Animate" (2000 Bouncing Balls)__
<tr>
<td>1</td>
<td>FAT</td>
<td>0.6.3</td>
<td>0.6.4</td>
<td>1.9 kb</td>
<td>0.85 Mb</td>
<td>0.15 Mb</td>
Expand Down Expand Up @@ -428,7 +428,7 @@ __"Transforms" (2000 Bouncing Balls)__
<tr>
<td>1</td>
<td>FAT</td>
<td>0.6.3</td>
<td>0.6.4</td>
<td><b>91960</b></td>
<td><b>46.1</b></td>
</tr>
Expand Down Expand Up @@ -528,7 +528,7 @@ __"Colors" (2000 Flashing Balls)__
<tr>
<td>1</td>
<td>FAT</td>
<td>0.6.3</td>
<td>0.6.4</td>
<td><b>113950</b></td>
<td><b>57</b></td>
</tr>
Expand Down
13 changes: 10 additions & 3 deletions compile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
var child_process = require('child_process');
var fs = require('fs');
var child_process = require("child_process");
var fs = require("fs");
var { version } = require("./package.json");

console.log("Start build .....");

fs.existsSync("log") || fs.mkdirSync("log");
fs.existsSync("dist") || fs.mkdirSync("dist");

var flag_str = "";

Expand Down Expand Up @@ -72,7 +74,12 @@ var parameter = (function(opt){

exec("java -jar node_modules/google-closure-compiler-java/compiler.jar" + parameter + " --define='DEBUG=" + (options['DEBUG'] || 'false') + "' --define='SUPPORT_EASING=" + (options['SUPPORT_EASING'] || 'false') + "' --define='SUPPORT_COLOR=" + (options['SUPPORT_COLOR'] || 'false') + "'" + flag_str + " --js='fat.js' --js_output_file='fat." + (options['RELEASE'] || 'custom') + ".js' && exit 0", function(){

console.log("Build Complete: fat." + (options['RELEASE'] || 'custom') + ".js");
var filename = "fat." + (options['RELEASE'] || 'custom') + ".js";

console.log("Build Complete: " + filename);

fs.existsSync("dist/" + version) || fs.mkdirSync("dist/" + version);
fs.copyFileSync(filename, "dist/" + version + "/" + filename)
});

function exec(prompt, callback){
Expand Down
22 changes: 11 additions & 11 deletions fat.compact.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3296993

Please sign in to comment.