Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/0.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yago committed Feb 8, 2016
2 parents df9dec2 + f3e32f3 commit efff142
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions app/templates/tasks/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ module.exports = function() {
* Build icons font and stylesheets
*/
gulp.task('icons', function(){
gulp.src(config.assets + 'icons/**/*')
gulp.src(config.assets + 'icons/**/*.svg')
.pipe($.iconfont({
fontName: name,
appendCodepoints: true,
normalize:true,
fontHeight: 1001
}))
.on('codepoints', function(codepoints, options) {
.on('glyphs', function(glyphs, options) {
gulp.src('node_modules/toolbox-utils/templates/_icons.scss')
.pipe($.consolidate('lodash', {
glyphs: codepoints,
glyphs: glyphs.map(function(glyph) {
return { name: glyph.name, codepoint: glyph.unicode[0].charCodeAt(0) }
}),
fontName: name,
fontPath: '../fonts/',
className: name
Expand Down
4 changes: 2 additions & 2 deletions app/templates/tasks/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ module.exports = function() {
* Build styles from SCSS files
* With error reporting on compiling (so that there's no crash)
*/
return gulp.task('styles', function() {
gulp.task('styles', function() {
if (argv.production) { console.log('[styles] Production mode' ); }
else { console.log('[styles] Dev mode'); }

gulp.src([config.assets + 'sass/' + iconFontName + '.scss', config.assets + 'sass/main.scss'])
return gulp.src([config.assets + 'sass/' + iconFontName + '.scss', config.assets + 'sass/main.scss'])
.pipe($.if(!argv.production, $.sourcemaps.init()))
.pipe($.sass({
outputStyle: 'nested', // libsass doesn't support expanded yet
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-toolbox",
"version": "0.4.0",
"version": "0.4.1",
"description": "Yeoman generator",
"license": "MIT",
"main": "app/index.js",
Expand Down
2 changes: 2 additions & 0 deletions script/templates/jquery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* global jQuery */

(function($){
$(document).ready(function(){
// your code here
Expand Down

0 comments on commit efff142

Please sign in to comment.