Brea/repository/BaselineOfBrea/BaselineOfBrea.class.st

58 lines
1.7 KiB
Smalltalk
Raw Permalink Normal View History

2020-07-25 18:04:11 +00:00
"
I am BaselineOfBrea, I load the code for the Brea project.
I am a BaselineOf.
"
Class {
#name : #BaselineOfBrea,
#superclass : #BaselineOf,
#category : #BaselineOfBrea
}
{ #category : #baselines }
BaselineOfBrea >> baseline: spec [
<baseline>
spec
for: #common
do: [
"Dependencies"
self grafoscopioUtils: spec.
2020-07-25 18:04:11 +00:00
spec
2020-07-25 18:14:37 +00:00
baseline: 'NeoJSON' with: [ spec repository: 'github://svenvc/NeoJSON/repository' ];
2020-07-25 18:32:41 +00:00
baseline: 'Mustache' with: [ spec repository: 'github://noha/mustache/repository' ];
baseline: 'TaskIt' with: [ spec repository: 'github://noha/taskit:add-all-future' ].
2020-07-25 18:04:11 +00:00
"Packages"
spec package: 'Brea' with: [ spec requires: #('NeoJSON' 'Mustache' 'TaskIt' 'Grafoscopio-Utils') ].
2020-07-25 18:04:11 +00:00
]
]
{ #category : #baselines }
BaselineOfBrea >> grafoscopioUtils: spec [
"I load the configuration of this package using a external Gitea repository."
"While more Git independient providers are implemented in Monticello, I will use Iceberg
to download the repository and load it from a local directory"
| location localRepo |
"Dependencies"
"Local and remote repo definition"
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.
spec baseline: 'GrafoscopioUtils' with: [ spec repository: localRepo ].
spec package: 'Grafoscopio-Utils' with: [ spec repository: localRepo ].
]