mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2025-11-23 17:04:28 +01:00
Github Actions for PR
This commit is contained in:
5
build.js
5
build.js
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user