From ee9ab0b75e7f479d0a78a3e0fd800819ff853bca Mon Sep 17 00:00:00 2001 From: Seth Battis Date: Fri, 15 Mar 2024 12:11:30 -0400 Subject: [PATCH] simplify build --- composer.json | 137 ++++++++++---------- packages/altru-administration/composer.json | 3 - packages/altru-analysis/composer.json | 3 - packages/altru-constituent/composer.json | 3 - packages/nxt-data-integration/composer.json | 3 - packages/oneroster/composer.json | 3 - packages/school/composer.json | 3 - src/CLI.php | 21 --- 8 files changed, 66 insertions(+), 110 deletions(-) delete mode 100644 src/CLI.php diff --git a/composer.json b/composer.json index bd829602..0857d60b 100644 --- a/composer.json +++ b/composer.json @@ -1,74 +1,69 @@ { - "name": "groton-school/sky-api", - "description": "PHP client for Blackbaud's SKY API", - "license": "GPL-3.0", - "authors": [ - { - "name": "Seth Battis", - "email": "sbattis@groton.org" - } - ], - "require": { - "ext-curl": "*", - "battis/data-utilities": "^1.2", - "battis/lazy-secrets": "^1.1", - "battis/openapi-client-generator": "^0.1", - "guzzlehttp/guzzle": "^7.4", - "league/oauth2-client": "^2.6" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3.51", - "phar-io/version": "^3.2", - "symplify/monorepo-builder": "^11.2" - }, - "autoload": { - "psr-4": { - "Blackbaud\\SKY\\": [ - "packages/altru-administration/src/", - "packages/altru-analysis/src/", - "packages/altru-constituent/src/", - "packages/nxt-data-integration/src/", - "packages/oneroster/src/", - "packages/school/src/" - ], - "Build\\": "src", - "GrotonSchool\\OAuth2\\Client\\Provider\\": "packages/oauth2/src/", - "GrotonSchool\\SKY\\AppEngine\\": "packages/appengine-client/src" - } - }, - "scripts": { - "build": [ - "Build\\CLI::build", - "docker run --rm -v $(pwd):/data phpdoc/phpdoc:3" - ] - }, - "extra": { - "build": [ - "src/map -d 'var/2022-04-01_preview/Altru/alt-adnmg.json' 'packages/altru-administration/src' 'Blackbaud\\SKY'", - "src/map -d 'var/2022-04-01_preview/Altru/alt-anamg.json' 'packages/altru-analysis/src' 'Blackbaud\\SKY'", - "src/map -d 'var/2022-04-01_preview/Altru/alt-conmg.json' 'packages/altru-constituent/src' 'Blackbaud\\SKY'", - "src/map -d 'var/2022-04-01_preview/Church Management/nxt-data-integration.json' 'packages/nxt-data-integration/src' 'Blackbaud\\SKY'", - "src/map -d 'var/2022-04-01_preview/Education Management/afe-rostr.json' 'packages/oneroster/src' 'Blackbaud\\SKY'", - "src/map -d 'var/2022-04-01_preview/Education Management/school.json' 'packages/school/src' 'Blackbaud\\SKY'" - ] - }, - "config": { - "sort-packages": true - }, - "replace": { - "groton-school/oauth2-blackbaudsky": "self.version", - "groton-school/oauth2-blackbaudsky-example": "self.version", - "groton-school/sky-api-altru-analysis": "self.version", - "groton-school/sky-api-altru-constituent": "self.version", - "groton-school/sky-api-appengine": "self.version", - "groton-school/sky-api-nxt-data-integration": "self.version", - "groton-school/sky-api-oneroster": "self.version", - "groton-school/sky-api-school": "self.version", - "groton-school/sky-api.altru-analysis": "self.version", - "groton-school/sky-api.altru-constituent": "self.version", - "groton-school/sky-api.appengine-client-example": "self.version", - "groton-school/sky-api.nxt-data-integration": "self.version", - "groton-school/sky-api.oneroster": "self.version", - "groton-school/sky-api.school": "self.version" + "name": "groton-school/sky-api", + "description": "PHP client for Blackbaud's SKY API", + "license": "GPL-3.0", + "authors": [ + { + "name": "Seth Battis", + "email": "sbattis@groton.org" } + ], + "require": { + "ext-curl": "*", + "battis/data-utilities": "^1.2", + "battis/lazy-secrets": "^1.1", + "battis/openapi-client-generator": "^0.1", + "guzzlehttp/guzzle": "^7.4", + "league/oauth2-client": "^2.6" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.51", + "phar-io/version": "^3.2", + "symplify/monorepo-builder": "^11.2" + }, + "autoload": { + "psr-4": { + "Blackbaud\\SKY\\": [ + "packages/altru-administration/src/", + "packages/altru-analysis/src/", + "packages/altru-constituent/src/", + "packages/nxt-data-integration/src/", + "packages/oneroster/src/", + "packages/school/src/" + ], + "Build\\": "src", + "GrotonSchool\\OAuth2\\Client\\Provider\\": "packages/oauth2/src/", + "GrotonSchool\\SKY\\AppEngine\\": "packages/appengine-client/src" + } + }, + "scripts": { + "build": [ + "src/map -d 'var/2022-04-01_preview/Altru/alt-adnmg.json' 'packages/altru-administration/src' 'Blackbaud\\SKY'", + "src/map -d 'var/2022-04-01_preview/Altru/alt-anamg.json' 'packages/altru-analysis/src' 'Blackbaud\\SKY'", + "src/map -d 'var/2022-04-01_preview/Altru/alt-conmg.json' 'packages/altru-constituent/src' 'Blackbaud\\SKY'", + "src/map -d 'var/2022-04-01_preview/Church Management/nxt-data-integration.json' 'packages/nxt-data-integration/src' 'Blackbaud\\SKY'", + "src/map -d 'var/2022-04-01_preview/Education Management/afe-rostr.json' 'packages/oneroster/src' 'Blackbaud\\SKY'", + "src/map -d 'var/2022-04-01_preview/Education Management/school.json' 'packages/school/src' 'Blackbaud\\SKY'", + "docker run --rm -v $(pwd):/data phpdoc/phpdoc:3" + ] + }, + "config": { + "sort-packages": true + }, + "replace": { + "groton-school/oauth2-blackbaudsky": "self.version", + "groton-school/oauth2-blackbaudsky-example": "self.version", + "groton-school/sky-api-altru-analysis": "self.version", + "groton-school/sky-api-altru-constituent": "self.version", + "groton-school/sky-api-appengine": "self.version", + "groton-school/sky-api-nxt-data-integration": "self.version", + "groton-school/sky-api-oneroster": "self.version", + "groton-school/sky-api-school": "self.version", + "groton-school/sky-api.altru-analysis": "self.version", + "groton-school/sky-api.altru-constituent": "self.version", + "groton-school/sky-api.appengine-client-example": "self.version", + "groton-school/sky-api.nxt-data-integration": "self.version", + "groton-school/sky-api.oneroster": "self.version", + "groton-school/sky-api.school": "self.version" + } } diff --git a/packages/altru-administration/composer.json b/packages/altru-administration/composer.json index 061b7fac..c5d424db 100644 --- a/packages/altru-administration/composer.json +++ b/packages/altru-administration/composer.json @@ -16,8 +16,5 @@ "require": { "battis/openapi-client-generator": "^0.1", "groton-school/oauth2-blackbaudsky": "^0.2" - }, - "extra": { - "build": "src/map -d 'var/2022-04-01_preview/Altru/alt-adnmg.json' 'packages/altru-administration/src' 'Blackbaud\\SKY'" } } diff --git a/packages/altru-analysis/composer.json b/packages/altru-analysis/composer.json index 6f253777..4b408ab6 100644 --- a/packages/altru-analysis/composer.json +++ b/packages/altru-analysis/composer.json @@ -16,8 +16,5 @@ "require": { "battis/openapi-client-generator": "^0.1", "groton-school/oauth2-blackbaudsky": "^0.2" - }, - "extra": { - "build": "src/map -d 'var/2022-04-01_preview/Altru/alt-anamg.json' 'packages/altru-analysis/src' 'Blackbaud\\SKY'" } } diff --git a/packages/altru-constituent/composer.json b/packages/altru-constituent/composer.json index 54ba0df1..fa301e7e 100644 --- a/packages/altru-constituent/composer.json +++ b/packages/altru-constituent/composer.json @@ -16,8 +16,5 @@ "require": { "battis/openapi-client-generator": "^0.1", "groton-school/oauth2-blackbaudsky": "^0.2" - }, - "extra": { - "build": "src/map -d 'var/2022-04-01_preview/Altru/alt-conmg.json' 'packages/altru-constituent/src' 'Blackbaud\\SKY'" } } diff --git a/packages/nxt-data-integration/composer.json b/packages/nxt-data-integration/composer.json index 1b1db8f5..07957df5 100644 --- a/packages/nxt-data-integration/composer.json +++ b/packages/nxt-data-integration/composer.json @@ -16,8 +16,5 @@ "require": { "battis/openapi-client-generator": "^0.1", "groton-school/oauth2-blackbaudsky": "^0.2" - }, - "extra": { - "build": "src/map -d 'var/2022-04-01_preview/Church Management/nxt-data-integration.json' 'packages/nxt-data-integration/src' 'Blackbaud\\SKY'" } } diff --git a/packages/oneroster/composer.json b/packages/oneroster/composer.json index 094dcf46..390aae97 100644 --- a/packages/oneroster/composer.json +++ b/packages/oneroster/composer.json @@ -16,8 +16,5 @@ "require": { "battis/openapi-client-generator": "^0.1", "groton-school/oauth2-blackbaudsky": "^0.2" - }, - "extra": { - "build": "src/map -d 'var/2022-04-01_preview/Education Management/afe-rostr.json' 'packages/oneroster/src' 'Blackbaud\\SKY'" } } diff --git a/packages/school/composer.json b/packages/school/composer.json index 717ec6b3..3254c002 100644 --- a/packages/school/composer.json +++ b/packages/school/composer.json @@ -16,8 +16,5 @@ "require": { "battis/openapi-client-generator": "^0.1", "groton-school/oauth2-blackbaudsky": "^0.2" - }, - "extra": { - "build": "src/map -d 'var/2022-04-01_preview/Education Management/school.json' 'packages/school/src' 'Blackbaud\\SKY'" } } diff --git a/src/CLI.php b/src/CLI.php deleted file mode 100644 index 9a10f4fa..00000000 --- a/src/CLI.php +++ /dev/null @@ -1,21 +0,0 @@ -getComposer()->getPackage()->getExtra()["build"] as $packageBuild) { - shell_exec($packageBuild); - } - } -}