-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjakefile.js
47 lines (35 loc) · 1.1 KB
/
jakefile.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
37
38
39
40
41
42
43
44
45
46
47
'use strict';
//require('dotenv').config();
const { task, desc, Task } = require("jake");
const { logger } = require("./jakefile.d/utils.cjs");
desc("Show help about this project");
task("default", ["help"], function() {});
desc("Show help about this project");
task("help", function () {
const tasks = [];
for (let taskName in Task) {
if (!Object.prototype.hasOwnProperty.call(Task, taskName)) {
continue;
}
let task = Task[taskName];
let taskParams = "";
if (task.params != "") {
taskParams = "[" + task.params + "]";
}
let descr = task.description;
if (descr) {
tasks.push(taskName.padEnd(30, ' ') + taskParams + " # " + descr);
}
}
logger.info(`
===============================================
Eos Thesis IDE :: Build Help
-----------------------------------------------
Use "yarn eos help" to show this help.
Use "yarn eos <taskName>" to run a task.
You can use jake directly too as "yarn jake [arguments]".
# Available tasks:
${tasks.reduce((p, c) => p + "\n " + c)}
===============================================
`);
});