-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.js
48 lines (42 loc) · 1.14 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
var gulp = require('gulp');
/**
* Javascript documentation generator
*
* Uses DOXX to create documentation from javascript jsdoc blocks
*
* @requires ./lib/gulp-tasks/doxx.js
*/
// set up the doxx task options
var doxxOptions = {
config: {
title: 'Pattern Library Utilities',
urlPrefix: '/pattern-library-utilities'
},
src: [
'!./node_modules/**/*',
'!./.publish/**/*',
'!./test/**/*',
'!./gulpfile.js',
'!./local/**/*',
'!./docs/**/*',
'./**/*.js',
'./README.md'],
dest: './docs',
dependencies: [] // gulp tasks which should be run before this task
};
// add the `gulp doxx` task to available gulp tasks
require('./').gulpDoxx(gulp,doxxOptions);
/**
* GitHub Pages deployment
*
* Uses ghPages task to deploy prototyper's public folder to gh-pages. Does a url-replace task before and after
*
* @requires ./lib/gulp-tasks/gh-pages.js
*/
// set up the gh-pages gulp task options
var ghPagesOptions = {
src: ['./docs/**/*'],
dependencies: ['doxx'] // run documentation generator before sending to GitHub Pages
};
// add the `gulp ghPages` task to available gulp tasks
require('./').gulpGhPages(gulp,ghPagesOptions);