-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.js
41 lines (39 loc) · 1.23 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
/* eslint-disable quote-props */
// Resize image:
// convert logo.png -thumbnail '128x128>' -background transparent -gravity center -extent 128x128 -compose Copy_Opacity original-resized.png
// List all available tasks
const organiser = require("gulp-organiser");
organiser.registerAll("./tasks", {
sass: {
src: "src/styles/**/*.scss",
dest: "dist/styles"
},
"copy-static": {
src: ["src/**/*", "!src/styles/**/*", "!**/*.elm", "./src/manifest.json",],
dest: "dist"
},
"build-elm": {
watch: "src/elm/**/*",
src: "src/elm/Main.elm",
dest: "dist/elm",
moduleName: "Main",
ext: "js"
},
"browser-sync": {
src: ".", // it doesn't matter, it's just so the task object is not ignored.
reloadOn: ["build-elm", "copy-static", "sass"], // reload page when these tasks happen
startPath: "dist/pages/index.html",
baseDir: "./"
},
"create-zip": {
src: "./dist"
},
build: {
src: "./undefined",
tasks: ["copy-static", "sass", "build-elm", "create-zip"]
},
"bump-version": {
src: ["./package.json", "./elm.json", "./src/manifest.json"],
bumpType: "patch"
}
});