Skip to content

Commit

Permalink
meta data files updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Crissov committed Jun 29, 2017
1 parent 0d4ae52 commit f544acb
Show file tree
Hide file tree
Showing 13 changed files with 141 additions and 142 deletions.
71 changes: 34 additions & 37 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
{
"name": "emojitwo",
"version": "2.3.0",
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of Unicode 9.0, Emoji 4.0) designed for the web.",
"main": "index.js",
"ignore": [
".*",
"bower.json",
"component.json",
"composer.json",
"package.json"
],
"emojitwo": "git://github.com/EmojiTwo/emojitwo.git#master",
"homepage": "https://emojitwo.github.com",
"authors": [
"Ranks.com",
"Christoph Päper"
],
"moduleType": [
"amd"
],
"license": [
"CC-BY-4.0"
],
"keywords": [
"emojione",
"Emoji One",
"emojitwo",
"Emoji Two",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode",
"emoji set"
]
}
"name": "emojitwo",
"version": "2.3.0",
"homepage": "https://emojitwo.github.io/",
"license": ["CC-BY-4.0"],
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of Unicode 9.0, Emoji 4.0) designed for the web.",
"keywords": [
"emojione",
"Emoji One",
"emojitwo",
"Emoji Two",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode"
],
"main": "index.js",
"authors": [
"Ranks.com",
"Christoph Päper"
],
"emojitwo": "git://github.com/EmojiTwo/emojitwo.git#master",
"ignore": [
".*",
"bower.json",
"component.json",
"composer.json",
"package.json"
],
"moduleType": [
"amd"
]
}
54 changes: 27 additions & 27 deletions component.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"version": "2.3.0",
"name": "emojitwo",
"license": "CC-BY-4.0",
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of Unicode 9.0, Emoji 4.0) designed for the web.",
"homepage": "https://emojitwo.github.io",
"keywords": [
"emojione",
"EmojiOne",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode",
"emojitwo",
"EmojiTwo"
],
"author": {
"name": "Ranks.com, Inc.",
"web": "https://emojione.com/"
},
"repository": "EmojiTwo/emojitwo",
"main": "index.js",
"scripts": [
"index.js"
]
}
"name": "emojitwo",
"version": "2.3.0",
"homepage": "https://emojitwo.github.io/",
"license": "CC-BY-4.0",
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of mid-2016: Unicode 9.0, Emoji 3.0) designed for the web.",
"keywords": [
"emojione",
"Emoji One",
"emojitwo",
"Emoji Two",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode"
],
"main": "index.js",
"scripts": [
"index.js"
],
"repository": "EmojiTwo/emojitwo",
"author": {
"name": "Ranks.com",
"web": "https://emojione.com/"
}
}
49 changes: 24 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{
"name": "emojitwo/emojitwo",
"version": "2.3.0",
"type": "library",
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of Unicode 9.0, Emoji 4.0) designed for the web.",
"keywords": [
"emojione",
"EmojiOne",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode",
"emojitwo",
"EmojiTwo"
],
"homepage": "https://emojitwo.github.io/",
"license": "CC-BY-4.0",
"require": {
},
"suggest": {
"emojione/assets": "More up-to-date emoji set with a more restrictive license and without SVGs.",
"emojione/emojione": "A set of libraries to make using emoji on your websites easier.",
"iamcal/php-emoji": "Uses iamcal/emoji-data to display emojis from most major vendors."
}
"name": "emojitwo/emojitwo",
"version": "2.3.0",
"homepage": "https://emojitwo.github.io/",
"license": "CC-BY-4.0",
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of mid-2016: Unicode 9.0, Emoji 3.0) designed for the web.",
"keywords": [
"emojione",
"Emoji One",
"emojitwo",
"Emoji Two",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode"
],
"type": "library",
"require": {},
"suggest": {
"emojione/assets": "More up-to-date emoji set with a more restrictive license and without SVGs.",
"emojione/emojione": "A set of libraries to make using emoji on your websites easier.",
"iamcal/php-emoji": "Uses iamcal/emoji-data to display emojis from most major vendors."
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed fonts/emojione-android.ttf
Binary file not shown.
Binary file removed fonts/emojione-apple.ttf
Binary file not shown.
Binary file removed fonts/emojione-svg.otf
Binary file not shown.
Binary file removed fonts/emojione-svg.woff
Binary file not shown.
Binary file removed fonts/emojione-svg.woff2
Binary file not shown.
59 changes: 31 additions & 28 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,47 @@ var fs = require('fs');
module.exports = JSON.parse(fs.readFileSync('emoji.json'));

/**
* File conversions
* File conversions
*/

var svg2png = require('svg-to-png'); // https://github.com/filamentgroup/svg-to-png

// var svgs-bw = "svg_bw";
// var pngs-bw = "png_bw"
// var fonts = "fonts";
// var sprite-maps = "sprites";
// var svgs-bw = 'svg_bw';
// var pngs-bw = 'png_bw'
// var fonts = 'fonts';
// var sprite-maps = 'sprites';

// TODO: optionally only generate files that do not exist yet

function updatePNGs(
vectorSource = "svg",
bitmapTargets = {
16: "png_16x16", // Text
// 18: "png_18x18", // Text
// 20: "png_20x20", // Text
24: "png_24x24", // Large Text
// 28: "png_28x28", // Text
// 30: "png_30x30", // Text
32: "png_32x32", // HiDPI Text
48: "png_48x48", // HiDPI Large Text
64: "png", // Traditional Default Size
72: "png_72x72", // Default Unicode Size
// 96: "png_96x96", // Text
128: "png_128x128", // XL
512: "png_512x512" // XXXL
vectorSource = 'svg',
bitmapTargets = {
16: 'png_16x16', // Text
// 18: 'png_18x18', // Text
// 20: 'png_20x20', // Text
24: 'png_24x24', // Large Text
// 28: 'png_28x28', // Text
// 30: 'png_30x30', // Text
32: 'png_32x32', // HiDPI Text
48: 'png_48x48', // HiDPI Large Text
64: 'png', // Traditional Default Size
72: 'png_72x72', // Default Unicode Size
// 96: 'png_96x96', // Text
128: 'png_128x128', // XL
512: 'png_512x512' // XXXL
},
optiPNG = 5 // compression level
) {
optiPNG = 5 // compression level
) {
for (var resolution in bitmapTargets) {
options = {defaultWidth: resolution, defaultHeight: resolution, compress: true, optimizationLevel: optiPNG};
svg2png.convert(vectorSource, bitmapTargets[resolution], options); // async, returns promise
console.log(vectorSource + " -> " + bitmapTargets[resolution] + " @ " + options.defaultWidth + "x" + options.defaultHeight + " " + options.optimizationLevel);
}
options = {
defaultWidth: resolution,
defaultHeight: resolution,
compress: true,
optimizationLevel: optiPNG
};
svg2png.convert(vectorSource, bitmapTargets[resolution], options); // async, returns promise
console.log(vectorSource + ' -> ' + bitmapTargets[resolution] + ' @ ' + options.defaultWidth + 'x' + options.defaultHeight + ' ' + options.optimizationLevel);
}
}

updatePNGs();

svg2png.convert("svg", "png");
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "emojitwo",
"version": "2.3.0",
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of Unicode 9.0, Emoji 4.0) designed for the web.",
"keywords": [
"emojione",
"EmojiOne",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode",
"emojitwo",
"EmojiTwo"
],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "EmojiTwo/emojitwo",
"license": "CC-BY-4.0",
"bugs": {
"url": "https://github.com/EmojiTwo/emojitwo/issues"
},
"homepage": "https//emojitwo.github.io/"
"name": "emojitwo",
"version": "2.3.0",
"homepage": "https://emojitwo.github.io/",
"license": "CC-BY-4.0",
"description": "Emojis in SVG and PNG format based upon Emojione. Emojitwo is a complete set of emojis (as of Unicode 9.0, Emoji 4.0) designed for the web.",
"keywords": [
"emojione",
"Emoji One",
"emojitwo",
"Emoji Two",
"emoji",
"emojis",
"emoticons",
"smileys",
"smilies",
"unicode"
],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "EmojiTwo/emojitwo",
"bugs": {
"url": "https://github.com/EmojiTwo/emojitwo/issues"
}
}

0 comments on commit f544acb

Please sign in to comment.