@@ -6,7 +6,6 @@ const exportTasks = require('./gulp.d/lib/export-tasks')
6
6
const log = require ( 'fancy-log' )
7
7
const { exec, execSync } = require ( 'child_process' )
8
8
const path = require ( 'path' )
9
- const gulp = require ( 'gulp' )
10
9
11
10
const bundleName = 'ui'
12
11
const buildDir = 'build'
@@ -25,9 +24,6 @@ const glob = {
25
24
js : [ 'gulpfile.js' , 'gulp.d/**/*.js' , `${ srcDir } /{helpers,js}/**/*.js` ] ,
26
25
}
27
26
28
- const rapidocSrc = 'node_modules/rapidoc/dist/rapidoc-min.js'
29
- const rapidocDest = path . join ( srcDir , 'static' )
30
-
31
27
/**
32
28
* Compiles Handlebars partial templates by executing a Node.js script for each specified partial.
33
29
*
@@ -55,16 +51,6 @@ function compileWidgets (cb) {
55
51
}
56
52
}
57
53
58
- /**
59
- * Copies the Rapidoc JavaScript file from the source location to the static assets directory.
60
- *
61
- * @returns {Stream } A Gulp stream representing the copy operation.
62
- */
63
- function copyRapidoc ( ) {
64
- return gulp . src ( rapidocSrc )
65
- . pipe ( gulp . dest ( rapidocDest ) )
66
- }
67
-
68
54
const cleanTask = createTask ( {
69
55
name : 'clean' ,
70
56
desc : 'Clean files and folders generated by build' ,
@@ -144,7 +130,7 @@ const buildWasmTask = createTask({
144
130
145
131
const bundleBuildTask = createTask ( {
146
132
name : 'bundle:build' ,
147
- call : series ( cleanTask , lintTask , buildWasmTask , bundleReactTask , compileWidgets , copyRapidoc , buildTask ) ,
133
+ call : series ( cleanTask , lintTask , buildWasmTask , bundleReactTask , compileWidgets , buildTask ) ,
148
134
} )
149
135
150
136
const bundlePackTask = createTask ( {
@@ -178,7 +164,7 @@ const buildPreviewPagesTask = createTask({
178
164
const previewBuildTask = createTask ( {
179
165
name : 'preview:build' ,
180
166
desc : 'Process and stage the UI assets and generate pages for the preview' ,
181
- call : series ( buildWasmTask , copyRapidoc , bundleReactTask , buildTask , buildPreviewPagesTask ) ,
167
+ call : series ( buildWasmTask , bundleReactTask , buildTask , buildPreviewPagesTask ) ,
182
168
} )
183
169
184
170
const previewServeTask = createTask ( {
0 commit comments