Skip to content

Commit

Permalink
Merge branch 'wbagdon-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
naeramarth7 committed Jun 17, 2016
2 parents 50b9b6a + d545567 commit 562472b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
4 changes: 2 additions & 2 deletions clean-greader.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/_config.scss.sample
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
*
* @type {Boolean}
*/
$small-main-feed-image: false;
$small-main-feed-image: true;
Binary file modified font/FontAwesome.otf
Binary file not shown.
21 changes: 15 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@ var $ = require('gulp-load-plugins') ();
var pkg = require('./package.json');

var gulp = require('gulp');
var del = require('del');

$.runSequence = require('run-sequence');
$.streamqueue = require('streamqueue');

gulp.task('build', function() {
$.runSequence(
'backupConfig',
'backupCustomConfig',
'setDefaultConfig',
'styles',
'setTempConfig'
'resetCustomConfig',
'cleanupTmp'
);
});

gulp.task('backupConfig', function() {
gulp.task('backupCustomConfig', function() {
// move the custom config
gulp.src('./css/_config.scss')
.pipe($.clean())
.pipe($.rename('_config.scss.tmp'))
.pipe(gulp.dest('./css/'));
});
Expand All @@ -30,14 +32,21 @@ gulp.task('setDefaultConfig', function() {
.pipe(gulp.dest('./css/'));
});

gulp.task('setTempConfig', function() {
gulp.task('resetCustomConfig', function() {
// put the custom config back
return gulp.src('./css/_config.scss.tmp')
.pipe($.clean())
.pipe($.rename('_config.scss'))
.pipe(gulp.dest('./css/'));
});

gulp.task('cleanupTmp', function() {
return del('./css/_config.scss.tmp')
});

gulp.task('deleteCustomConfig', function() {
return del('./css/_config.scss')
});

var sass = function () {
return gulp.src('./css/main.scss')
.pipe($.sass({ compress: true, sourceMap: true }))
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "clean-greader",
"version": "2.0.0",
"ttrssVersion": "16.1",
"version": "2.1.0",
"ttrssVersion": "16.3",
"description": "clean-greader - a Google Reader inspired Tiny Tiny RSS theme",
"main": "css/main.css",
"author": "Sven Flickinger <hc4e2k@gmail.com>",
Expand All @@ -10,16 +10,16 @@
"url": "https://github.com/naeramarth7/clean-greader.git"
},
"devDependencies": {
"del": "^2.2.0",
"gulp": "^3.9.1",
"gulp-clean": "^0.2.4",
"gulp-cssmin": "^0.1.7",
"gulp-header": "^1.7.1",
"gulp-livereload": "^1.5.0",
"gulp-load-plugins": "^0.8.1",
"gulp-livereload": "^3.8.1",
"gulp-load-plugins": "^1.2.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.2.0",
"gulp-util": "^2.2.20",
"gulp-util": "^3.0.7",
"run-sequence": "^1.1.5",
"streamqueue": "^0.1.3"
"streamqueue": "^1.1.1"
}
}

0 comments on commit 562472b

Please sign in to comment.