Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongho Nam committed Sep 23, 2016
1 parent 6ac458d commit b6a4b36
Show file tree
Hide file tree
Showing 16 changed files with 15,181 additions and 14,574 deletions.
10 changes: 6 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
# TYPESCRIPT
# ======================================================
.git
api
design
ts
handbook
api\
design\
ts\
handbook\

*.bat
*.log
*.*ignore

*.d.ts
build.js
33 changes: 14 additions & 19 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
const fs = require("fs");
const exec = require('child_process').exec;
const process = require('child_process');
const minifier = require('minifier'); // "npm install -g minifier"

compile();
attach_header();
minify();

function compile()
{
exec
(
// DO COMPILE
"tsc -p ts/tsconfig.json",
(err, stdout, stderr) =>
{
if (err || stderr)
{
// ERROR ON COMPILE
console.log(err);
return;
}

// POST-PROCESS
attach_header();
remove_dynamics();
}
);
try
{
process.execSync("tsc -p ts/tsconfig.json");
}
catch (exception) {}
}

function attach_header()
Expand Down Expand Up @@ -54,3 +44,8 @@ function remove_dynamics()

fs.writeFileSync(JS_FILE, text, "utf8");
}

function minify()
{
minifier.minify("lib/typescript-stl.js");
}
13,256 changes: 6,762 additions & 6,494 deletions lib/typescript-stl.d.ts

Large diffs are not rendered by default.

Loading

0 comments on commit b6a4b36

Please sign in to comment.