forked from shakyShane/gulp-svg-sprites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
40 lines (32 loc) · 1.01 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
var gulp = require("gulp");
var jshint = require("gulp-jshint");
var contribs = require("gulp-contribs");
var clean = require("gulp-clean");
gulp.task("clean:output", function() {
return gulp.src("test/fixtures/output", {read: false})
.pipe(clean());
});
require("./examples/gulpfile.basic");
require("./examples/gulpfile.basic-scss");
require("./examples/gulpfile.options");
require("./examples/gulpfile.scss");
require("./examples/gulpfile.defs");
require("./examples/gulpfile.symbols");
gulp.task("lint", function() {
gulp.src(["test/specs/**/*.js", "!test/fixtures/**", "index.js"])
.pipe(jshint("test/specs/.jshintrc"))
.pipe(jshint.reporter("default"))
.pipe(jshint.reporter("fail"));
});
gulp.task("contribs", function() {
gulp.src("README.md")
.pipe(contribs())
.pipe(gulp.dest("./"));
});
gulp.task("default", ["lint"]);
gulp.task("docs", function() {
var yuidoc = require("gulp-yuidoc");
gulp.src(["./index.js"])
.pipe(yuidoc.parser({spaces: 4}))
.pipe(gulp.dest("./doc"));
});