You need to specify groups for your project: spec group: 'default' with: #('Core' 'Tests' ); group: 'Core' with: #('Towergame' ); group: 'Tests' with: #('Towergame-Tests' 'Mocketry') Then your script will load default group with everything. And to load Core group use "load: #(Core)" instread of simple #load message. 2017-07-28 14:33 GMT+02:00 Herby VojÄÃk <herby@mailbox.sk>:
Hello!
I'd like to ask what is the equivalent of devDependencies (dependencies to be loaded only when developing, but not when in profuction / used as a dependency) of a baseline.
My baseline method looks like:
baseline: spec <baseline> spec for: #common do: [ spec package: 'Towergame' with: [ spec requires: 'GarageGlorp'; requires: 'NeoJSON' ]. spec project: 'GarageGlorp' with: [ spec className: 'ConfigurationOfGarageGlorp'; version: #stable; repository: 'http://smalltalkhub.com/mc/Ph aro/MetaRepoForPharo60/main' ]. spec project: 'NeoJSON' with: [ spec className: 'ConfigurationOfNeoJSON'; version: #stable; repository: 'http://smalltalkhub.com/mc/Ph aro/MetaRepoForPharo60/main' ]. spec baseline: 'Mocketry' with: [ spec repository: 'github://dionisiydk/Mocketry:v4.0.x' ] ]
and I want to have Mocketry as dev-only dependency. How to write it and how to load it with dev / without dev dependencies? Atm I load it this way:
Metacello new baseline: 'Towergame'; repository: 'gitlocal:///', (hereRef / 'src') fullName; load.
where hereRef is file reference to project dir.
Thanks, Herby