Skip to content

Commit

Permalink
nuxt component
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed May 7, 2024
1 parent 4c9ab7a commit e005255
Show file tree
Hide file tree
Showing 12 changed files with 663 additions and 0 deletions.
24 changes: 24 additions & 0 deletions examples/aws-nuxt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
75 changes: 75 additions & 0 deletions examples/aws-nuxt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
5 changes: 5 additions & 0 deletions examples/aws-nuxt/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>
<NuxtWelcome />
</div>
</template>
Binary file added examples/aws-nuxt/bun.lockb
Binary file not shown.
7 changes: 7 additions & 0 deletions examples/aws-nuxt/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
nitro: {
preset: "aws-lambda",
},
});
20 changes: 20 additions & 0 deletions examples/aws-nuxt/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"nuxt": "^3.11.2",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
"overrides": {
"nitropack": "npm:[email protected]"
}
}
Binary file added examples/aws-nuxt/public/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions examples/aws-nuxt/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}
21 changes: 21 additions & 0 deletions examples/aws-nuxt/sst.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/// <reference path="./.sst/platform/config.d.ts" />

export default $config({
app(input) {
return {
name: "aws-nuxt",
removal: input?.stage === "production" ? "retain" : "remove",
home: "aws",
providers: {
aws: {
region: "us-west-1",
},
},
};
},
async run() {
new sst.aws.Nuxt("MyApp", {
buildCommand: "bun run build",
});
},
});
4 changes: 4 additions & 0 deletions examples/aws-nuxt/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}
1 change: 1 addition & 0 deletions pkg/platform/src/components/aws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export * from "./remix.js";
export * from "./router.js";
export * from "./sns-topic.js";
export * from "./solid-start.js";
export * from "./nuxt.js";
export * from "./static-site.js";
export * from "./svelte-kit.js";
export * from "./vector.js";
Expand Down
Loading

0 comments on commit e005255

Please sign in to comment.