-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
36 lines (30 loc) · 1.13 KB
/
gulpfile.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
/* eslint-disable node/no-unpublished-require */
const gulp = require("gulp");
const {lint, docs, test_legacy, scm_clean} = require("scramjet-core/scripts/tasks");
const {tsd} = require("scramjet/scripts/tasks");
const FILES = [
"./lib/index.js",
"./lib/entry-reporter.js",
"./lib/entry.js",
"./lib/getlog.js",
"./lib/jetlog.js"
];
gulp.task("lint", lint());
gulp.task("test", test_legacy("test/**/*.js"));
gulp.task("scm_clean", scm_clean());
gulp.task("make_docs", docs(FILES.slice(), {plugin: ["scramjet-core/jsdoc2md/plugin-docs.js", "./jsdoc2md/plugin-docs.js"]}, "docs/"));
gulp.task("tsd", tsd(FILES.slice().reverse(), {
plugins: ["scramjet/jsdoc2md/plugin-tsd.js"],
opts: {
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc","closure"]
},
template: "@otris/jsdoc-tsd/src-out/src/core",
destination: ".d.ts/jetlog.d.ts"
}
}));
gulp.task("docs", gulp.series("tsd", "make_docs"));
gulp.task("fulltest", gulp.series("lint", "test"));
gulp.task("default", gulp.series("docs", "fulltest"));
gulp.task("preversion", gulp.series("default", "scm_clean"));