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

Side by Side Diff: gulpfile.js

Issue 29366993: Issue 4629 - Default website boilerplate (Closed)
Patch Set: Created Dec. 7, 2016, 1:28 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*!
2 * This file is part of website-boilerplate
3 * Copyright (C) 2016 Eyeo GmbH
4 *
5 * website-boilerplate is free software: you can redistribute it and/or
6 * modify 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
8 * (at your option) any later version.
9 *
10 * website-boilerplate is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with website-boilerplate. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 const gulp = require("gulp");
20 const sass = require("gulp-sass");
21
22 gulp.task("scss", function ()
23 {
24 return gulp.src("./static/scss/main.scss")
25 .pipe(sass().on("error", sass.logError))
26 .pipe(gulp.dest("./static/css/"));
27 });
28
29 gulp.task("watch", function ()
30 {
31 gulp.watch("static/scss/*.scss", ["scss"]);
saroyanm 2017/01/11 12:04:40 Getting current error: Error: watch /home/saroyanm
ire 2017/06/22 16:14:24 I can confirm that I don't get any error running g
ire 2017/06/22 16:14:24 This should watch `static/scss/**/*.scss` so that
juliandoucette 2017/06/22 18:23:52 Acknowledged. Also, no good reason. Note: If we m
32 });
33
34 gulp.task("build", ["scss"]);
35
36 gulp.task("default", ["scss", "watch"]);
OLDNEW
« no previous file with comments | « globals/site.py ('k') | package.json » ('j') | static/scss/main.scss » ('J')

Powered by Google App Engine
This is Rietveld