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

Add cli argument to skip dependencies packaging #1191

Merged

Conversation

ricardo-devis-agullo
Copy link
Collaborator

Closes #769

This makes it possible to directly publish an already packaged component. Of the 3 possible ways referenced on the issue I just did the first approach, which I guess is the more natural given the current flow of what publishing does, which is to to skip the packaging (creating the _package folder) and do the rest the same.

So
oc publish --skipPackage your-component
Will try to find a _package folder in your-component folder and publish it. It will fail with an error message if either the _package folder does not exist, or there isn't a package.json file inside (needed to get component info).

This helps for cases where you package/build it yourself to publish on a later stage (without needing to store all the dependencies needed for the bundling process).

@ricardo-devis-agullo ricardo-devis-agullo merged commit ce06600 into opencomponents:master Aug 16, 2021
@ricardo-devis-agullo ricardo-devis-agullo deleted the skip-package branch August 16, 2021 08:20
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.

Add cli argument to skip dependencies packaging
2 participants