Merge Branch create-util #19
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/create-astro-ghostcms",
|
"name": "@matthiesenxyz/create-astro-ghostcms",
|
||||||
"version": "0.0.1-dev36",
|
"version": "0.0.1-dev37",
|
||||||
"description": "Utility to quickly get started with our Integration and astro",
|
"description": "Utility to quickly get started with our Integration and astro",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./create-astro-ghostcms.mjs",
|
"main": "./create-astro-ghostcms.mjs",
|
||||||
|
|
|
@ -6,14 +6,6 @@ import { createBasic } from "./runners/basic.js";
|
||||||
import { createStarterKit } from "./runners/starterkit.js";
|
import { createStarterKit } from "./runners/starterkit.js";
|
||||||
import fse from "fs-extra";
|
import fse from "fs-extra";
|
||||||
|
|
||||||
async function pkgVer () {
|
|
||||||
try {
|
|
||||||
const packageObj = await fse.readJson('../package.json')
|
|
||||||
console.log(packageObj.version)
|
|
||||||
} catch (err) {
|
|
||||||
console.error(err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function main() {
|
export async function main() {
|
||||||
const exit = () => process.exit(0);
|
const exit = () => process.exit(0);
|
||||||
|
@ -52,6 +44,15 @@ export async function main() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function pkgVer () {
|
||||||
|
try {
|
||||||
|
const packageObj = await fse.readJson('../package.json')
|
||||||
|
console.log(packageObj.version)
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 1. Say hello!
|
// 1. Say hello!
|
||||||
p.intro(c.bgMagenta(c.black(` ${c.bold("Astro-GhostCMS Create Utility - By MatthiesenXYZ")} ${c.underline(`( ${pkgVer} )`)} ${c.italic(dryRun ? "[Dry Run] ":" ")}`)))
|
p.intro(c.bgMagenta(c.black(` ${c.bold("Astro-GhostCMS Create Utility - By MatthiesenXYZ")} ${c.underline(`( ${pkgVer} )`)} ${c.italic(dryRun ? "[Dry Run] ":" ")}`)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue