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

BACKLOG-23333: Pack from dist/build/ and deploy dist/*.tgz #279

Merged

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.

2 participants