Skip to content

Commit 8d00491

Browse files
author
Edward Ridge
committed
Added gulp task to process SASS
Added package.json, gulpfile.js and Site.scss
1 parent 5da1a89 commit 8d00491

File tree

5 files changed

+71
-1
lines changed

5 files changed

+71
-1
lines changed

Gulp and Visual Studio/Content/Site.css

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
background-color: white;
5+
}
6+
7+
/* Set padding to keep content from hitting the edges */
8+
.body-content {
9+
padding-left: 15px;
10+
padding-right: 15px;
11+
}
12+
13+
/* Override the default bootstrap behavior where horizontal description lists
14+
will truncate terms that are too long to fit in the left column
15+
*/
16+
.dl-horizontal dt {
17+
white-space: normal;
18+
}
19+
20+
/* Set width on the form input elements since they're 100% wide by default */
21+
input,
22+
select,
23+
textarea {
24+
max-width: 280px;
25+
}
26+
27+
.jumbotron {
28+
p, h1
29+
{
30+
color: red;
31+
}
32+
}
82 Bytes
Binary file not shown.

Gulp and Visual Studio/gulpfile.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
var gulp = require('gulp');
2+
var plugins = require('gulp-load-plugins')();
3+
4+
gulp.task('sass', function () {
5+
gulp.src('./Content/*.scss')
6+
.pipe(plugins.sourcemaps.init())
7+
.pipe(plugins.sass())
8+
.pipe(plugins.autoprefixer())
9+
.pipe(plugins.sourcemaps.write())
10+
.pipe(gulp.dest('./Content'))
11+
.pipe(plugins.livereload())
12+
;
13+
});
14+
15+
gulp.task('watch-sass', function () {
16+
plugins.livereload.listen();
17+
gulp.watch('./Content/*.scss', ['sass']);
18+
});
19+
20+
gulp.task('default', ['watch-sass']);

Gulp and Visual Studio/package.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"scripts": { "install": "echo Done" },
3+
4+
"devDependencies": {
5+
"gulp": "~3.9.0",
6+
"gulp-load-plugins": "~0.10.0",
7+
"gulp-sass": "~2.0.4",
8+
"gulp-sourcemaps": "~1.5.2",
9+
"gulp-autoprefixer": "~2.3.1",
10+
"gulp-livereload": "~3.8.0"
11+
}
12+
}

0 commit comments

Comments
 (0)