-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabriel Ledung
committed
Oct 2, 2015
1 parent
2a4d13a
commit 0779d97
Showing
87 changed files
with
7,996 additions
and
10 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 @@ | ||
node_modules/ | ||
dist/ | ||
.idea/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,10 +1,42 @@ | ||
var gulp = require('gulp'); | ||
var concat = require('gulp-concat'); | ||
'use strict'; | ||
|
||
gulp.task('doc-gen', function() { | ||
return gulp.src('icons/*') | ||
.pipe(concat('index.html')) | ||
.pipe(gulp.dest('dist')); | ||
var gulp = require('gulp'), | ||
svgSprite = require('gulp-svg-sprite'), | ||
plumber = require('gulp-plumber'), | ||
replace = require('gulp-replace'), | ||
svgGlob = '**/*.svg', | ||
config = { | ||
"log": "info", | ||
"svg": { | ||
"dimensionAttributes": false | ||
}, | ||
"shape": { | ||
dimension : { // Dimension related options | ||
maxWidth : 100, // Max. shape width | ||
precision : 2, // Floating point precision | ||
attributes : false // Width and height attributes on embedded shapes | ||
} | ||
}, | ||
"mode": { | ||
symbol: { | ||
sprite : "sb1-icons.svg", | ||
example : true | ||
} | ||
}, | ||
"variables": {} | ||
}; | ||
|
||
gulp.task('sb1-icons', function() { | ||
return gulp.src(svgGlob, {cwd: 'icons'}) | ||
.pipe(plumber()) | ||
.pipe(svgSprite(config)).on('error', function(error){ console.log(error); }) | ||
.pipe(gulp.dest('dist/sb1-icons')) | ||
}); | ||
|
||
gulp.task('default', ['doc-gen']); | ||
gulp.task('sfo-icons', function() { | ||
return gulp.src(svgGlob, {cwd: 'sfo-icons'}) | ||
.pipe(plumber()) | ||
.pipe(replace(' fill="#002776"', '')) // Remove royal-blue | ||
.pipe(svgSprite(config)).on('error', function(error){ console.log(error); }) | ||
.pipe(gulp.dest('dist/sfo-icons')) | ||
}); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.