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

Delta Between Two Patch Sets: gulpfile.js

Issue 29361647: Issue 4607 - Default content styles (Closed)
Left Patch Set: Addressed comments, removed unnessisary components, simplified content Created Nov. 17, 2016, 4:08 p.m.
Right Patch Set: See comments for details Created Dec. 1, 2016, 2:05 p.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 | « demo/index.html ('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 universal-design-language 2 * This file is part of website-defaults
3 * Copyright (C) 2016 Eyeo GmbH 3 * Copyright (C) 2016 Eyeo GmbH
4 * 4 *
5 * universal-design-language is free software: you can redistribute it and/or 5 * website-defaults is free software: you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as published by 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 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 * universal-design-language is distributed in the hope that it will be useful, 10 * website-defaults is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details. 13 * GNU General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 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/>. 16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 const gulp = require("gulp"); 19 const gulp = require("gulp");
20 const sass = require("gulp-sass"); 20 const sass = require("gulp-sass");
21 const connect = require("gulp-connect"); 21 const connect = require("gulp-connect");
22 22
23 gulp.task("connect", function() 23 gulp.task("connect", function()
24 { 24 {
25 connect.server({ 25 connect.server({
26 root: ".", 26 root: "./demo/"
27 livereload: true
28 }); 27 });
29 });
30
31 gulp.task("html", function()
32 {
33 gulp.src("html/*.html")
34 .pipe(connect.reload());
35 }); 28 });
36 29
37 gulp.task("scss", function () 30 gulp.task("scss", function ()
38 { 31 {
39 return gulp.src("./scss/main.scss") 32 return gulp.src("./scss/main.scss")
40 .pipe(sass().on("error", sass.logError)) 33 .pipe(sass().on("error", sass.logError))
41 .pipe(gulp.dest("./css/")) 34 .pipe(gulp.dest("./demo/css/"));
42 .pipe(connect.reload());
43 }); 35 });
44 36
45 gulp.task("watch", function () 37 gulp.task("watch", function ()
46 { 38 {
47 gulp.watch("html/*.html", ["html"]);
48 gulp.watch("scss/*.scss", ["scss"]); 39 gulp.watch("scss/*.scss", ["scss"]);
49 }); 40 });
50 41
51 gulp.task("default", ["scss", "connect", "watch"]); 42 gulp.task("default", ["scss", "connect", "watch"]);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld