Fix copying of txt files

This commit is contained in:
Ivan Blinkov 2017-06-30 14:29:55 +03:00
parent b4f4330f33
commit 1204c7a776

View File

@ -23,6 +23,7 @@ var paths = {
'!public/**/*.html'], '!public/**/*.html'],
reference: ['deprecated/reference_ru.html', 'deprecated/reference_en.html'], reference: ['deprecated/reference_ru.html', 'deprecated/reference_en.html'],
docs: [docsDir + '/build/docs/**/*'], docs: [docsDir + '/build/docs/**/*'],
docstxt: ['docs/**/*.txt'],
scripts: [ scripts: [
'**/*.js', '**/*.js',
'!gulpfile.js', '!gulpfile.js',
@ -53,16 +54,15 @@ gulp.task('reference', [], function () {
.pipe(gulp.dest(outputDir + '/deprecated')) .pipe(gulp.dest(outputDir + '/deprecated'))
}); });
gulp.task('docstxt', [], function () { gulp.task('docs', [], function () {
run('cd ' + docsDir + '; make'); run('cd ' + docsDir + '; make');
return gulp.src(paths.docs) return gulp.src(paths.docs)
.pipe(gulp.dest(outputDir + '/../docs')) .pipe(gulp.dest(outputDir + '/../docs'))
}); });
gulp.task('docs', ['docstxt'], function () { gulp.task('docstxt', ['docs'], function () {
run('cd ' + docsDir + '; make'); return gulp.src(paths.docstxt)
return gulp.src(paths.docs) .pipe(gulp.dest(outputDir + '/docs'))
.pipe(gulp.dest(outputDir + '/../docs'))
}); });
gulp.task('presentations', [], function () { gulp.task('presentations', [], function () {
@ -75,7 +75,7 @@ gulp.task('robotstxt', [], function () {
.pipe(gulp.dest(outputDir)) .pipe(gulp.dest(outputDir))
}); });
gulp.task('htmls', ['docs'], function () { gulp.task('htmls', ['docs', 'docstxt'], function () {
return gulp.src(paths.htmls) return gulp.src(paths.htmls)
.pipe(htmlmin({collapseWhitespace: true})) .pipe(htmlmin({collapseWhitespace: true}))
.pipe(minifyInline()) .pipe(minifyInline())