first commit
This commit is contained in:
34
build/node_modules/favicons/test/gulpfile.js
generated
vendored
Normal file
34
build/node_modules/favicons/test/gulpfile.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
const gulp = require('gulp'),
|
||||
gutil = require('gutil'),
|
||||
favicons = require('../').stream;
|
||||
|
||||
(() => {
|
||||
|
||||
'use strict';
|
||||
|
||||
gulp.task('default', () =>
|
||||
gulp.src('logo.png')
|
||||
.pipe(favicons({
|
||||
appName: 'Favicons 4.0',
|
||||
appDescription: 'Testing suite for Favicons',
|
||||
developerName: 'Hayden Bleasel',
|
||||
developerURL: 'http://haydenbleasel.com/',
|
||||
background: '#26353F',
|
||||
path: 'stream/',
|
||||
url: 'http://haydenbleasel.com/',
|
||||
display: 'browser',
|
||||
orientation: 'landscape',
|
||||
version: '1.0',
|
||||
logging: true,
|
||||
online: false,
|
||||
icons: {
|
||||
coast: false
|
||||
},
|
||||
html: 'stream.html',
|
||||
pipeHTML: true,
|
||||
replace: false
|
||||
}))
|
||||
.on('error', gutil.log)
|
||||
.pipe(gulp.dest('stream/')));
|
||||
|
||||
})();
|
||||
31
build/node_modules/favicons/test/index.html
generated
vendored
Normal file
31
build/node_modules/favicons/test/index.html
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<!doctype html><html><head>
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="images/apple-touch-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="images/apple-touch-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="images/apple-touch-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon-180x180.png">
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="images/apple-touch-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="images/apple-touch-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="images/apple-touch-icon-76x76.png">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="images/android-chrome-192x192.png">
|
||||
<link rel="manifest" href="images/manifest.json">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
|
||||
<link rel="icon" type="image/png" sizes="230x230" href="images/favicon-230x230.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon-96x96.png">
|
||||
<link rel="shortcut icon" href="images/favicon.ico">
|
||||
<link rel="yandex-tableau-widget" href="images/yandex-browser-manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#FFFFFF">
|
||||
<meta name="msapplication-TileImage" content="images/mstile-144x144.png">
|
||||
<meta name="msapplication-config" content="images/browserconfig.xml">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="images/apple-touch-startup-image-1024x748.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="images/apple-touch-startup-image-1536x2008.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="images/apple-touch-startup-image-2048x1496.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="images/apple-touch-startup-image-320x460.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="images/apple-touch-startup-image-640x1096.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="images/apple-touch-startup-image-640x920.png">
|
||||
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="images/apple-touch-startup-image-768x1004.png">
|
||||
</head><body></body></html>
|
||||
BIN
build/node_modules/favicons/test/logo.png
generated
vendored
Normal file
BIN
build/node_modules/favicons/test/logo.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
101
build/node_modules/favicons/test/test.js
generated
vendored
Normal file
101
build/node_modules/favicons/test/test.js
generated
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
/* eslint no-sync: 0 */
|
||||
|
||||
const favicons = require('../'),
|
||||
fs = require('fs'),
|
||||
mkdirp = require('mkdirp');
|
||||
|
||||
(() => {
|
||||
|
||||
'use strict';
|
||||
|
||||
favicons('./logo.png', {
|
||||
appName: 'Favicons 4.0',
|
||||
appDescription: 'Testing suite for Favicons',
|
||||
developerName: 'Hayden Bleasel',
|
||||
developerURL: 'http://haydenbleasel.com/',
|
||||
background: '#26353F',
|
||||
theme_color: 'aliceblue',
|
||||
dir: 'ltr',
|
||||
lang: 'en-US',
|
||||
path: 'images/',
|
||||
url: 'http://haydenbleasel.com/',
|
||||
display: 'browser',
|
||||
orientation: 'landscape',
|
||||
start_url: "/?android-homescreen=1",
|
||||
version: '1.0',
|
||||
logging: true,
|
||||
online: false,
|
||||
icons: {
|
||||
coast: false
|
||||
}
|
||||
}, (error, response) => {
|
||||
|
||||
if (error) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
console.log(`Images: ${ response.images }`);
|
||||
console.log(`Files: ${ response.files }`);
|
||||
console.log(`HTML: ${ response.html }`);
|
||||
|
||||
if (response.images) {
|
||||
mkdirp.sync('./images-offline/');
|
||||
response.images.forEach((image) =>
|
||||
fs.writeFileSync(`./images-offline/${ image.name }`, image.contents));
|
||||
}
|
||||
|
||||
if (response.files) {
|
||||
mkdirp.sync('./files-offline/');
|
||||
response.files.forEach((file) =>
|
||||
fs.writeFileSync(`./files-offline/${ file.name }`, file.contents));
|
||||
}
|
||||
|
||||
if (response.html) {
|
||||
fs.writeFileSync('./test.html', response.html.join('\n'));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
favicons('./logo.png', {
|
||||
appName: 'Favicons 4.0',
|
||||
appDescription: 'Testing suite for Favicons',
|
||||
developerName: 'Hayden Bleasel',
|
||||
developerURL: 'http://haydenbleasel.com/',
|
||||
background: '#26353F',
|
||||
path: 'images/',
|
||||
display: 'browser',
|
||||
orientation: 'landscape',
|
||||
version: '1.0',
|
||||
online: true,
|
||||
icons: {
|
||||
coast: false
|
||||
}
|
||||
}, (error, response) => {
|
||||
|
||||
if (error) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
console.log(`Images: ${ response.images }`);
|
||||
console.log(`Files: ${ response.files }`);
|
||||
console.log(`HTML: ${ response.html }`);
|
||||
|
||||
if (response.images) {
|
||||
mkdirp.sync('./images-online/');
|
||||
response.images.forEach((image) =>
|
||||
fs.writeFileSync(`./images-online/${ image.name }`, image.contents));
|
||||
}
|
||||
|
||||
if (response.files) {
|
||||
mkdirp.sync('./files-online/');
|
||||
response.files.forEach((file) =>
|
||||
fs.writeFileSync(`./files-online/${ file.name }`, file.contents));
|
||||
}
|
||||
|
||||
if (response.html) {
|
||||
fs.writeFileSync('./rfg.html', response.html.join('\n'));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user