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:
parent
9e09f33925
commit
bf2e6ae389
8 changed files with 381 additions and 29 deletions
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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue