Commit 5ef613fa authored by Terion's avatar Terion

icons task

parent e31d7dec
gulp = require 'gulp'
gulp.task 'icons', ->
iconfont = require 'gulp-iconfont'
iconfontCss = require 'gulp-iconfont-css'
runTimestamp = Math.round(Date.now() / 1000)
gulp.src 'src/img/icons/*.svg'
.pipe(iconfontCss({
fontName: 'icons',
#path: 'app/assets/css/templates/_icons.scss', # path to css template
targetPath: '../../css/icons.css',
fontPath: '../fonts/icons/'
}))
.pipe(iconfont({
fontName: 'icons',
appendUnicode: true,
formats: ['ttf', 'eot', 'woff', 'svg'],
timestamp: runTimestamp
}))
.on('glyphs', (glyphs, options)->
)
.pipe gulp.dest 'build/fonts/icons'
\ No newline at end of file
......@@ -4,7 +4,7 @@ gulp = require 'gulp'
requireDir = require('require-dir')
tasks = requireDir('./gulp')
gulp.task 'default', ['jade', 'fonts', 'img', 'sass', 'js', 'coffee']
gulp.task 'default', ['jade', 'fonts', 'img', 'icons', 'sass', 'js', 'coffee']
gulp.task 'watch', ->
gulp.watch 'src/sass/**/*.sass', ['sass']
......
......@@ -13,6 +13,7 @@
"author": "Volodymyr Kornilov",
"license": "BSD",
"dependencies": {
"bootstrap-sass": "^3.0.0",
"bower": "~1.3",
"coffee-script": "~1.8",
"glob": "~4",
......@@ -20,19 +21,20 @@
"gulp-autoprefixer": "1.0.1",
"gulp-coffee": "~2.2",
"gulp-csso": "^0.2.9",
"gulp-iconfont": "^5.0.0",
"gulp-iconfont-css": "^2.0.0",
"gulp-if-else": "^1.0.3",
"gulp-imagemin": "^2.0.0",
"gulp-include": "^1.1.0",
"gulp-jade": "*",
"gulp-rename": "^1.2.0",
"gulp-sass": "^2",
"gulp-serve": "^1.0.0",
"gulp-sourcemaps": "^1.6",
"gulp-uglify": "^1.2.0",
"gulp-util": "~3.0",
"imagemin-pngquant": "^4.0.0",
"require-dir": "^0.3.0",
"yargs": "^3.19.0",
"bootstrap-sass": "^3.0.0",
"gulp-sass": "^2",
"gulp-sourcemaps": "^1.6"
"yargs": "^3.19.0"
}
}
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="32px" height="32px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve">
<circle cx="16" cy="16" r="16"/>
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment