wash icon indicating copy to clipboard operation
wash copied to clipboard

Templates in project config

Open ricochet opened this issue 4 months ago • 2 comments

I built the examples in wasmcloud/go with beta.4 and was a little surprised to see the templates duplicated in each project's config.

Templates seem like something that should only be recorded at the user-level and not at the project level. Once I'm already in a project I won't be running wash new, aka this is global wash config.

{
  "build": {
    "tinygo": {
      "target": "wasip2",
      "build_flags": [],
      "disable_go_generate": false,
      "scheduler": "asyncify",
      "gc": "conservative",
      "wit_world": "PLACEHOLDER_WIT_WORLD"
    },
    "artifact_path": "build/output.wasm"
  },
  "templates": [
    {
      "name": "cosmonic-control-welcome-tour",
      "description": "Welcome to Cosmonic!",
      "repository": "https://github.com/cosmonic-labs/control-demos",
      "subfolder": "welcome-tour",
      "ref": "welcome-tour",
      "language": "TypeScript"
    },
    {
      "name": "sample-wasi-http-rust",
      "description": "An example wasi:http server component written in Rust",
      "repository": "https://github.com/bytecodealliance/sample-wasi-http-rust",
      "subfolder": null,
      "ref": null,
      "language": "Rust"
    },
    {
      "name": "sample-wasi-http-js",
      "description": "An example wasi:http server component written in JavaScript",
      "repository": "https://github.com/bytecodealliance/sample-wasi-http-js",
      "subfolder": null,
      "ref": null,
      "language": "TypeScript"
    },
    {
      "name": "http-hello-world",
      "description": "A simple HTTP hello world component",
      "repository": "https://github.com/wasmcloud/wasmcloud",
      "subfolder": "examples/rust/components/http-hello-world",
      "ref": null,
      "language": "Rust"
    },
    {
      "name": "http-hello-world",
      "description": "A simple HTTP hello world component",
      "repository": "https://github.com/wasmcloud/wasmcloud",
      "subfolder": "examples/tinygo/components/http-hello-world",
      "ref": null,
      "language": "TinyGo"
    },
    {
      "name": "http-hello-world",
      "description": "A simple HTTP hello world component",
      "repository": "https://github.com/wasmcloud/wasmcloud",
      "subfolder": "examples/typescript/components/http-hello-world",
      "ref": null,
      "language": "TypeScript"
    }
  ],
  "wit": {
    "registries": [],
    "skip_fetch": false,
    "wit_dir": null,
    "sources": {}
  }
}

ricochet avatar Aug 28 '25 14:08 ricochet