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

PNPM Experiment #2880

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

manuelleduc
Copy link
Contributor

Changes

Description

Demo of the use of xwiki/xwiki-commons#772 in xwiki-platform
Two webjar-node modules are defined, xwiki-platform-lib-a and xwiki-platform-lib-b.
xwiki-platform-lib-b depends on xwiki-platform-lib-a.
Both projects are defined using typescript and are type checked.

This PR is currently mainly a support for the forum proposal that will follow.

@@ -0,0 +1,2 @@
packages:
- "./**/src/main/node"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any project containing a src/main/node directory is considered as a pnpm package.

<dependencies>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-lib-a</artifactId>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Runtime dependency to lib-a for the webjar level.
As of now, I don't think we have a better solution than to manually maintain modules dependencies at maven and npm levels (i.e., so code duplication).

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.

1 participant