You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by de...@apache.org on 2016/12/01 01:00:29 UTC
incubator-systemml-website git commit: Add sourcemaps to sass gulp
tasks
Repository: incubator-systemml-website
Updated Branches:
refs/heads/master 6fb6a086e -> 29c76dc8d
Add sourcemaps to sass gulp tasks
Add gulp-sourcemaps dependency to the project. This allows us to map back
to the originating sass source file. Works with javascript as well.
Closes #35.
Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/commit/29c76dc8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/tree/29c76dc8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/diff/29c76dc8
Branch: refs/heads/master
Commit: 29c76dc8de498d25a132af35ba7a85f70457dae7
Parents: 6fb6a08
Author: Dexter Lesaca <dl...@us.ibm.com>
Authored: Wed Nov 30 16:55:44 2016 -0800
Committer: Deron Eriksson <de...@us.ibm.com>
Committed: Wed Nov 30 16:55:44 2016 -0800
----------------------------------------------------------------------
gulpfile.js | 3 +++
package.json | 1 +
2 files changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/29c76dc8/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index f8b70ed..99aa00a 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -5,6 +5,7 @@ const sass = require('gulp-sass');
const child = require('child_process');
const gutil = require('gulp-util');
const browserSync = require('browser-sync');
+const sourcemaps = require('gulp-sourcemaps');
// PATHS
const config = {
@@ -30,10 +31,12 @@ const config = {
//Sass to CSS Task
gulp.task('css', () => {
gulp.src(config.paths.cssFiles)
+ .pipe(sourcemaps.init())
.pipe(sass({
includePaths: ['node_modules/susy/sass']
}).on('error', sass.logError))
.pipe(concat('main.css'))
+ .pipe(sourcemaps.write())
.pipe(gulp.dest('./_src/assets/css'));
});
http://git-wip-us.apache.org/repos/asf/incubator-systemml-website/blob/29c76dc8/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 608816b..c76d023 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"gulp-concat": "^2.6.0",
"gulp-if": "^2.0.1",
"gulp-sass": "^2.3.2",
+ "gulp-sourcemaps": "^1.9.1",
"gulp-uglify": "^2.0.0",
"gulp-useref": "^3.1.2",
"gulp-util": "^3.0.7",