doesitarm/build-stork.js
2022-05-09 16:16:57 -05:00

22 lines
448 B
JavaScript

import fs from 'fs-extra'
import {
downloadStorkExecutable,
writeStorkToml
} from './helpers/stork/toml.js'
;(async () => {
await downloadStorkExecutable()
console.log( 'Building Stork index TOML...' )
// Get Sitemap Endpoints JSON
const sitemap = await fs.readJson( './static/sitemap-endpoints.json' )
await writeStorkToml( sitemap )
// From here we hand off to the Stork executable
process.exit()
})()