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

Delta Between Two Patch Sets: gulpfile.js

Issue 29474565: Issue 5350 - Setup Help Center Boilerplate (Closed)
Left Patch Set: Add website defaults Created June 27, 2017, 2:17 p.m.
Right Patch Set: Diff Created July 6, 2017, 7:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « README.md ('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
(no file at all)
1 /*!
2 * This file is part of help.eyeo.com.
3 * Copyright (C) 2017 Eyeo GmbH
4 *
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
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * help.eyeo.com 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 help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 const gulp = require('gulp');
20 const gutil = require('gulp-util');
21 const sass = require('gulp-sass');
22 const postcss = require('gulp-postcss');
23 const scss = require('postcss-scss');
24 const autoprefixer = require('autoprefixer');
25
26 gulp.task('css', function() {
27 return gulp.src('./static/scss/main.scss')
28 .pipe(postcss([autoprefixer()], {syntax: scss}).on('error', guti l.log))
29 .pipe(sass().on('error', gutil.log))
30 .pipe(gulp.dest('./static/css'));
31 });
32
33 gulp.task('watch', function() {
34 gulp.watch('./static/scss/**/*.scss', ['css']);
35 });
36
37 gulp.task('default', ['css', 'watch']);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld