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

chore(*): migrate examples/templates/tests to Spin manifest v2 #206

Merged
merged 8 commits into from
Oct 30, 2023

Conversation

vdice
Copy link
Member

@vdice vdice commented Oct 27, 2023

Updates apps under examples, templates and test to use Spin manifest v2

While updating and testing, I also:

  • Updated READMEs, including, where applicable:
    • removing use of --follow-all on spin up
    • adding npm install prior to spin build (avoids the spin build -> 'would you like to install webpack?' -> 'yes' -> error -> spin build -> success)
    • updating the ts/planetscale example README.md which was incorrect
  • Updated strings (eg lots of spin-http-js turned into a more specific value)
  • Updated outbound http examples to use our in-house random data generator (https://random-data-api.fermyon.app)

Closes #203

Note: Should not be merged until Spin 2.0 is released. I've placed this in Draft due to this, but reviews/feedback appreciated in the meantime. This can be merged when ready per f3410b2

Copy link

@itowlson itowlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks so much!

examples/javascript/planetscale/spin.toml Outdated Show resolved Hide resolved
route = "/..."
component = "sqlite"

[component.sqlite]
source = "target/sqlite.wasm"
exclude_files = ["**/node_modules"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am puzzled why this excludes files that were not included but maybe safer to leave it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Yes I think I'll leave this one for another day

examples/typescript/hello_world/spin.toml Outdated Show resolved Hide resolved
examples/typescript/http-router/spin.toml Outdated Show resolved Hide resolved
examples/typescript/planetscale/README.md Show resolved Hide resolved
@vdice vdice marked this pull request as ready for review October 30, 2023 14:32
@vdice vdice merged commit 5dfb336 into fermyon:main Oct 30, 2023
2 checks passed
@vdice vdice deleted the chore/examples-templates-manifest-v2 branch October 30, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update examples and templates to use the Spin v2 manifest
2 participants