UNPKG

arredemo

Version:

Instantly build a static site for your package

31 lines (22 loc) 710 B
/** * Copyright (c) 2022-present, afialapis.com * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict' import {buildHelp} from '#scripts/help/actions.mjs' import { makeArreDemoBuild } from './index.mjs' import {arreInit} from '#scripts/init/index.mjs' (async () => { const pkgPath= process.env.PWD const injectValues = process.argv.slice(2) // Get or init the config const arreConfig = await arreInit(pkgPath, injectValues) // Save the build await makeArreDemoBuild(pkgPath, arreConfig) })().catch((error) => { const pkgPath= process.env.PWD process.exitCode = 1 buildHelp(pkgPath, error) })