From 684471a54bf22b2b8e58f783374ba2d63dc075e9 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Sat, 27 Jan 2024 12:06:41 -0800 Subject: [PATCH] some more progress --- package.json | 3 +- packages/create-astro-ghostcms/LICENSE | 21 + packages/create-astro-ghostcms/README.md | 13 + .../create-astro-ghostcms.mjs | 15 + packages/create-astro-ghostcms/index.d.ts | 9 + packages/create-astro-ghostcms/package.json | 71 ++ .../create-astro-ghostcms/src/lib/utils.js | 61 ++ packages/create-astro-ghostcms/src/main.js | 113 +++ .../src/runners/basic.js | 224 ++++++ .../src/templates/_shared/.env | 2 + .../src/templates/basic/.gitignore | 21 + .../templates/basic/.vscode/extensions.json | 4 + .../src/templates/basic/.vscode/launch.json | 11 + .../src/templates/basic/LICENSE | 21 + .../src/templates/basic/astro.config.mjs | 10 + .../src/templates/basic/package.json | 22 + .../src/templates/basic/public/favicon.svg | 9 + .../src/templates/basic/src/env.d.ts | 9 + .../src/templates/basic/tsconfig.json | 3 + packages/create-astro-ghostcms/tsconfig.json | 26 + packages/create-astro-ghostcms/types.d.ts | 3 + pnpm-lock.yaml | 648 ++++++++++++++++-- 22 files changed, 1251 insertions(+), 68 deletions(-) create mode 100644 packages/create-astro-ghostcms/LICENSE create mode 100644 packages/create-astro-ghostcms/README.md create mode 100644 packages/create-astro-ghostcms/create-astro-ghostcms.mjs create mode 100644 packages/create-astro-ghostcms/index.d.ts create mode 100644 packages/create-astro-ghostcms/package.json create mode 100644 packages/create-astro-ghostcms/src/lib/utils.js create mode 100644 packages/create-astro-ghostcms/src/main.js create mode 100644 packages/create-astro-ghostcms/src/runners/basic.js create mode 100644 packages/create-astro-ghostcms/src/templates/_shared/.env create mode 100644 packages/create-astro-ghostcms/src/templates/basic/.gitignore create mode 100644 packages/create-astro-ghostcms/src/templates/basic/.vscode/extensions.json create mode 100644 packages/create-astro-ghostcms/src/templates/basic/.vscode/launch.json create mode 100644 packages/create-astro-ghostcms/src/templates/basic/LICENSE create mode 100644 packages/create-astro-ghostcms/src/templates/basic/astro.config.mjs create mode 100644 packages/create-astro-ghostcms/src/templates/basic/package.json create mode 100644 packages/create-astro-ghostcms/src/templates/basic/public/favicon.svg create mode 100644 packages/create-astro-ghostcms/src/templates/basic/src/env.d.ts create mode 100644 packages/create-astro-ghostcms/src/templates/basic/tsconfig.json create mode 100644 packages/create-astro-ghostcms/tsconfig.json create mode 100644 packages/create-astro-ghostcms/types.d.ts diff --git a/package.json b/package.json index 5ffbe2a4..1082e623 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "api:test": "pnpm --filter astro-ghostcms test", "api:test:watch": "pnpm --filter astro-ghostcms test:watch", "api:test:coverage": "pnpm --filter astro-ghostcms test:coverage", - "api:test:ci": "pnpm --filter astro-ghostcms test:ci" + "api:test:ci": "pnpm --filter astro-ghostcms test:ci", + "create:dry": "pnpm --filter create-astro-ghostcms dryrun" }, "devDependencies": { "@biomejs/biome": "1.5.3", diff --git a/packages/create-astro-ghostcms/LICENSE b/packages/create-astro-ghostcms/LICENSE new file mode 100644 index 00000000..848a13f2 --- /dev/null +++ b/packages/create-astro-ghostcms/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Adam Matthiesen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/create-astro-ghostcms/README.md b/packages/create-astro-ghostcms/README.md new file mode 100644 index 00000000..2922cd98 --- /dev/null +++ b/packages/create-astro-ghostcms/README.md @@ -0,0 +1,13 @@ +# `@matthiesenxyz/create-astro-ghostcms` + +Utility to quickly get started with our Integration and astro. + +```sh +npx @matthiesenxyz/create-astro-ghostcms