| OLD | NEW |
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 {removeDimensions: false}, | 69 {removeDimensions: false}, |
| 70 {removeXMLNS: false}, | 70 {removeXMLNS: false}, |
| 71 {cleanupIDs: true} | 71 {cleanupIDs: true} |
| 72 ] | 72 ] |
| 73 }) | 73 }) |
| 74 ])) | 74 ])) |
| 75 .pipe(gulp.dest("./static/dist/img")); | 75 .pipe(gulp.dest("./static/dist/img")); |
| 76 }); | 76 }); |
| 77 | 77 |
| 78 /****************************************************************************** | 78 /****************************************************************************** |
| 79 * Fonts | |
| 80 ******************************************************************************/ | |
| 81 | |
| 82 gulp.task("fonts", function() { | |
| 83 return gulp.src(["./static/src/fonts/**"]) | |
| 84 .pipe(gulp.dest("./static/dist/fonts")); | |
| 85 }); | |
| 86 | |
| 87 /****************************************************************************** | |
| 88 * Watch | 79 * Watch |
| 89 ******************************************************************************/ | 80 ******************************************************************************/ |
| 90 | 81 |
| 91 gulp.task("watch", function() { | 82 gulp.task("watch", function() { |
| 92 gulp.watch("./static/src/scss/**/*.scss", ["css"]); | 83 gulp.watch("./static/src/scss/**/*.scss", ["css"]); |
| 93 gulp.watch("./static/src/js/**/*.js", ["js"]); | 84 gulp.watch("./static/src/js/**/*.js", ["js"]); |
| 94 gulp.watch("./static/src/img/**", ["img"]); | 85 gulp.watch("./static/src/img/**", ["img"]); |
| 95 gulp.watch("./static/src/fonts/**", ["fonts"]); | |
| 96 }); | 86 }); |
| 97 | 87 |
| 98 /****************************************************************************** | 88 /****************************************************************************** |
| 99 * Build | 89 * Build |
| 100 ******************************************************************************/ | 90 ******************************************************************************/ |
| 101 | 91 |
| 102 gulp.task("build", ["css", "js", "img", "fonts"]); | 92 gulp.task("build", ["css", "js", "img"]); |
| 103 | 93 |
| 104 /****************************************************************************** | 94 /****************************************************************************** |
| 105 * Default | 95 * Default |
| 106 ******************************************************************************/ | 96 ******************************************************************************/ |
| 107 | 97 |
| 108 gulp.task("default", ["build", "watch"]); | 98 gulp.task("default", ["build", "watch"]); |
| OLD | NEW |