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

Side by Side Diff: gulpfile.js

Issue 29361647: Issue 4607 - Default content styles (Closed)
Patch Set: Removed responsive headings and unnessisary comments Created Nov. 12, 2016, 12:46 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.md ('k') | html/content.html » ('j') | html/content.html » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*!
2 * This file is part of universal-design-language
3 * Copyright (C) 2016 Eyeo GmbH
4 *
5 * universal-design-language 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 * universal-design-language 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 web.starter-kit. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 const gulp = require("gulp");
20 const sass = require("gulp-sass");
21 const connect = require("gulp-connect");
22 const sourcemaps = require("gulp-sourcemaps");
juliandoucette 2016/11/17 16:09:32 Note: I removed sourcemaps because I don't think t
23
24 gulp.task("connect", function()
25 {
26 connect.server({
27 root: ".",
28 livereload: true
29 });
30 });
31
32 gulp.task("html", function()
33 {
34 gulp.src("html/*.html")
35 .pipe(connect.reload());
36 });
37
38 gulp.task("scss", function ()
39 {
40 return gulp.src("./scss/main.scss")
41 .pipe(sourcemaps.init())
42 .pipe(sass().on("error", sass.logError))
43 .pipe(sourcemaps.write("./"))
44 .pipe(gulp.dest("./css/"))
45 .pipe(connect.reload());
46 });
47
48 gulp.task("watch", function ()
49 {
50 gulp.watch("html/*.html", ["html"]);
51 gulp.watch("scss/*.scss", ["scss"]);
52 });
53
54 gulp.task("default", ["scss", "connect", "watch"]);
OLDNEW
« no previous file with comments | « README.md ('k') | html/content.html » ('j') | html/content.html » ('J')

Powered by Google App Engine
This is Rietveld