arredemo
Version:
Instantly build a static site for your package
18 lines (14 loc) • 456 B
JavaScript
import { makeArreDemoBuild } from "#scripts/build/index.mjs"
import { buildHelp } from "#scripts/help/actions.mjs"
import { arreInit } from "#scripts/init/index.mjs"
async function arredemo(pkgPath, config) {
try {
// Get or init the config
const arreConfig = await arreInit(pkgPath, config)
// Save the build
await makeArreDemoBuild(pkgPath, arreConfig)
} catch (error) {
buildHelp(pkgPath, error)
}
}
export default arredemo