-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
39 lines (35 loc) · 824 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
33
34
35
36
37
38
39
var gulp = require('gulp');
var sassdoc = require('sassdoc');
var browser = require('browser-sync').create();
var port = process.env.SERVER_PORT || 3000;
var paths = {
scss: {
src: 'scss/**/*.scss'
},
docs: {
dest: 'docs'
}
};
gulp.task('default', ['serve', 'docs']);
// Starts a BrowerSync instance
gulp.task('serve', ['docs'], function(){
return browser.init({server: paths.docs.dest, port: port});
});
// Build the documentation
gulp.task('docs', function () {
return gulp.src(paths.scss.src)
.pipe(sassdoc({
dest: paths.docs.dest,
display: {
access: ['public'],
alias: true,
watermark: true
},
groups: {
'api': 'API',
'handler': 'Exception Handlers',
'helper': 'Helpers',
'alias': 'Aliases'
}
}));
});