Skip to content

Commit 52c29a9

Browse files
committed
chore: adapted for docs changes
1 parent 3046fbc commit 52c29a9

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

Gulpfile.js

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
(function(){
2-
"use strict";
2+
"use strict";
33

4-
let gulp = require('gulp');
5-
let debug = require('gulp-debug');
6-
const BASE_DIR = 'site';
4+
let gulp = require('gulp');
5+
let debug = require('gulp-debug');
76

8-
gulp.task('assets', [], () => {
9-
return gulp.src([
10-
BASE_DIR + '/css/**',
11-
BASE_DIR + '/js/**',
12-
BASE_DIR + '/mkdocs/**',
13-
BASE_DIR + '/fonts/**',
14-
BASE_DIR + '/img/**',
15-
BASE_DIR + '/images/**',
16-
BASE_DIR + '/**/*.js',
17-
BASE_DIR + '/**/*.css',
18-
BASE_DIR + '/**/*.dll',
19-
BASE_DIR + '/**/*.xml',
20-
BASE_DIR + '/**/*.war',
21-
BASE_DIR + '/**/*.png'
22-
], { base: BASE_DIR })
23-
.pipe(debug())
24-
.pipe(gulp.dest('public'));
25-
});
26-
gulp.task('html', [], () => {
27-
return gulp.src([
28-
BASE_DIR + '/**/*.html'
29-
], { base: BASE_DIR })
30-
.pipe(debug())
31-
.pipe(gulp.dest('app/views/site'));
32-
});
7+
const BASE_DIR = 'site';
8+
const TARGET_DIR = 'node_modules/authenticated-docs';
339

34-
gulp.task('prepare', ['assets', 'html']);
10+
gulp.task('assets', [], () => {
11+
return gulp.src([
12+
BASE_DIR + '/css/**',
13+
BASE_DIR + '/js/**',
14+
BASE_DIR + '/mkdocs/**',
15+
BASE_DIR + '/fonts/**',
16+
BASE_DIR + '/img/**',
17+
BASE_DIR + '/images/**',
18+
BASE_DIR + '/**/*.js',
19+
BASE_DIR + '/**/*.css',
20+
BASE_DIR + '/**/*.dll',
21+
BASE_DIR + '/**/*.xml',
22+
BASE_DIR + '/**/*.war',
23+
BASE_DIR + '/**/*.png'
24+
], { base: BASE_DIR })
25+
.pipe(debug())
26+
.pipe(gulp.dest(TARGET_DIR + '/public'));
27+
});
28+
29+
gulp.task('html', [], () => {
30+
return gulp.src([
31+
BASE_DIR + '/**/*.html'
32+
], { base: BASE_DIR })
33+
.pipe(debug())
34+
.pipe(gulp.dest(TARGET_DIR + '/app/views/site'));
35+
});
36+
37+
gulp.task('prepare', ['assets', 'html']);
3538
})();

0 commit comments

Comments
 (0)