Skip to content

Commit afa8f67

Browse files
committed
typo fix + normalize
1 parent 21fc10e commit afa8f67

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

easybs/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ gulp server
2323

2424
The gulp server task is configured so that any edits to the html are reloaded in the browser instantly. Any edits to scss files are processed into the css file and injected instantly into the browser.
2525

26+
If you wish to include [normalize.scss](https://github.com/guerrero/normalize.scss) in your sass build, run this task:
27+
28+
```
29+
gulp cp
30+
```
31+
32+
Then uncomment the normalize import statement at the top of /src/sass/base/_base.scss
33+
34+
2635
Additional reading:
2736

2837
- [browsersync.io](http://www.browsersync.io/ "browsersync.io")

easybs/gulpfile.js

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
'use strict';
22

3-
var gulp = require('gulp');
4-
var browserSync = require('browser-sync').create();
5-
var sass = require('gulp-sass');
3+
var gulp = require('gulp'),
4+
browserSync = require('browser-sync').create(),
5+
rename = require("gulp-rename"),
6+
sass = require('gulp-sass');
7+
68
var reload = browserSync.reload;
79

810
var path = {
@@ -15,6 +17,16 @@ var path = {
1517
}
1618
};
1719

20+
gulp.task('cp-normalize', function() {
21+
gulp.src([
22+
'./node_modules/normalize.scss/normalize.scss'
23+
])
24+
.pipe(rename('_normalize.scss'))
25+
.pipe(gulp.dest('./src/sass/base/'));
26+
});
27+
// copy vendor libraries into app
28+
gulp.task('cp', ['cp-normalize']);
29+
1830
// BrowserSync static server + watching scss and html files
1931
gulp.task('server', ['sass'], function() {
2032
browserSync.init({
@@ -37,4 +49,4 @@ gulp.task('sass', function() {
3749
.pipe(reload({stream: true}));
3850
});
3951

40-
gulp.task('default', ['serve']);
52+
gulp.task('default', ['server']);

easybs/package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
2-
"name": "site",
2+
"name": "easybs",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "Easy Browsersync Server",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
9-
"author": "",
9+
"author": "Jim Frenette",
10+
"homepage": "http://jimfrenette.com/html5-template/",
1011
"license": "MIT",
1112
"devDependencies": {
1213
"browser-sync": "^2.10.1",
1314
"gulp": "^3.9.0",
14-
"gulp-sass": "^2.1.1"
15+
"gulp-rename": "^1.2.2",
16+
"gulp-sass": "^2.1.1",
17+
"normalize.scss": "^0.1.0"
1518
}
1619
}

easybs/src/sass/base/_base.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@import "normalize";
12
@import "variables";
23
@import "fonts";
34
@import "scaffolding";

0 commit comments

Comments
 (0)