Skip to content

Commit 93b4606

Browse files
committed
Merge branch 'release-0.2.1'
2 parents 900a8fa + 8f38395 commit 93b4606

File tree

6 files changed

+1286
-1375
lines changed

6 files changed

+1286
-1375
lines changed

.travis.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
sudo: false
2-
dist: trusty
1+
os: linux
2+
dist: xenial
33

44
language: node_js
55

@@ -19,3 +19,12 @@ install:
1919

2020
script:
2121
- npm test
22+
23+
deploy:
24+
provider: npm
25+
email: $NPM_EMAIL
26+
api_key: $NPM_TOKEN
27+
on:
28+
branch: master
29+
tags: true
30+
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,35 @@ $default-grid-gutter: 2%;
4444

4545
```
4646
.grid {
47+
-webkit-box-sizing: border-box;
4748
box-sizing: border-box;
49+
display: -webkit-box;
4850
display: -ms-flexbox;
4951
display: flex;
50-
margin: 0 -1%;
52+
margin-left: -1%;
53+
margin-right: -1%;
5154
}
5255
5356
.grid > .grid__col-3 {
57+
-webkit-box-sizing: border-box;
5458
box-sizing: border-box;
59+
-webkit-box-flex: 0;
5560
-ms-flex: 0 0 23%;
5661
flex: 0 0 23%;
57-
margin: 0 1% 2%;
62+
margin-left: 1%;
63+
margin-right: 1%;
64+
margin-bottom: 2%;
5865
}
5966
6067
.grid > .grid__col-9 {
68+
-webkit-box-sizing: border-box;
6169
box-sizing: border-box;
70+
-webkit-box-flex: 0;
6271
-ms-flex: 0 0 73%;
6372
flex: 0 0 73%;
64-
margin: 0 1% 2%;
73+
margin-left: 1%;
74+
margin-right: 1%;
75+
margin-bottom: 2%;
6576
}
6677
```
6778

@@ -120,13 +131,9 @@ Example : import form node_modules
120131

121132
See Flexbox Grid Mixins documentation: [http://thingsym.github.io/flexbox-grid-mixins/](http://thingsym.github.io/flexbox-grid-mixins/)
122133

123-
## Package manager
124-
125-
[flexbox-grid-mixins - npm](https://www.npmjs.com/package/flexbox-grid-mixins)
126-
127134
## Mixins Reference
128135

129-
* [Mixins Reference](http://thingsym.github.io/flexbox-grid-mixins/#Mixins-Reference)
136+
[Mixins Reference](http://thingsym.github.io/flexbox-grid-mixins/#Mixins-Reference)
130137

131138
## Example
132139

@@ -141,7 +148,11 @@ See Flexbox Grid Mixins documentation: [http://thingsym.github.io/flexbox-grid-m
141148
* [Grid Type](http://thingsym.github.io/flexbox-grid-mixins/example/grid-type.html)
142149
* [Testing Stick Out Grid](http://thingsym.github.io/flexbox-grid-mixins/example/test-stick-out.html)
143150

144-
### Development
151+
## Package manager
152+
153+
[flexbox-grid-mixins - npm](https://www.npmjs.com/package/flexbox-grid-mixins)
154+
155+
## Development
145156

146157
1. run ```$ sudo yum install nodejs npm```
147158
2. run ```$ sudo npm install --global gulp-cli```
@@ -166,6 +177,9 @@ Small patches and bug reports can be submitted a issue tracker in Github. Forkin
166177

167178
## Changelog
168179

180+
* Version 0.2.1
181+
* auto release to npm only version tags
182+
* gulp bump up version to 4.0
169183
* Version 0.2.0
170184
* update example
171185
* update package.json

gulpfile.js

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
'use strict';
22

3-
var gulp = require('gulp');
4-
var $ = require('gulp-load-plugins')();
3+
const gulp = require('gulp');
4+
const $ = require('gulp-load-plugins')();
55

66
require('es6-promise').polyfill();
77

8-
var runSequence = require('run-sequence');
8+
const browserSync = require('browser-sync').create();
99

10-
var browserSync = require('browser-sync').create();
11-
var reload = browserSync.reload;
12-
13-
var src_paths = {
10+
const src_paths = {
1411
sass: ['sass/_flexbox-grid-mixins.scss'],
1512
docs_sass: ['docs/sass/*.scss'],
1613
docs_static: ['docs/*.html', 'docs/**/*.html']
1714
};
1815

19-
var dest_paths = {
16+
const dest_paths = {
2017
browserSync: 'docs',
2118
docs_css: 'docs/css/'
2219
};
2320

24-
gulp.task('lint:sass', function() {
21+
function lint_sass() {
2522
return gulp.src(src_paths.sass)
2623
.pipe($.plumber({
2724
errorHandler: function(err) {
@@ -46,9 +43,9 @@ gulp.task('lint:sass', function() {
4643
console: true
4744
}]
4845
}));
49-
});
46+
};
5047

51-
gulp.task('docs_sass', function() {
48+
function docs_sass() {
5249
return gulp.src(src_paths.docs_sass)
5350
.pipe($.plumber({
5451
errorHandler: function(err) {
@@ -64,32 +61,30 @@ gulp.task('docs_sass', function() {
6461
}))
6562
.pipe(gulp.dest(dest_paths.docs_css))
6663
.pipe(browserSync.stream());
67-
});
64+
}
6865

69-
gulp.task('browser-sync', function() {
66+
function browser_sync(done) {
7067
browserSync.init({
7168
server: {
7269
baseDir: dest_paths.browserSync
73-
}
70+
},
71+
reloadOnRestart: true
7472
});
73+
done();
74+
}
7575

76-
gulp.watch(src_paths.sass, ['default']).on('change', reload);
77-
gulp.watch(src_paths.docs_sass, ['docs_sass']);
78-
gulp.watch(src_paths.docs_static).on('change', reload);
79-
});
80-
81-
gulp.task('lint', ['lint:sass']);
82-
gulp.task('serve', ['browser-sync']);
76+
function watch_files(done) {
77+
const browserReload = () => {
78+
browserSync.reload();
79+
done();
80+
};
8381

84-
gulp.task('default', function(callback) {
85-
runSequence(
86-
'lint',
87-
'docs_sass',
88-
callback
89-
);
90-
});
82+
gulp.watch(src_paths.sass).on('change', gulp.series(lint_sass, docs_sass, browserReload));
83+
gulp.watch(src_paths.docs_sass).on('change', gulp.series(lint_sass, docs_sass, browserReload));
84+
gulp.watch(src_paths.docs_static).on('change', browserReload);
85+
}
9186

92-
gulp.task('watch', function() {
93-
gulp.watch(src_paths.sass, ['default']);
94-
gulp.watch(src_paths.docs_sass, ['docs_sass']);
95-
});
87+
exports.docs_sass = docs_sass;
88+
exports.lint = lint_sass;
89+
exports.serve = gulp.series(browser_sync, watch_files);
90+
exports.default = gulp.series(lint_sass, docs_sass);

0 commit comments

Comments
 (0)