forked from circleci/circleci-docs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgulpfile.js
More file actions
43 lines (36 loc) · 911 Bytes
/
gulpfile.js
File metadata and controls
43 lines (36 loc) · 911 Bytes
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
'use strict'
const createTask = require('./gulp.d/lib/create-task')
const exportTasks = require('./gulp.d/lib/export-tasks')
const tasks = require('./gulp.d/tasks')
const buildUiTask = createTask({
name: 'build:ui',
desc: 'Build UI bundle',
call: tasks.buildUi,
})
const buildApiDocsTask = createTask({
name: 'build:api-docs',
desc: 'Build API docs with Redocly',
call: tasks.buildApiDocs,
})
const buildDocsTask = createTask({
name: 'build:docs',
desc: 'Build Antora docs and API docs',
call: tasks.buildSite,
})
const docsPreviewTask = createTask({
name: 'preview:docs',
desc: 'Serve and watch docs only',
call: tasks.docsPreview,
})
const uiPreviewTask = createTask({
name: 'preview:ui',
desc: 'Serve docs + watch UI changes',
call: tasks.uiPreview,
})
module.exports = exportTasks(
buildUiTask,
buildApiDocsTask,
buildDocsTask,
docsPreviewTask,
uiPreviewTask
)