Skip to content

Commit 530a945

Browse files
committed
Update gulp tasks & v1.2.2
The gulp default task used to finish minifying the css before it compiled the sass, that is now fixed. Travis file also has updates, now only running the default gulp task.
1 parent ae582ca commit 530a945

File tree

8 files changed

+25
-22
lines changed

8 files changed

+25
-22
lines changed

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ install:
1010

1111
before_script:
1212
- npm install -g gulp
13-
14-
script:
15-
- gulp sass:compile
16-
- gulp css:minify
17-
13+
14+
script:
15+
- gulp
16+
1817
notifications:
1918
email: false
20-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ or you can install the waffle grid system using a package manager like npm
4040
```
4141
$ npm install waffel-grid
4242
```
43-
If you want you can still download the waffle grid [here](https://github.com/lucasgruwez/waffle-grid/releases/download/v1.2.1/waffle-grid.min.css).
43+
If you want you can still download the waffle grid [here](https://github.com/lucasgruwez/waffle-grid/releases/download/v1.2.2/waffle-grid.min.css).
4444

4545
## Docs
4646

@@ -92,7 +92,7 @@ Please read [CONTRIBUTING.md](./.github/CONTRIBUTING.md) for details on our code
9292

9393
## Versioning
9494

95-
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/lucasgruwez/waffle-grid/tags).
95+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/lucasgruwez/waffle-grid/tags).
9696

9797
## Authors
9898

dist/waffle-grid.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* waffle-grid - v1.2.1 - (https://lucasgruwez.github.io/waffle-grid)
2+
* waffle-grid - v1.2.2 - (https://lucasgruwez.github.io/waffle-grid)
33
* Copyright 2017 Lucas Gruwez.
44
* Licensed under MIT
55
* https://lucasgruwez.github.io/waffle-grid

dist/waffle-grid.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ url: lucasgruwez.github.io
1010
baseurl: /waffle-grid
1111

1212
# Custom variables
13-
version: v1.2.1
13+
version: v1.2.2
1414
cdn: https://unpkg.com/waffle-grid
1515
repo: https://github.com/lucasgruwez/waffle-grid
16-
download: https://github.com/lucasgruwez/waffle-grid/releases/download/v1.2.1/waffle-grid.min.css
16+
download: https://github.com/lucasgruwez/waffle-grid/releases/download/v1.2.2/waffle-grid.min.css
1717
docs: https://github.com/lucasgruwez/waffle-grid/wiki

gulpfile.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
const gulp = require('gulp');
22
const sass = require('gulp-sass');
3+
const gutil = require('gulp-util');
34
const rename = require('gulp-rename');
45
const cleanCSS = require('gulp-clean-css');
6+
const runSequence = require('run-sequence');
57
const cssbeautify = require('gulp-cssbeautify');
68
const autoprefixer = require('gulp-autoprefixer');
79

@@ -11,11 +13,10 @@ gulp.task('sass:compile', function () {
1113
.pipe(cleanCSS({
1214
level: {
1315
1: {
14-
all: true // controls all properties
16+
all: true
1517
},
1618
2: {
1719
all: true,
18-
mergeNonAdjacentByBody: true
1920
}
2021
}
2122
})) // This moight seem counter intuitive at first, that we first uglify then beautify, but the uglification drastically reduces file size by merging col-1-of-4, col-2-of-8 and col-3-of-12 ito one same rule. The beautyfication makes the code readable. This reduces the non-minified file size by ~200 lines.
@@ -29,15 +30,13 @@ gulp.task('sass:compile', function () {
2930
.pipe(gulp.dest('./dist'));
3031
});
3132

32-
gulp.task('sass:watch', function () {
33-
gulp.watch('./src/**/*.scss', ['sass']);
34-
});
35-
3633
gulp.task('css:minify', function() {
3734
return gulp.src('dist/waffle-grid.css')
3835
.pipe(cleanCSS({compatibility: 'ie8'}))
3936
.pipe(rename('waffle-grid.min.css'))
4037
.pipe(gulp.dest('dist'));
4138
});
4239

43-
gulp.task('default', ['sass:compile', 'css:minify'])
40+
gulp.task('default', function () {
41+
runSequence('sass:compile', 'css:minify');
42+
})

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"name": "waffle-grid",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "An easy to use flexbox grid system",
55
"main": "dist/waffle-grid.min.css",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lucasgruwez/waffle-grid"
9+
},
610
"scripts": {
711
"test": "echo \"Error: no test specified\" && exit 1"
812
},
@@ -19,6 +23,8 @@
1923
"gulp-clean-css": "^3.0.3",
2024
"gulp-cssbeautify": "^0.1.3",
2125
"gulp-rename": "^1.2.2",
22-
"gulp-sass": "^3.1.0"
26+
"gulp-sass": "^3.1.0",
27+
"gulp-util": "^3.0.8",
28+
"run-sequence": "^1.2.2"
2329
}
2430
}

src/waffle-grid.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* waffle-grid - v1.2.1 - (https://lucasgruwez.github.io/waffle-grid)
2+
* waffle-grid - v1.2.2 - (https://lucasgruwez.github.io/waffle-grid)
33
* Copyright 2017 Lucas Gruwez.
44
* Licensed under MIT
55
* https://lucasgruwez.github.io/waffle-grid

0 commit comments

Comments
 (0)