-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
36 lines (25 loc) · 929 Bytes
/
build.js
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
// WARNING:
// Dynamically building module.exports looses all code hints
// For this reason, I'm opting not to do this, but to leave it here so that
// the export object can be copied and pasted from console to this file
// when making changes
// NOTE: Also checks for duplicate functions being added (so do use it)
// WARNING:
// Running this script will generate aftc-node-tools.js
// Usage:
// node build
const { log, cls } = require("./src/debug")
const { promiseWriteFile } = require("./src/io")
const { getExports } = require("./build/getExports");
cls();
let data = getExports()
// log(data);
log("Building aftc-node-tools".green);
promiseWriteFile("./aftc-node-tools.js", data)
.then(() => {
log("aftc-node-tools.js generated".green);
setTimeout(()=>{
require("./build-readme")
},1000)
})
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -