diff --git a/smithy-templates.json b/smithy-templates.json index 9c727d0..0fe1589 100644 --- a/smithy-templates.json +++ b/smithy-templates.json @@ -134,6 +134,11 @@ ".gitignore", ".gitattributes" ] - } + }, + "smithy-tutorial": { + "documentation": "Tutorial project that demonstrates how to use the Smithy in a simple web application and server.", + "path": "tutorial", + "include": [".gitignore",".gitattributes"] + } } } diff --git a/smithy-tutorial/Makefile b/tutorial/Makefile similarity index 100% rename from smithy-tutorial/Makefile rename to tutorial/Makefile diff --git a/smithy-tutorial/README.md b/tutorial/README.md similarity index 100% rename from smithy-tutorial/README.md rename to tutorial/README.md diff --git a/smithy-tutorial/app/.eslintrc.json b/tutorial/app/.eslintrc.json similarity index 100% rename from smithy-tutorial/app/.eslintrc.json rename to tutorial/app/.eslintrc.json diff --git a/smithy-tutorial/app/README.md b/tutorial/app/README.md similarity index 100% rename from smithy-tutorial/app/README.md rename to tutorial/app/README.md diff --git a/smithy-tutorial/app/app/globals.css b/tutorial/app/app/globals.css similarity index 100% rename from smithy-tutorial/app/app/globals.css rename to tutorial/app/app/globals.css diff --git a/smithy-tutorial/app/app/index.ts b/tutorial/app/app/index.ts similarity index 100% rename from smithy-tutorial/app/app/index.ts rename to tutorial/app/app/index.ts diff --git a/smithy-tutorial/app/app/layout.tsx b/tutorial/app/app/layout.tsx similarity index 100% rename from smithy-tutorial/app/app/layout.tsx rename to tutorial/app/app/layout.tsx diff --git a/smithy-tutorial/app/app/order/page.tsx b/tutorial/app/app/order/page.tsx similarity index 100% rename from smithy-tutorial/app/app/order/page.tsx rename to tutorial/app/app/order/page.tsx diff --git a/smithy-tutorial/app/app/page.tsx b/tutorial/app/app/page.tsx similarity index 100% rename from smithy-tutorial/app/app/page.tsx rename to tutorial/app/app/page.tsx diff --git a/smithy-tutorial/app/components/Menu.tsx b/tutorial/app/components/Menu.tsx similarity index 100% rename from smithy-tutorial/app/components/Menu.tsx rename to tutorial/app/components/Menu.tsx diff --git a/smithy-tutorial/app/components/MenuItem.tsx b/tutorial/app/components/MenuItem.tsx similarity index 100% rename from smithy-tutorial/app/components/MenuItem.tsx rename to tutorial/app/components/MenuItem.tsx diff --git a/smithy-tutorial/app/components/Order.tsx b/tutorial/app/components/Order.tsx similarity index 100% rename from smithy-tutorial/app/components/Order.tsx rename to tutorial/app/components/Order.tsx diff --git a/smithy-tutorial/app/components/OrderButton.tsx b/tutorial/app/components/OrderButton.tsx similarity index 100% rename from smithy-tutorial/app/components/OrderButton.tsx rename to tutorial/app/components/OrderButton.tsx diff --git a/smithy-tutorial/app/next-env.d.ts b/tutorial/app/next-env.d.ts similarity index 100% rename from smithy-tutorial/app/next-env.d.ts rename to tutorial/app/next-env.d.ts diff --git a/smithy-tutorial/app/next.config.mjs b/tutorial/app/next.config.mjs similarity index 100% rename from smithy-tutorial/app/next.config.mjs rename to tutorial/app/next.config.mjs diff --git a/smithy-tutorial/app/package.json b/tutorial/app/package.json similarity index 100% rename from smithy-tutorial/app/package.json rename to tutorial/app/package.json diff --git a/smithy-tutorial/app/postcss.config.mjs b/tutorial/app/postcss.config.mjs similarity index 100% rename from smithy-tutorial/app/postcss.config.mjs rename to tutorial/app/postcss.config.mjs diff --git a/smithy-tutorial/app/public/coffee-cup.png b/tutorial/app/public/coffee-cup.png similarity index 100% rename from smithy-tutorial/app/public/coffee-cup.png rename to tutorial/app/public/coffee-cup.png diff --git a/smithy-tutorial/app/public/drip.png b/tutorial/app/public/drip.png similarity index 100% rename from smithy-tutorial/app/public/drip.png rename to tutorial/app/public/drip.png diff --git a/smithy-tutorial/app/public/espresso.png b/tutorial/app/public/espresso.png similarity index 100% rename from smithy-tutorial/app/public/espresso.png rename to tutorial/app/public/espresso.png diff --git a/smithy-tutorial/app/public/latte.png b/tutorial/app/public/latte.png similarity index 100% rename from smithy-tutorial/app/public/latte.png rename to tutorial/app/public/latte.png diff --git a/smithy-tutorial/app/public/portafilter.png b/tutorial/app/public/portafilter.png similarity index 100% rename from smithy-tutorial/app/public/portafilter.png rename to tutorial/app/public/portafilter.png diff --git a/smithy-tutorial/app/public/pour-over.png b/tutorial/app/public/pour-over.png similarity index 100% rename from smithy-tutorial/app/public/pour-over.png rename to tutorial/app/public/pour-over.png diff --git a/smithy-tutorial/app/tailwind.config.ts b/tutorial/app/tailwind.config.ts similarity index 100% rename from smithy-tutorial/app/tailwind.config.ts rename to tutorial/app/tailwind.config.ts diff --git a/smithy-tutorial/app/tsconfig.json b/tutorial/app/tsconfig.json similarity index 100% rename from smithy-tutorial/app/tsconfig.json rename to tutorial/app/tsconfig.json diff --git a/smithy-tutorial/app/yarn.lock b/tutorial/app/yarn.lock similarity index 100% rename from smithy-tutorial/app/yarn.lock rename to tutorial/app/yarn.lock diff --git a/smithy-tutorial/client/README.md b/tutorial/client/README.md similarity index 100% rename from smithy-tutorial/client/README.md rename to tutorial/client/README.md diff --git a/tutorial/client/sdk b/tutorial/client/sdk new file mode 120000 index 0000000..2bdf620 --- /dev/null +++ b/tutorial/client/sdk @@ -0,0 +1 @@ +../smithy/build/smithy/source/typescript-client-codegen \ No newline at end of file diff --git a/smithy-tutorial/server/README.md b/tutorial/server/README.md similarity index 100% rename from smithy-tutorial/server/README.md rename to tutorial/server/README.md diff --git a/smithy-tutorial/server/package.json b/tutorial/server/package.json similarity index 100% rename from smithy-tutorial/server/package.json rename to tutorial/server/package.json diff --git a/smithy-tutorial/server/src/CoffeeService.ts b/tutorial/server/src/CoffeeService.ts similarity index 100% rename from smithy-tutorial/server/src/CoffeeService.ts rename to tutorial/server/src/CoffeeService.ts diff --git a/smithy-tutorial/server/src/index.ts b/tutorial/server/src/index.ts similarity index 100% rename from smithy-tutorial/server/src/index.ts rename to tutorial/server/src/index.ts diff --git a/tutorial/server/ssdk b/tutorial/server/ssdk new file mode 120000 index 0000000..374ea64 --- /dev/null +++ b/tutorial/server/ssdk @@ -0,0 +1 @@ +../smithy/build/smithy/source/typescript-ssdk-codegen \ No newline at end of file diff --git a/smithy-tutorial/server/tsconfig.json b/tutorial/server/tsconfig.json similarity index 100% rename from smithy-tutorial/server/tsconfig.json rename to tutorial/server/tsconfig.json diff --git a/smithy-tutorial/server/yarn.lock b/tutorial/server/yarn.lock similarity index 100% rename from smithy-tutorial/server/yarn.lock rename to tutorial/server/yarn.lock diff --git a/tutorial/smithy-typescript b/tutorial/smithy-typescript new file mode 120000 index 0000000..946c7a5 --- /dev/null +++ b/tutorial/smithy-typescript @@ -0,0 +1 @@ +/Users/haydebak/Sandbox/smithy-typescript \ No newline at end of file diff --git a/smithy-tutorial/smithy/README.md b/tutorial/smithy/README.md similarity index 100% rename from smithy-tutorial/smithy/README.md rename to tutorial/smithy/README.md diff --git a/smithy-tutorial/smithy/model/coffee.smithy b/tutorial/smithy/model/coffee.smithy similarity index 100% rename from smithy-tutorial/smithy/model/coffee.smithy rename to tutorial/smithy/model/coffee.smithy diff --git a/smithy-tutorial/smithy/model/main.smithy b/tutorial/smithy/model/main.smithy similarity index 100% rename from smithy-tutorial/smithy/model/main.smithy rename to tutorial/smithy/model/main.smithy diff --git a/smithy-tutorial/smithy/model/order.smithy b/tutorial/smithy/model/order.smithy similarity index 100% rename from smithy-tutorial/smithy/model/order.smithy rename to tutorial/smithy/model/order.smithy diff --git a/smithy-tutorial/smithy/smithy-build.json b/tutorial/smithy/smithy-build.json similarity index 100% rename from smithy-tutorial/smithy/smithy-build.json rename to tutorial/smithy/smithy-build.json diff --git a/tutorial/test b/tutorial/test new file mode 120000 index 0000000..789b8cb --- /dev/null +++ b/tutorial/test @@ -0,0 +1 @@ +../smithy-templates.json \ No newline at end of file