diff --git a/hello-world/cargo-generate.toml b/hello-world/cargo-generate.toml index 00d1294..fdab1c8 100644 --- a/hello-world/cargo-generate.toml +++ b/hello-world/cargo-generate.toml @@ -1,7 +1,7 @@ [placeholders] backend_type = { type = "string", prompt = "What's your backend weapon of choice?", choices = ["motoko", "rust"], default = "motoko" } # We're only supporting react at the moment, so this variable is not really used -frontend_type = { type = "string", prompt = "Pick a frontend framework:", choices = ["react"], default = "react" } +frontend_type = { type = "string", prompt = "Pick a frontend framework:", choices = ["react", "vue"], default = "react" } network_type = { type = "string", prompt = "Use the default network or a dockerized one?", choices = ["Default", "Docker"], default = "Default" } [conditional.'backend_type == "rust"'] @@ -10,6 +10,12 @@ ignore = [ "motoko-backend" ] [conditional.'backend_type == "motoko"'] ignore = [ "rust-backend" ] +[conditional.'frontend_type == "react"'] +ignore = [ "vue-frontend" ] + +[conditional.'frontend_type == "vue"'] +ignore = [ "react-frontend" ] + [hooks] -pre = ["rename-backend-dir.rhai"] +pre = ["rename-dirs.rhai"] post = ["../_shared/write-agent-files.rhai"] diff --git a/hello-world/frontend/.gitignore b/hello-world/react-frontend/.gitignore similarity index 100% rename from hello-world/frontend/.gitignore rename to hello-world/react-frontend/.gitignore diff --git a/hello-world/frontend/.node-version b/hello-world/react-frontend/.node-version similarity index 100% rename from hello-world/frontend/.node-version rename to hello-world/react-frontend/.node-version diff --git a/hello-world/frontend/app/eslint.config.js b/hello-world/react-frontend/app/eslint.config.js similarity index 100% rename from hello-world/frontend/app/eslint.config.js rename to hello-world/react-frontend/app/eslint.config.js diff --git a/hello-world/frontend/app/index.html b/hello-world/react-frontend/app/index.html similarity index 83% rename from hello-world/frontend/app/index.html rename to hello-world/react-frontend/app/index.html index b21cfb5..51113dd 100644 --- a/hello-world/frontend/app/index.html +++ b/hello-world/react-frontend/app/index.html @@ -5,7 +5,7 @@ -