Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: gulpfile.js

Issue 29637578: Issue 6182 - Add build step for fonts and images in help.eyeo.com (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Left Patch Set: Created Dec. 13, 2017, 12:07 p.m.
Right Patch Set: Remove imagemin from fonts build step Created Jan. 5, 2018, 7:54 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « .hgignore ('k') | package.json » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /*! 1 /*!
2 * This file is part of help.eyeo.com. 2 * This file is part of help.eyeo.com.
3 * Copyright (C) 2017-present eyeo GmbH 3 * Copyright (C) 2017-present eyeo GmbH
4 * 4 *
5 * help.eyeo.com is free software: you can redistribute it and/or modify 5 * help.eyeo.com is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or 7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version. 8 * (at your option) any later version.
9 * 9 *
10 * help.eyeo.com is distributed in the hope that it will be useful, 10 * help.eyeo.com is distributed in the hope that it will be useful,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 ])) 74 ]))
75 .pipe(gulp.dest("./static/dist/img")); 75 .pipe(gulp.dest("./static/dist/img"));
76 }); 76 });
77 77
78 /****************************************************************************** 78 /******************************************************************************
79 * Fonts 79 * Fonts
80 ******************************************************************************/ 80 ******************************************************************************/
81 81
82 gulp.task("fonts", function() { 82 gulp.task("fonts", function() {
83 return gulp.src(["./static/src/fonts/**"]) 83 return gulp.src(["./static/src/fonts/**"])
84 .pipe(imagemin([
85 imagemin.svgo({
86 plugins: [
87 {removeDimensions: false},
88 {removeXMLNS: false},
89 {cleanupIDs: true}
90 ]
91 })
92 ]))
93 .pipe(gulp.dest("./static/dist/fonts")); 84 .pipe(gulp.dest("./static/dist/fonts"));
94 }); 85 });
95 86
96 /****************************************************************************** 87 /******************************************************************************
97 * Watch 88 * Watch
98 ******************************************************************************/ 89 ******************************************************************************/
99 90
100 gulp.task("watch", function() { 91 gulp.task("watch", function() {
101 gulp.watch("./static/src/scss/**/*.scss", ["css"]); 92 gulp.watch("./static/src/scss/**/*.scss", ["css"]);
102 gulp.watch("./static/src/js/**/*.js", ["js"]); 93 gulp.watch("./static/src/js/**/*.js", ["js"]);
103 gulp.watch("./static/src/img/**", ["img"]); 94 gulp.watch("./static/src/img/**", ["img"]);
104 gulp.watch("./static/src/fonts/**", ["fonts"]); 95 gulp.watch("./static/src/fonts/**", ["fonts"]);
105 }); 96 });
106 97
107 /****************************************************************************** 98 /******************************************************************************
108 * Default 99 * Default
109 ******************************************************************************/ 100 ******************************************************************************/
110 101
111 gulp.task("default", ["css", "js", "img", "fonts", "watch"]); 102 gulp.task("default", ["css", "js", "img", "fonts", "watch"]);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld