Merge Branch create-util #19
|
@ -3,6 +3,10 @@
|
||||||
Utility to quickly get started with our Integration and astro.
|
Utility to quickly get started with our Integration and astro.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
npx @matthiesenxyz/create-astro-ghostcms
|
||||||
|
|
||||||
|
# OR
|
||||||
|
|
||||||
npx @matthiesenxyz/create-astro-ghostcms <template> <project_directory>
|
npx @matthiesenxyz/create-astro-ghostcms <template> <project_directory>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/create-astro-ghostcms",
|
"name": "@matthiesenxyz/create-astro-ghostcms",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1-dev01",
|
||||||
"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",
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
".": "./create-astro-ghostcms.mjs"
|
".": "./create-astro-ghostcms.mjs"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dryrun": "node ./create-astro-ghostcms.mjs --dry",
|
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -34,9 +32,9 @@
|
||||||
"src",
|
"src",
|
||||||
"create-astro-ghostcms",
|
"create-astro-ghostcms",
|
||||||
"index.d.ts",
|
"index.d.ts",
|
||||||
"types.d.ts",
|
"LICENSE",
|
||||||
"README.md",
|
"README.md",
|
||||||
"LICENSE"
|
"types.d.ts"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@clack/prompts": "^0.7.0",
|
"@clack/prompts": "^0.7.0",
|
||||||
|
|
|
@ -89,8 +89,10 @@ export async function main() {
|
||||||
prompts.outro(color.reset(`Problems? ${color.underline(color.cyan('https://github.com/MatthiesenXYZ/astro-ghostcms/issues'))}`));
|
prompts.outro(color.reset(`Problems? ${color.underline(color.cyan('https://github.com/MatthiesenXYZ/astro-ghostcms/issues'))}`));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const nextSteps = "If you didnt opt to install Dependencies dont forget to run \n 'npm install'/'pnpm install'/'yarn install' inside your project directory \n Dont forget to modify your .env file for YOUR ghost install!"
|
||||||
|
|
||||||
function success() {
|
function success() {
|
||||||
prompts.note("Dont forget to modify your .env file for YOUR ghost install!");
|
prompts.note(nextSteps);
|
||||||
prompts.outro(color.green("Deployment Complete!"));
|
prompts.outro(color.green("Deployment Complete!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ export async function createBasic(ctx) {
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
initGitRepo = fCheck.initGitRepo ?? initGitRepo;
|
initGitRepo = initGitRepo ?? fCheck.initGitRepo;
|
||||||
// 3. Initialize git repo
|
// 3. Initialize git repo
|
||||||
if (initGitRepo) {
|
if (initGitRepo) {
|
||||||
if (dryRun) {
|
if (dryRun) {
|
||||||
|
@ -62,7 +62,7 @@ export async function createBasic(ctx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. Install dependencies
|
// 4. Install dependencies
|
||||||
installDeps = fCheck.installDeps ?? installDeps;
|
installDeps = installDeps ?? fCheck.installDeps;
|
||||||
const pm = ctx.pkgManager ?? "pnpm";
|
const pm = ctx.pkgManager ?? "pnpm";
|
||||||
if (installDeps) {
|
if (installDeps) {
|
||||||
spinner.start(`Installing dependencies with ${pm}`);
|
spinner.start(`Installing dependencies with ${pm}`);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"$schema": "https://json.schemastore.org/tsconfig",
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
"display": "Default",
|
"display": "Default",
|
||||||
"include": ["."],
|
"include": ["."],
|
||||||
"exclude": ["node_modules", "templates/react"],
|
"exclude": ["node_modules", "templates/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
|
|
Loading…
Reference in New Issue