Skip to content

Commit

Permalink
v1.4.3
Browse files Browse the repository at this point in the history
Ignores and builder modules
  • Loading branch information
Jeongho Nam committed Mar 15, 2017
1 parent 7069318 commit 0cc7bc5
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4,331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# CUSTOM IGNORE
# ======================================================
handbook/
node_modules/
lib/

*.bat
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# ======================================================
.git\
.vscode\
node_modules\

build\
design\
Expand Down
2 changes: 1 addition & 1 deletion build/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ if (fs.existsSync(RELEASE_DIR))
else
process.execSync("rm -rf " + RELEASE_DIR);

var command = "typedoc --tsconfig ../src/std/tsconfig.json --target ES5 --mode file --out " + RELEASE_DIR;
var command = "typedoc ../lib/tstl.d.ts --target ES5 --includeDeclarations --mode file --out " + RELEASE_DIR;
process.execSync(command);
19 changes: 11 additions & 8 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ minify();

function compile()
{
const STD_FILE = __dirname + "/../src/std/tsconfig.json";
const TEST_FILE = __dirname + "/../src/test/tsconfig.json";

// KEEP COMMENTS ONLY IN THE DECLARATION
process.execSync("tsc -p ../src/std/tsconfig.json");
process.execSync("tsc -p ../src/std/tsconfig.json --removeComments --declaration false");
process.execSync("tsc -p " + STD_FILE);
process.execSync("tsc -p " + STD_FILE + " --removeComments --declaration false");

// TESTING UNIT
process.execSync("tsc -p ../src/test/tsconfig.json");
process.execSync("tsc -p " + TEST_FILE);
}

function attach_header()
{
const TITLE_FILE = "../src/std/typings/tstl/tstl.d.ts";
const HEADER_FILE = "../lib/tstl.d.ts";
const TITLE_FILE = __dirname + "/../src/std/typings/tstl/tstl.d.ts";
const HEADER_FILE = __dirname + "/../lib/tstl.d.ts";

var text = fs.readFileSync(TITLE_FILE, "utf8");
text += fs.readFileSync(HEADER_FILE, "utf8");
Expand All @@ -30,7 +33,7 @@ function attach_header()

function remove_dynamics()
{
const JS_FILE = "../lib/tstl.js";
const JS_FILE = __dirname + "/../lib/tstl.js";

var text = fs.readFileSync(JS_FILE, "utf8");
if (text.indexOf('["') == -1)
Expand Down Expand Up @@ -62,10 +65,10 @@ function remove_dynamics()

function test()
{
process.execSync("node ../src/test/test");
process.execSync("node " + __dirname + "/../src/test/test");
}

function minify()
{
process.execSync("minify ../lib/tstl.js");
process.execSync("minify " + __dirname + "/../lib/tstl.js");
}
16 changes: 0 additions & 16 deletions node_modules/@types/node/README.md

This file was deleted.

Loading

0 comments on commit 0cc7bc5

Please sign in to comment.