cappasity-icons
Advanced tools
Comparing version 1.2.1 to 1.3.0
37
index.js
@@ -0,13 +1,17 @@ | ||
'use strict'; | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
// icon sizes | ||
const APPLE_TOUCH_ICON_SIZES = [57, 60, 72, 76, 114, 120, 144, 152, 180]; | ||
const FAVICON_SIZES = [16, 32, 96, 194]; | ||
var APPLE_TOUCH_ICON_SIZES = [57, 60, 72, 76, 114, 120, 144, 152, 180]; | ||
var FAVICON_SIZES = [16, 32, 96, 194]; | ||
// manifests | ||
const manifest = require('./rev-manifest.json'); | ||
const version = require('./rev-version.json'); | ||
var manifest = require('./rev-manifest.json'); | ||
var version = require('./rev-version.json'); | ||
// generates link for apple | ||
function appleIcon(size) { | ||
const dimensions = `${size}x${size}`; | ||
const name = `apple-touch-icon-${dimensions}.png`; | ||
var dimensions = size + 'x' + size; | ||
var name = 'apple-touch-icon-' + dimensions + '.png'; | ||
return { rel: 'apple-touch-icon', sizes: dimensions, href: manifest[name] }; | ||
@@ -18,4 +22,4 @@ } | ||
function faviconIcon(size) { | ||
const dimensions = `${size}x${size}`; | ||
const name = `favicon-${dimensions}.png`; | ||
var dimensions = size + 'x' + size; | ||
var name = 'favicon-' + dimensions + '.png'; | ||
return { rel: 'icon', type: 'image/png', sizes: dimensions, href: manifest[name] }; | ||
@@ -26,15 +30,4 @@ } | ||
module.exports = exports = { | ||
links: [ | ||
...APPLE_TOUCH_ICON_SIZES.map(appleIcon), | ||
...FAVICON_SIZES.map(faviconIcon), | ||
{ rel: 'icon', type: 'image/png', sizes: '192x192', href: manifest['android-chrome-192x192.png'] }, | ||
{ rel: 'manifest', href: manifest['manifest.json'] }, | ||
{ rel: 'mask-icon', href: manifest['safari-pinned-tab.svg'], color: '#5bbad5' }, | ||
], | ||
meta: [ | ||
{ name: 'msapplication-config', content: manifest['browserconfig.xml'] }, | ||
{ name: 'msapplication-TileColor', content: '#b91d47' }, | ||
{ name: 'msapplication-TileImage', content: manifest['mstile-144x144.png'] }, | ||
{ name: 'theme-color', content: '#ffffff' }, | ||
], | ||
links: [].concat(_toConsumableArray(APPLE_TOUCH_ICON_SIZES.map(appleIcon)), _toConsumableArray(FAVICON_SIZES.map(faviconIcon)), [{ rel: 'icon', type: 'image/png', sizes: '192x192', href: manifest['android-chrome-192x192.png'] }, { rel: 'manifest', href: manifest['manifest.json'] }, { rel: 'mask-icon', href: manifest['safari-pinned-tab.svg'], color: '#5bbad5' }]), | ||
meta: [{ name: 'msapplication-config', content: manifest['browserconfig.xml'] }, { name: 'msapplication-TileColor', content: '#b91d47' }, { name: 'msapplication-TileImage', content: manifest['mstile-144x144.png'] }, { name: 'theme-color', content: '#ffffff' }] | ||
}; | ||
@@ -46,2 +39,2 @@ | ||
// export revision version | ||
exports.version = version; | ||
exports.version = version; |
{ | ||
"name": "cappasity-icons", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "contains cappasity icons for websites", | ||
@@ -22,2 +22,4 @@ "main": "index.js", | ||
"babel-eslint": "^6.0.2", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"dotenv": "^2.0.0", | ||
@@ -28,2 +30,3 @@ "eslint": "^2.7.0", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-change": "^1.0.0", | ||
@@ -30,0 +33,0 @@ "gulp-gcloud": "^2.2.0", |
{ | ||
"hash": "51b06bf5e8f83bbb56e912ee35404143", | ||
"timestamp": "2016-04-09T10:31:07.978Z" | ||
"timestamp": "2016-04-09T11:23:05.928Z" | ||
} |
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
57493
37
16
64