mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
28 lines
544 B
JavaScript
28 lines
544 B
JavaScript
import fs from 'fs-extra'
|
|
|
|
import {
|
|
downloadStorkToml
|
|
} from './helpers/api/static.js'
|
|
|
|
import {
|
|
downloadStorkExecutable,
|
|
writeStorkToml
|
|
} from './helpers/stork/toml.js'
|
|
|
|
;(async () => {
|
|
|
|
await downloadStorkToml()
|
|
|
|
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()
|
|
})()
|