Permalink
Browse files

Added gulp task to process SASS

Added package.json, gulpfile.js and Site.scss
  • Loading branch information...
edwardridge committed Aug 25, 2015
1 parent 5da1a89 commit 8d00491f141298732887df2b87c36a569bc165de
@@ -18,4 +18,10 @@ body {
input,
select,
textarea {
max-width: 280px; }
max-width: 280px; }

.jumbotron p, .jumbotron
h1 {
color: red; }

/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNpdGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGtCQUFrQjtFQUNsQixxQkFBcUI7RUFDckIsd0JBQXdCLEVBSHRCOztBQU1OLHdEQUF3RDtBQUN4RDtFQUNJLG1CQUFtQjtFQUNuQixvQkFBb0IsRUFGVDs7QUFLZjs7RUFFRTtBQUNhO0VBQ1gsb0JBQW9CLEVBREw7O0FBSW5CLDZFQUE2RTtBQUc3RTs7O0VBQ0ksaUJBQWlCLEVBRFg7O0FBS0g7O0VBRUMsV0FBVyxFQURkIiwiZmlsZSI6IlNpdGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiYm9keSB7XHJcbiAgICBwYWRkaW5nLXRvcDogNTBweDtcclxuICAgIHBhZGRpbmctYm90dG9tOiAyMHB4O1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XHJcbn1cclxuXHJcbi8qIFNldCBwYWRkaW5nIHRvIGtlZXAgY29udGVudCBmcm9tIGhpdHRpbmcgdGhlIGVkZ2VzICovXHJcbi5ib2R5LWNvbnRlbnQge1xyXG4gICAgcGFkZGluZy1sZWZ0OiAxNXB4O1xyXG4gICAgcGFkZGluZy1yaWdodDogMTVweDtcclxufVxyXG5cclxuLyogT3ZlcnJpZGUgdGhlIGRlZmF1bHQgYm9vdHN0cmFwIGJlaGF2aW9yIHdoZXJlIGhvcml6b250YWwgZGVzY3JpcHRpb24gbGlzdHMgXHJcbiAgIHdpbGwgdHJ1bmNhdGUgdGVybXMgdGhhdCBhcmUgdG9vIGxvbmcgdG8gZml0IGluIHRoZSBsZWZ0IGNvbHVtbiBcclxuKi9cclxuLmRsLWhvcml6b250YWwgZHQge1xyXG4gICAgd2hpdGUtc3BhY2U6IG5vcm1hbDtcclxufVxyXG5cclxuLyogU2V0IHdpZHRoIG9uIHRoZSBmb3JtIGlucHV0IGVsZW1lbnRzIHNpbmNlIHRoZXkncmUgMTAwJSB3aWRlIGJ5IGRlZmF1bHQgKi9cclxuaW5wdXQsXHJcbnNlbGVjdCxcclxudGV4dGFyZWEge1xyXG4gICAgbWF4LXdpZHRoOiAyODBweDtcclxufVxyXG5cclxuLmp1bWJvdHJvbiB7XHJcbiAgICBwLCBoMSBcclxuICAgIHtcclxuICAgICAgICBjb2xvcjogcmVkO1xyXG4gICAgfVxyXG59XHJcbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== */
@@ -0,0 +1,32 @@
body {
padding-top: 50px;
padding-bottom: 20px;
background-color: white;
}

/* Set padding to keep content from hitting the edges */
.body-content {
padding-left: 15px;
padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists
will truncate terms that are too long to fit in the left column
*/
.dl-horizontal dt {
white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
max-width: 280px;
}

.jumbotron {
p, h1
{
color: red;
}
}
Binary file not shown.
@@ -0,0 +1,20 @@
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();

gulp.task('sass', function () {
gulp.src('./Content/*.scss')
.pipe(plugins.sourcemaps.init())
.pipe(plugins.sass())
.pipe(plugins.autoprefixer())
.pipe(plugins.sourcemaps.write())
.pipe(gulp.dest('./Content'))
.pipe(plugins.livereload())
;
});

gulp.task('watch-sass', function () {
plugins.livereload.listen();
gulp.watch('./Content/*.scss', ['sass']);
});

gulp.task('default', ['watch-sass']);
@@ -0,0 +1,12 @@
{
"scripts": { "install": "echo Done" },

"devDependencies": {
"gulp": "~3.9.0",
"gulp-load-plugins": "~0.10.0",
"gulp-sass": "~2.0.4",
"gulp-sourcemaps": "~1.5.2",
"gulp-autoprefixer": "~2.3.1",
"gulp-livereload": "~3.8.0"
}
}

0 comments on commit 8d00491

Please sign in to comment.