Add gulp ghpages task to deploy docs to gh-pages
This commit is contained in:
Родитель
ebefce90af
Коммит
320513664f
|
@ -3,4 +3,5 @@ coverage
|
|||
typings
|
||||
tmp
|
||||
dist
|
||||
docs
|
||||
docs
|
||||
.publish
|
10
gulpfile.js
10
gulpfile.js
|
@ -1,6 +1,8 @@
|
|||
var gulp = require('gulp-help')(require('gulp'));
|
||||
var del = require('del'),
|
||||
ghPages = require('gulp-gh-pages'),
|
||||
header = require('gulp-header'),
|
||||
moment = require('moment'),
|
||||
rename = require('gulp-rename'),
|
||||
replace = require('gulp-replace'),
|
||||
typedoc = require("gulp-typedoc"),
|
||||
|
@ -38,6 +40,14 @@ gulp.task('test', 'Run unit tests', function (done) {
|
|||
)
|
||||
});
|
||||
|
||||
gulp.task('ghpages', function () {
|
||||
return gulp.src(['./docs/**/*'])
|
||||
.pipe(ghPages({
|
||||
force: true,
|
||||
message: 'Update ' + moment().format('LLL')
|
||||
}));
|
||||
});
|
||||
|
||||
gulp.task("docs", function () {
|
||||
return gulp
|
||||
.src(["src/**/*.ts"])
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
"devDependencies": {
|
||||
"del": "^2.2.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-gh-pages": "^0.5.4",
|
||||
"gulp-header": "^1.8.7",
|
||||
"gulp-help": "^1.6.1",
|
||||
"gulp-rename": "^1.2.2",
|
||||
|
@ -39,6 +40,7 @@
|
|||
"karma-phantomjs-launcher": "^1.0.0",
|
||||
"karma-sourcemap-loader": "^0.3.7",
|
||||
"karma-spec-reporter": "0.0.26",
|
||||
"moment": "^2.14.1",
|
||||
"phantomjs-prebuilt": "^2.1.7",
|
||||
"run-sequence": "^1.2.0",
|
||||
"ts-loader": "^0.8.2",
|
||||
|
|
Загрузка…
Ссылка в новой задаче