-
Notifications
You must be signed in to change notification settings - Fork 4
/
make.ts
43 lines (36 loc) · 740 Bytes
/
make.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/// <reference types="makets" />
make.on("bundle", "publish", async () =>
{
const outJsFile = "bundle/truth.js";
await make.typescript("source/tsconfig.json", {
compilerOptions: {
target: "es5",
stripInternal: true,
downlevelIteration: true,
outFile: "../" + outJsFile
}
});
make.constants(outJsFile, {
DEBUG: false
});
const returns = "Truth";
make.definitions(
returns,
"bundle/truth.d.ts");
make.augment(outJsFile, { returns });
make.minify(outJsFile);
});
make.on("publish", () =>
{
make.publish({
packageFileChanges: {
name: "truth-compiler",
main: "./truth.js",
types: "./truth.d.ts",
jest: null,
scripts: null,
devDependencies: null,
eslintIgnore: null
}
});
});