Skip to content

Commit a81c049

Browse files
committed
add api docs in distribution
1 parent 792ee50 commit a81c049

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gulpfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,22 +166,22 @@ gulp.task('editdoc', ['doc'], () => {
166166
});
167167

168168
gulp.task('beforeZip', () => {
169-
gulp.src(['LICENSE', 'ACKNOWLEDGEMENT'])
169+
gulp.src(['LICENSE', 'ACKNOWLEDGEMENT', 'docs/**/*'])
170170
.pipe(gulp.dest('dist'))
171171
});
172172

173173
gulp.task('zip', ['beforeZip'], done => {
174-
gulp.src(['dist/*.js', 'dist/images/**/*', 'dist/maptalks.css', 'dist/LICENSE', 'dist/ACKNOWLEDGEMENT'], { base: 'dist/' })
174+
gulp.src(['dist/*.js', 'dist/images/**/*', 'dist/maptalks.css', 'dist/LICENSE', 'dist/ACKNOWLEDGEMENT', 'dist/api/**/*'], { base: 'dist/' })
175175
.pipe(zip('maptalks-' + package.version + '.zip'))
176176
.pipe(gulp.dest('dist'));
177177
setTimeout(function () {
178178
del([
179-
'dist/LICENSE', 'dist/ACKNOWLEDGEMENT'
179+
'dist/api/**/*', 'dist/LICENSE', 'dist/ACKNOWLEDGEMENT'
180180
], {
181181
force : true
182182
});
183183
done();
184-
}, 500);
184+
}, 2000);
185185
});
186186

187187
gulp.task('default', ['connect']);

0 commit comments

Comments
 (0)