wrap-cli
wrap-cli copied to clipboard
Polywrap project manifest schema refactor
Partially closes #1057
This PR performs the 1st steps of the refactor of the Polywrap project manifest files (wasm, interface, plugin, app).
Things to note:
- The loading of
polywrap.app.yaml,polywrap.plugin.yamletc. have been left as such for backwards compatibility.- [x] We might want to consider a CLI command to migrate the YAML files to the latest format version, instead of just reading them and migrating them upwards. Opening an issue seems like a good idea - any thoughts/concerns?
- [x] Create an issue for a
polywrap manifestCLI command, with option for migrating the manifest to the latest version
- [x] It has been decided to use
major.minor.patchversioning (as per semver) instead of justmajor.minorfor now - this allows us to circumvent the yaml parser from readingformat: 0.2as a number and forcing us to useformat: “0.2” - [x] Important: All manifest files within the project have been left on version 0.1 for the time being in order to keep builds working with the existing polywrap CLI pulled from
npm. I advise we leave them as such until we publish a version of the CLI wich supports the0.2.0project manifest format.- [x] Explicitly test migrations
- [x] Move test manifests to 0.2.0