-
Notifications
You must be signed in to change notification settings - Fork 6
/
gulpfile.js
53 lines (46 loc) · 1.44 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*global require:true*/
var gulp = require('gulp');
var jsdoc = require("gulp-jsdoc");
var rename = require("gulp-rename");
gulp.task('default', function() {
var jsDocsInfos = {
"plugins": ["plugins/markdown"],
"tags": {
"allowUnknownTags" : true
},
"markdown": {
"parser": "gfm",
"hardwrap": true
},
"opts": {
"lenient": false
},
"private": false,
"cleverLinks": false,
"monospaceLinks": true,
"outputSourceFiles": true
};
var templateOptions = {
"path": "ink-docstrap",
"systemName": "Productized CCC Extensions",
"footer": "",
"copyright": "WebDetails",
"navType": "vertical",
"theme": "cerulean",
"linenums": true,
"collapseSymbols": true,
"inverseNav": true,
"syntaxTheme": "javascript"
};
gulp.src(["./exts/**/*.js", "docs/README.md"])
.pipe(jsdoc.parser(jsDocsInfos))
.pipe(jsdoc.generator("./dist/docs", templateOptions, jsDocsInfos));
// Copy extensions' files
// from: exts/<extName>/files
// to: dist/docs/examples/exts/<extName>/examples.html
gulp.src("./*/*.{html,js,css}", {cwd: "./exts/"})
.pipe(gulp.dest("./dist/docs/examples/exts"));
// Copy lib files to dist
gulp.src("./lib/**/*.*")
.pipe(gulp.dest("./dist/docs/examples/lib"));
});