Merge Branch create-util #19
|
@ -3,6 +3,10 @@
|
|||
Utility to quickly get started with our Integration and astro.
|
||||
|
||||
```sh
|
||||
npx @matthiesenxyz/create-astro-ghostcms
|
||||
|
||||
# OR
|
||||
|
||||
npx @matthiesenxyz/create-astro-ghostcms <template> <project_directory>
|
||||
```
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"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",
|
||||
"type": "module",
|
||||
"main": "./create-astro-ghostcms.mjs",
|
||||
|
@ -11,8 +11,6 @@
|
|||
".": "./create-astro-ghostcms.mjs"
|
||||
},
|
||||
"scripts": {
|
||||
"dryrun": "node ./create-astro-ghostcms.mjs --dry",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"author": {
|
||||
|
@ -34,9 +32,9 @@
|
|||
"src",
|
||||
"create-astro-ghostcms",
|
||||
"index.d.ts",
|
||||
"types.d.ts",
|
||||
"LICENSE",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
"types.d.ts"
|
||||
],
|
||||
"dependencies": {
|
||||
"@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'))}`));
|
||||
}
|
||||
|
||||
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() {
|
||||
prompts.note("Dont forget to modify your .env file for YOUR ghost install!");
|
||||
prompts.note(nextSteps);
|
||||
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
|
||||
if (initGitRepo) {
|
||||
if (dryRun) {
|
||||
|
@ -62,7 +62,7 @@ export async function createBasic(ctx) {
|
|||
}
|
||||
|
||||
// 4. Install dependencies
|
||||
installDeps = fCheck.installDeps ?? installDeps;
|
||||
installDeps = installDeps ?? fCheck.installDeps;
|
||||
const pm = ctx.pkgManager ?? "pnpm";
|
||||
if (installDeps) {
|
||||
spinner.start(`Installing dependencies with ${pm}`);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "Default",
|
||||
"include": ["."],
|
||||
"exclude": ["node_modules", "templates/react"],
|
||||
"exclude": ["node_modules", "templates/*"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
|
Loading…
Reference in New Issue