From 811e3e44b7c0e2b4958905d801af8cbca2817c6e Mon Sep 17 00:00:00 2001 From: Seth Battis Date: Thu, 14 Mar 2024 15:33:46 -0400 Subject: [PATCH] separate examples & projects --- .github/workflows/split.yml | 2 -- examples/oauth2/.gitignore | 1 + .../oauth2-example => examples/oauth2}/LICENSE | 0 examples/oauth2/composer.json | 14 ++++++++++++++ .../oauth2}/public/index.html | 0 .../oauth2}/public/refresh.php | 0 .../oauth2}/public/token.php | 0 monorepo-builder.php | 2 +- packages/oauth2/README.md | 2 +- 9 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 examples/oauth2/.gitignore rename {packages/oauth2-example => examples/oauth2}/LICENSE (100%) create mode 100755 examples/oauth2/composer.json rename {packages/oauth2-example => examples/oauth2}/public/index.html (100%) rename {packages/oauth2-example => examples/oauth2}/public/refresh.php (100%) rename {packages/oauth2-example => examples/oauth2}/public/token.php (100%) diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index 6f6605c2..d7a4a029 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -19,8 +19,6 @@ jobs: split_repository: "sky-api.appengine-client" - local_path: "oauth2" split_repository: "OAuth2-BlackbaudSKY" - - local_path: "oauth2-example" - split_repository: "OAuth2-BlackbaudSKY-example" - local_path: "oneroster" split_repository: "sky-api.oneroster" - local_path: "school" diff --git a/examples/oauth2/.gitignore b/examples/oauth2/.gitignore new file mode 100644 index 00000000..42cd73d9 --- /dev/null +++ b/examples/oauth2/.gitignore @@ -0,0 +1 @@ +/vendor/ \ No newline at end of file diff --git a/packages/oauth2-example/LICENSE b/examples/oauth2/LICENSE similarity index 100% rename from packages/oauth2-example/LICENSE rename to examples/oauth2/LICENSE diff --git a/examples/oauth2/composer.json b/examples/oauth2/composer.json new file mode 100755 index 00000000..1725cc7a --- /dev/null +++ b/examples/oauth2/composer.json @@ -0,0 +1,14 @@ +{ + "name": "groton-school/oauth2-blackbaudsky-example", + "description": "Example use of groton-school/oauth2-blackbaudsky", + "require": { + "groton-school/oauth2-blackbaudsky": "^0.2" + }, + "license": "MIT", + "authors": [ + { + "name": "Seth Battis", + "email": "sbattis@groton.org" + } + ] +} diff --git a/packages/oauth2-example/public/index.html b/examples/oauth2/public/index.html similarity index 100% rename from packages/oauth2-example/public/index.html rename to examples/oauth2/public/index.html diff --git a/packages/oauth2-example/public/refresh.php b/examples/oauth2/public/refresh.php similarity index 100% rename from packages/oauth2-example/public/refresh.php rename to examples/oauth2/public/refresh.php diff --git a/packages/oauth2-example/public/token.php b/examples/oauth2/public/token.php similarity index 100% rename from packages/oauth2-example/public/token.php rename to examples/oauth2/public/token.php diff --git a/monorepo-builder.php b/monorepo-builder.php index e6220de9..e3516e10 100644 --- a/monorepo-builder.php +++ b/monorepo-builder.php @@ -5,5 +5,5 @@ use Symplify\MonorepoBuilder\Config\MBConfig; return static function (MBConfig $mbConfig): void { - $mbConfig->packageDirectories([__DIR__ . '/packages']); + $mbConfig->packageDirectories([__DIR__ . '/packages', __DIR__ . '/examples']); }; diff --git a/packages/oauth2/README.md b/packages/oauth2/README.md index a4870170..5aee123b 100644 --- a/packages/oauth2/README.md +++ b/packages/oauth2/README.md @@ -24,7 +24,7 @@ The following versions of PHP are supported. ## Usage -Refer to [example](https://github.com/groton-school/OAuth2-BlackbaudSKY-example) for example usage. +Refer to [this project](https://github.com/groton-school/sky-api/tree/main/examples/oauth2) for example usage. ### Authorization Code Grant