Skip to content

Conversation

@baptistegrimaud
Copy link
Contributor

JIRA

https://jira.jahia.org/browse/BACKLOG-23333

Description

Packing

Update the pack-project.js script (used by yarn build) to pack the content of the dist/build/ folder into a dist/<project>-<version>.tgz file.
If the dist/build folder does not exist, fallback to the previous behaviour and pack the root directory directly. This way, we can first release a new version of @jahia/scripts that we can then use in https://github.com/Jahia/luxe-jahia-demo, https://github.com/Jahia/npm-create-module, etc.

Deploying

Similarly, update the deploy.js script (used by yarn deploy and yarn watch) to deploy the dist/<project>-<version>.tgz file if dist/build/ exists. Otherwise, it expects the archive file in the root folder of the project.

@baptistegrimaud baptistegrimaud merged commit 3f12fc9 into master Nov 8, 2024
3 checks passed
@baptistegrimaud baptistegrimaud deleted the BACKLOG-23333-use-dist-folder-for-generated-code branch November 8, 2024 13:55
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.

3 participants