1
0
Fork 0
mirror of https://github.com/veggiemonk/awesome-docker.git synced 2025-04-19 07:28:05 +02:00

Github Actions for PR

This commit is contained in:
Julien Bisconti 2020-04-13 16:15:18 +02:00
parent 9e09f33925
commit bf2e6ae389
No known key found for this signature in database
GPG key ID: 62772C6698F736CB
8 changed files with 381 additions and 29 deletions

View file

@ -2,7 +2,6 @@ const fs = require('fs-extra');
const cheerio = require('cheerio');
const showdown = require('showdown');
const Parcel = require('parcel-bundler');
// const sm = require('sitemap');
const { SitemapStream, streamToPromise } = require('sitemap');
process.env.NODE_ENV = 'production';
@ -13,7 +12,7 @@ const LOG = {
if (process.env.DEBUG) console.log('💡 DEBUG: ', { ...args });
},
};
const handleFailure = err => {
const handleFailure = (err) => {
LOG.error(err);
process.exit(1);
};
@ -90,7 +89,7 @@ const bundle = () => {
smStream.end();
return streamToPromise(smStream);
})
.then(sm =>
.then((sm) =>
// Creates a sitemap object given the input configuration with URLs
fs.outputFile(
'dist/sitemap.xml',