Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for override output directory per repository #40

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

sneridagh
Copy link
Member

@sneridagh sneridagh commented Mar 8, 2024

I'd like to use mrs-developer to "populate" Volto core monorepo packages folders.

So you can do:
missdev --no-config --fetch-https

{
	"volto-light-theme": {
		"output": "addons",
		"package": "@kitconcept/volto-light-theme",
		"url": "git@github.com:kitconcept/volto-light-theme.git",
		"https": "https://github.com/kitconcept/volto-light-theme.git"
	}
}

And also open the door to have projects as monorepos:

{
	"core": {
		"output": "./",
		"package": "@plone/volto",
		"url": "git@github.com:plone/volto.git",
		"https": "https://github.com/plone/volto.git"
	},
	"volto-light-theme": {
		"output": "addons",
		"package": "@kitconcept/volto-light-theme",
		"url": "git@github.com:kitconcept/volto-light-theme.git",
		"https": "https://github.com/kitconcept/volto-light-theme.git"
	}
}

Although then we need to alter internal Volto dependencies too, might be mrs-developer the one to do it, or an script, we'll see.

@sneridagh
Copy link
Member Author

@ebrehault @tiberiuichim could you please take a look?

README.md Outdated
@@ -154,6 +154,7 @@ Properties:
- `branch`: Optional. Branch name, defaults to the remote's default branch. Ignored if `tag` is defined.
- `tag`: Optional. Tag name.
- `develop`: Optional. Boolean, can be toggled on/off to activate/deactivate a package. If activated, then deactivated afterwards, the package gets removed from `jsconfig` maintaining the synchronization with `mrs.developer.json`. Default is `true`.
- `output`: Optional. Output directory override per repository. It also removes the `src/` prefix. If you still want it, you have to pass it along with the new output.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"It also removes the src prefix" is not very clear what it's meant. Maybe an example configuration would help, as part of the example in the upper part of this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@sneridagh sneridagh merged commit cbff71a into master Mar 11, 2024
1 check passed
@sneridagh sneridagh deleted the perrepooutputoverride branch March 11, 2024 11:26
@sneridagh
Copy link
Member Author

@ebrehault can you release it? I can do it myself too, but don't know about the flow in this repo. Can I add release-it and towncrier?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants