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

refactor publish command to new command assemble #53

Closed
joaoopereira opened this issue Oct 21, 2021 · 2 comments
Closed

refactor publish command to new command assemble #53

joaoopereira opened this issue Oct 21, 2021 · 2 comments
Labels
breaking Solving this issue will imply a major version bump as it breaks compatibility enhancement New feature or request

Comments

@joaoopereira
Copy link
Collaborator

joaoopereira commented Oct 21, 2021

Requirement

  • Gather all packages needed for installation based on a root CmfPackage

Assumption

  • This command should run on a git repo with a cmfpackage.json

Arguments/Options

  • ciRepo
  • Continuous Integration repo (can be a folder or a url)
  • repos
    • List of repositories (can be a folder or a url)
  • outputDir
    • Output directory where the packages will be put

Logic

  • Load root CmfPackage
  • if PackageType is not root, throw exception
  • Call method LoadDependencies
    • with this we should all the local and remote packages
    • if a local package is not found locally or in repository, an exception should be thrown
  • Copy all packages with Location=Local that do not exist in repos list from ciRepo to outputDir
  • Generate json file with all dependencies (Id@Version-Uri) that were not copied
@joaoopereira joaoopereira added enhancement New feature or request breaking Solving this issue will imply a major version bump as it breaks compatibility labels Oct 21, 2021
@joaoopereira
Copy link
Collaborator Author

this issue can also solve the #13

@joaoopereira
Copy link
Collaborator Author

closed by pr #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Solving this issue will imply a major version bump as it breaks compatibility enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant