forked from putaindecode/putaindecode.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
54 lines (43 loc) · 1.37 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
54
var gulp = require("gulp")
require("./tasks/fixes/marked")
gulp.task("clean", require("./tasks/clean"))
// html
gulp.task("lang", require("./tasks/lang"))
gulp.task("exports", require("./tasks/exports"))
gulp.task("contributors", require("./tasks/contributors"))
gulp.task("pages", ["lang", "exports", "contributors"], require("./tasks/pages"))
gulp.task("feed", ["pages", "lang", "exports"], require("./tasks/feed"))
gulp.task("sitemap", ["lang", "exports"], require("./tasks/sitemap"))
// static assets
gulp.task("public", require("./tasks/public"))
gulp.task("assets", require("./tasks/assets"))
// generated assets
gulp.task("icons", require("./tasks/icons"))
gulp.task("scripts", ["scripts:linting"], require("./tasks/scripts"))
gulp.task("scripts:linting", require("./tasks/scripts-linting"))
gulp.task("stylesheets", require("./tasks/stylesheets"))
gulp.task("stylesheets:all", ["icons"], require("./tasks/stylesheets")) // for first run, to ensure icon css is fresh & ready
// build
gulp.task("dist", [
"clean",
"pages",
"feed",
"sitemap",
"public",
"assets",
"icons",
"scripts",
"stylesheets:all"
])
// dev tasks
gulp.task("server", ["dist"], require("./tasks/server").start)
gulp.task("watch", ["dist"], require("./tasks/watch"))
gulp.task("default", [
"dist",
"server",
"watch"
])
// deploy
gulp.task("deploy", [
"dist"
], require("./tasks/deploy"))