Skip to content

Commit

Permalink
Killing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cousin committed Nov 5, 2014
1 parent cca3791 commit 8cee112
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Also, with Sketch 3.1, file type and extension were reviewed. Sketchfiles are no

### File structure
Tidy your bedroom, prepare your files and sort them, as done in this example:

| dist *
|- css *
|- font *
Expand All @@ -40,7 +40,7 @@ Tidy your bedroom, prepare your files and sort them, as done in this example:
|- sketch
|- templates

(*) these folders will be created by Gulp.
(*) these folders will be created by Gulp.

### Plugins
For our spectific task, we will used the following plugins:
Expand All @@ -59,7 +59,7 @@ __Before you launch the task : get your Sketchfile ready by flattening your icon
gulp.task('icons', function(){

return gulp.src('src/sketch/icons.sketch')

// extracting SVG from Sketchfile
.pipe(sketch({
export: 'slices',
Expand All @@ -68,7 +68,7 @@ __Before you launch the task : get your Sketchfile ready by flattening your icon
saveForWeb: 'yes'
}))
.pipe(gulp.dest('dist/svg/'))

// creating SVG, TTF, WOFF, EOT
.pipe(iconfont({
fontName: 'icons',
Expand All @@ -77,7 +77,7 @@ __Before you launch the task : get your Sketchfile ready by flattening your icon
centerHorizontally: true,
fontHeight: 100 // IMPORTANT
}))

// creating CSS files and sample page
.on('codepoints', function(codepoints, options) {

Expand All @@ -100,13 +100,13 @@ __Before you launch the task : get your Sketchfile ready by flattening your icon
.pipe(consolidate('lodash', iconsOptions))
.pipe(rename('icons-ie.css'))
.pipe(gulp.dest('dist/css/'));

// creating a sample page
gulp.src('src/templates/icon-template.html')
.pipe(consolidate('lodash', iconsOptions))
.pipe(rename({ basename:'sample' }))
.pipe(gulp.dest('dist/'));

})
.pipe(gulp.dest('dist/font/'));

Expand Down

0 comments on commit 8cee112

Please sign in to comment.