forked from conda/conda
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
36 lines (25 loc) · 895 Bytes
/
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
'use strict';
var gulp = require('gulp');
var shell = require('gulp-shell');
var connect = require('gulp-connect');
var sass = require('gulp-sass');
gulp.task('sphinx', shell.task('sphinx-build docs docs/build/html'));
//gulp.task('docs', ['build-docs'], function() {
// gulp.watch(['./docs/**/*.rst', './docs/**/*.py', './docs/**/*.conf'], ['build-docs']);
//});
gulp.task('sass', function () {
return gulp.src('./docs/_theme/react/styles/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./docs/_theme/react/static/'));
});
gulp.task('connect', function() {
connect.server({
root: 'docs/build/html',
livereload: true
});
});
gulp.task('watch', function () {
gulp.watch(['./docs/**/*.rst', './docs/**/*.py', './docs/**/*.conf'], ['sphinx']);
gulp.watch('./sass/**/*.scss', ['sass']);
});
gulp.task('default', ['connect', 'watch']);