Replacing GrafoscopioUtils for MiniDocs as a dependency.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-03-29 19:13:57 -05:00
parent f0dfea31b5
commit bbda57b908

View File

@ -16,44 +16,27 @@ BaselineOfBrea >> baseline: spec [
for: #common for: #common
do: [ do: [
"Dependencies" "Dependencies"
self grafoscopioUtils: spec. self miniDocs: spec.
spec spec
baseline: 'NeoJSON' with: [ spec repository: 'github://svenvc/NeoJSON/repository' ];
baseline: 'Mustache' with: [ spec repository: 'github://noha/mustache/repository' ];
baseline: 'TaskIt' with: [ spec repository: 'github://pharo-contributions/taskit:v1.0' ] baseline: 'TaskIt' with: [ spec repository: 'github://pharo-contributions/taskit:v1.0' ]
"[ spec repository: 'github://noha/taskit:add-all-future' ]" "[ spec repository: 'github://noha/taskit:add-all-future' ]"
"Disabling Noha's Fork to make Brea installable.". "Disabling Noha's Fork to make Brea installable.".
"Packages" "Packages"
spec package: 'Brea' with: [ spec requires: #('NeoJSON' 'Mustache' 'TaskIt' 'Grafoscopio-Utils') ]. spec package: 'Brea' with: [ spec requires: #('MiniDocs' 'TaskIt') ].
] ]
] ]
{ #category : #baselines } { #category : #baselines }
BaselineOfBrea >> grafoscopioUtils: spec [ BaselineOfBrea >> miniDocs: spec [
"I load the configuration of this package using a external Gitea repository." | repo |
"While more Git independient providers are implemented in Monticello, I will use Iceberg repo := ExoRepo new
to download the repository and load it from a local directory" repository: 'https://code.tupale.co/Offray/MiniDocs'.
repo
| location localRepo | onConflict: [ :ex | ex useLoaded ];
"Dependencies" onUpgrade: [ :ex | ex useLoaded ];
onDowngrade: [ :ex | ex useLoaded ];
"Local and remote repo definition" onWarningLog;
location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'GrafoscopioUtils'.
location exists ifFalse: [
(IceRepositoryCreator new
location: location;
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/GrafoscopioUtils.git');
createRepository)
register
].
"Package loading"
localRepo := 'gitlocal://', location fullName.
Metacello new
repository: localRepo;
baseline: 'GrafoscopioUtils';
load. load.
spec baseline: 'GrafoscopioUtils' with: [ spec repository: localRepo ]. spec baseline: 'MiniDocs' with: [ spec repository: 'gitlocal://', repo local fullName ]
spec package: 'Grafoscopio-Utils' with: [ spec repository: localRepo ].
] ]