-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from kni-labs/dev
- Shiny new gulp/browser-sync dev environment /via @connorwyatt - Updated Facebook icon - New delicious icon - Added vk icon per #80 - fixed color for hackernews - Added delicious icon via @czerasz per #73 - Optimized code and inline svgs
- Loading branch information
Showing
33 changed files
with
897 additions
and
1,690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
.DS_Store | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
var gulp = require('gulp'), | ||
sass = require('gulp-sass'), | ||
uglify = require('gulp-uglify'), | ||
autoprefixer = require('gulp-autoprefixer'), | ||
minifyCss = require('gulp-minify-css'), | ||
rename = require('gulp-rename'), | ||
filter = require('gulp-filter'), | ||
util = require('gulp-util'), | ||
imagemin = require('gulp-imagemin'), | ||
browserSync = require('browser-sync').create(); | ||
|
||
gulp.task('build', ['sass', 'uglify', 'svg']); | ||
|
||
gulp.task('serve', ['sass', 'uglify', 'svg'], function() { | ||
|
||
browserSync.init({ | ||
server: "." | ||
}); | ||
|
||
gulp.watch("scss/*.scss", ['sass']); | ||
gulp.watch("*.html").on('change', browserSync.reload); | ||
gulp.watch("*.js").on('change', browserSync.reload); | ||
}); | ||
|
||
gulp.task('sass', function() { | ||
gulp.src(['scss/*.scss']) | ||
.pipe(sass()) | ||
.on('error', util.log) | ||
.pipe(autoprefixer()) | ||
.pipe(minifyCss()) | ||
.pipe(gulp.dest('css/')) | ||
.pipe(filter('**/*.css')) | ||
.pipe(browserSync.reload({stream:true})); | ||
}); | ||
|
||
gulp.task('uglify', function() { | ||
gulp.src(['js/rrssb.js']) | ||
.on('error', util.log) | ||
.pipe(gulp.dest('js')); | ||
}); | ||
|
||
gulp.task('svg', function() { | ||
gulp.src(['icons/*.svg', '!icons/*.min.svg']) | ||
.pipe(imagemin()) | ||
.on('error', util.log) | ||
.pipe(rename({ | ||
extname: '.min.svg' | ||
})) | ||
.pipe(gulp.dest('icons/')); | ||
}); | ||
|
||
gulp.task('default', ['serve']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "RRSSB", | ||
"version": "1.7.7", | ||
"name": "rrssb", | ||
"version": "1.8.0", | ||
"authors": [ | ||
"(Joshua Tuscan <[email protected]>)", | ||
"(Daniel Box <[email protected]>)" | ||
|
Oops, something went wrong.