Skip to content

Commit 0cc7bc5

Browse files
author
Jeongho Nam
committed
v1.4.3
Ignores and builder modules
1 parent 7069318 commit 0cc7bc5

File tree

7 files changed

+14
-4331
lines changed

7 files changed

+14
-4331
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# CUSTOM IGNORE
33
# ======================================================
44
handbook/
5+
node_modules/
56
lib/
67

78
*.bat

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# ======================================================
44
.git\
55
.vscode\
6+
node_modules\
67

78
build\
89
design\

build/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ if (fs.existsSync(RELEASE_DIR))
1515
else
1616
process.execSync("rm -rf " + RELEASE_DIR);
1717

18-
var command = "typedoc --tsconfig ../src/std/tsconfig.json --target ES5 --mode file --out " + RELEASE_DIR;
18+
var command = "typedoc ../lib/tstl.d.ts --target ES5 --includeDeclarations --mode file --out " + RELEASE_DIR;
1919
process.execSync(command);

build/build.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@ minify();
99

1010
function compile()
1111
{
12+
const STD_FILE = __dirname + "/../src/std/tsconfig.json";
13+
const TEST_FILE = __dirname + "/../src/test/tsconfig.json";
14+
1215
// KEEP COMMENTS ONLY IN THE DECLARATION
13-
process.execSync("tsc -p ../src/std/tsconfig.json");
14-
process.execSync("tsc -p ../src/std/tsconfig.json --removeComments --declaration false");
16+
process.execSync("tsc -p " + STD_FILE);
17+
process.execSync("tsc -p " + STD_FILE + " --removeComments --declaration false");
1518

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

2023
function attach_header()
2124
{
22-
const TITLE_FILE = "../src/std/typings/tstl/tstl.d.ts";
23-
const HEADER_FILE = "../lib/tstl.d.ts";
25+
const TITLE_FILE = __dirname + "/../src/std/typings/tstl/tstl.d.ts";
26+
const HEADER_FILE = __dirname + "/../lib/tstl.d.ts";
2427

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

3134
function remove_dynamics()
3235
{
33-
const JS_FILE = "../lib/tstl.js";
36+
const JS_FILE = __dirname + "/../lib/tstl.js";
3437

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

6366
function test()
6467
{
65-
process.execSync("node ../src/test/test");
68+
process.execSync("node " + __dirname + "/../src/test/test");
6669
}
6770

6871
function minify()
6972
{
70-
process.execSync("minify ../lib/tstl.js");
73+
process.execSync("minify " + __dirname + "/../lib/tstl.js");
7174
}

node_modules/@types/node/README.md

-16
This file was deleted.

0 commit comments

Comments
 (0)