-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from vdice/chore/examples-templates-manifest-v2
chore(*): migrate examples/templates/tests to Spin manifest v2
- Loading branch information
Showing
51 changed files
with
294 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
spin_manifest_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Fermyon Engineering <[email protected]>"] | ||
name = "spin-http-js" | ||
trigger = { type = "http", base = "/" } | ||
version = "1.0.0" | ||
|
||
[[component]] | ||
id = "hello" | ||
source = "target/spin-http-js.wasm" | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "/hello" | ||
[component.build] | ||
component = "hello" | ||
|
||
[component.hello] | ||
source = "target/spin-http-js.wasm" | ||
[component.hello.build] | ||
command = "npm install && npm run build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
spin_manifest_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Thorsten Hans <[email protected]>"] | ||
description = "Sample to demonstrate the usage of the HTTP router" | ||
name = "http-router" | ||
trigger = { type = "http", base = "/" } | ||
version = "0.1.0" | ||
|
||
[[component]] | ||
id = "http-router" | ||
[[trigger.http]] | ||
route = "/..." | ||
component = "http-router" | ||
|
||
[component.http-router] | ||
source = "target/http-router.wasm" | ||
exclude_files = ["**/node_modules"] | ||
[component.trigger] | ||
route = "/..." | ||
[component.build] | ||
[component.http-router.build] | ||
command = "npm run build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
spin_manifest_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Thorsten Hans <[email protected]>"] | ||
description = "Demonstrates how to use key-value store APIs in JS" | ||
name = "kv" | ||
trigger = { type = "http", base = "/" } | ||
version = "0.1.0" | ||
|
||
[[component]] | ||
id = "kv" | ||
[[trigger.http]] | ||
route = "/..." | ||
component = "kv" | ||
|
||
[component.kv] | ||
source = "target/kv.wasm" | ||
key_value_stores = ["default"] | ||
exclude_files = ["**/node_modules"] | ||
[component.trigger] | ||
route = "/..." | ||
[component.build] | ||
[component.kv.build] | ||
command = "npm run build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
spin_manifest_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Fermyon Engineering <[email protected]>"] | ||
name = "spin-http-js" | ||
trigger = { type = "http", base = "/" } | ||
name = "spin-outbound-http" | ||
version = "1.0.0" | ||
|
||
[[component]] | ||
id = "hello" | ||
source = "target/spin-http-js.wasm" | ||
allowed_http_hosts = ["https://some-random-api.ml"] | ||
files = ["src/index.html"] | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "/hello" | ||
[component.build] | ||
component = "hello" | ||
|
||
[component.hello] | ||
source = "target/spin-outbound-http.wasm" | ||
allowed_http_hosts = ["random-data-api.fermyon.app"] | ||
files = ["src/index.js"] | ||
[component.hello.build] | ||
command = "npm run build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
spin_manifest_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Fermyon Engineering <[email protected]>"] | ||
name = "spin-http-js" | ||
trigger = { type = "http", base = "/" } | ||
name = "spin-planetscale" | ||
version = "1.0.0" | ||
|
||
[[component]] | ||
id = "planetscale" | ||
source = "target/spin-http-js.wasm" | ||
allowed_http_hosts = ["https://aws.connect.psdb.cloud"] | ||
files = ["src/index.html"] | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "/hello" | ||
[component.build] | ||
component = "planetscale" | ||
|
||
[component.planetscale] | ||
source = "target/spin-planetscale.wasm" | ||
allowed_http_hosts = ["aws.connect.psdb.cloud"] | ||
files = ["src/index.js"] | ||
[component.planetscale.build] | ||
command = "npm run build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
spin_manifest_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Fermyon Engineering <[email protected]>"] | ||
name = "spin-http-js" | ||
trigger = { type = "http", base = "/" } | ||
name = "spin-simple-ssr" | ||
version = "1.0.0" | ||
|
||
[[trigger.http]] | ||
route = "/hello" | ||
component = "SSR" | ||
|
||
[[trigger.http]] | ||
route = "/static/..." | ||
component = "fileserver" | ||
|
||
[[component]] | ||
id = "SSR" | ||
source = "target/spin-http-js.wasm" | ||
allowed_http_hosts = ["https://some-random-api.ml"] | ||
[component.SSR] | ||
source = "target/spin-simple-ssr.wasm" | ||
files = [{source = "src/public", destination = "/"} ] | ||
[component.trigger] | ||
route = "/hello" | ||
[component.build] | ||
[component.SSR.build] | ||
command = "npm run build" | ||
|
||
[[component]] | ||
[component.fileserver] | ||
source = "modules/spin_static_fs.wasm" | ||
id = "fileserver" | ||
files = [{ source = "dist/static", destination = "/" }, ] | ||
[component.trigger] | ||
route = "/static/..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
spin_manifest_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Ryan Levick <[email protected]>"] | ||
description = "" | ||
name = "sqlite" | ||
trigger = { type = "http", base = "/" } | ||
version = "0.1.0" | ||
|
||
[[component]] | ||
id = "sqlite" | ||
[[trigger.http]] | ||
route = "/..." | ||
component = "sqlite" | ||
|
||
[component.sqlite] | ||
source = "target/sqlite.wasm" | ||
exclude_files = ["**/node_modules"] | ||
sqlite_databases = ["default"] | ||
[component.trigger] | ||
route = "/..." | ||
[component.build] | ||
[component.sqlite.build] | ||
command = "npm run build" |
Oops, something went wrong.