gulp-ttf2eot
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "gulp-ttf2eot", | ||
"description": "Create an EOT font from a TTF font", | ||
"version": "1.0.2", | ||
"description": "Create an EOT font from a TTF one", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/nfroidure/gulp-ttf2eot", | ||
@@ -28,9 +28,11 @@ "author": { | ||
"scripts": { | ||
"test": "mocha tests/*.mocha.js" | ||
"test": "mocha tests/*.mocha.js", | ||
"coveralls": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", | ||
"cover": "./node_modules/istanbul/lib/cli.js cover --report html ./node_modules/mocha/bin/_mocha -- tests/*.mocha.js -R spec -t 5000" | ||
}, | ||
"dependencies": { | ||
"ttf2eot": "latest", | ||
"gulp-util": "~3.0.5", | ||
"bufferstreams": "1.0.1", | ||
"readable-stream": "^1.0.33" | ||
"bufferstreams": "^1.0.2", | ||
"gulp-util": "^3.0.6", | ||
"readable-stream": "^2.0.1", | ||
"ttf2eot": "^1.3.0" | ||
}, | ||
@@ -47,6 +49,9 @@ "keywords": [ | ||
"devDependencies": { | ||
"gulp": "~3.9.0", | ||
"mocha": "~2.2.5", | ||
"streamtest": "^1.2.0" | ||
"coveralls": "^2.11.2", | ||
"gulp": "^3.9.0", | ||
"istanbul": "^0.3.16", | ||
"mocha": "^2.2.5", | ||
"mocha-lcov-reporter": "^0.0.2", | ||
"streamtest": "^1.2.1" | ||
} | ||
} |
# gulp-ttf2eot | ||
> Create a EOT font from a TTF font with [Gulp](http://gulpjs.com/). | ||
> Create an EOT font from a TTF one with [Gulp](http://gulpjs.com/). | ||
[![NPM version](https://badge.fury.io/js/gulp-ttf2eot.png)](https://npmjs.org/package/gulp-ttf2eot) [![Build status](https://secure.travis-ci.org/nfroidure/gulp-ttf2eot.png)](https://travis-ci.org/nfroidure/gulp-ttf2eot) [![Dependency Status](https://david-dm.org/nfroidure/gulp-ttf2eot.png)](https://david-dm.org/nfroidure/gulp-ttf2eot) [![devDependency Status](https://david-dm.org/nfroidure/gulp-ttf2eot/dev-status.png)](https://david-dm.org/nfroidure/gulp-ttf2eot#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/gulp-ttf2eot/badge.png?branch=master)](https://coveralls.io/r/nfroidure/gulp-ttf2eot?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/gulp-ttf2eot.png)](https://codeclimate.com/github/nfroidure/gulp-ttf2eot) | ||
[![NPM version](https://badge.fury.io/js/gulp-ttf2eot.svg)](https://npmjs.org/package/gulp-ttf2eot) [![Build status](https://secure.travis-ci.org/nfroidure/gulp-ttf2eot.svg)](https://travis-ci.org/nfroidure/gulp-ttf2eot) [![Dependency Status](https://david-dm.org/nfroidure/gulp-ttf2eot.svg)](https://david-dm.org/nfroidure/gulp-ttf2eot) [![devDependency Status](https://david-dm.org/nfroidure/gulp-ttf2eot/dev-status.svg)](https://david-dm.org/nfroidure/gulp-ttf2eot#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/gulp-ttf2eot/badge.svg?branch=master)](https://coveralls.io/r/nfroidure/gulp-ttf2eot?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/gulp-ttf2eot.svg)](https://codeclimate.com/github/nfroidure/gulp-ttf2eot) | ||
@@ -6,0 +6,0 @@ ## Usage |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var path = require('path'); | ||
@@ -7,3 +9,3 @@ var Stream = require('readable-stream'); | ||
const PLUGIN_NAME = 'gulp-ttf2eot'; | ||
var PLUGIN_NAME = 'gulp-ttf2eot'; | ||
@@ -24,4 +26,4 @@ // File level transform function | ||
cb(null, buf); | ||
} catch(err) { | ||
cb(new gutil.PluginError(PLUGIN_NAME, err, {showStack: true})); | ||
} catch(err2) { | ||
cb(new gutil.PluginError(PLUGIN_NAME, err2, {showStack: true})); | ||
} | ||
@@ -68,3 +70,3 @@ | ||
} | ||
file.path = gutil.replaceExtension(file.path, ".eot"); | ||
@@ -88,3 +90,3 @@ | ||
} | ||
stream.push(file); | ||
@@ -96,3 +98,3 @@ done(); | ||
}; | ||
} | ||
@@ -104,2 +106,1 @@ // Export the file level transform function for other plugins usage | ||
module.exports = ttf2eotGulp; | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17565
10
221
6
+ Addedargparse@0.1.16(transitive)
+ Addedbufferstreams@1.1.3(transitive)
+ Addedttf2eot@1.3.0(transitive)
+ Addedunderscore@1.7.0(transitive)
+ Addedunderscore.string@2.4.0(transitive)
- Removedargparse@2.0.1(transitive)
- Removedbufferstreams@1.0.1(transitive)
- Removedttf2eot@3.1.0(transitive)
Updatedbufferstreams@^1.0.2
Updatedgulp-util@^3.0.6
Updatedreadable-stream@^2.0.1
Updatedttf2eot@^1.3.0