Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 41 additions & 4 deletions genai-cookbook/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,48 @@
node_modules
.next
# Git
.git
.gitignore

# Dependencies (will be installed during build)
**/node_modules

# Build artifacts
**/.next
**/out
**/dist
**/build
**/*.tsbuildinfo

# Environment files (except .sample.env)
.env*.local
**/.env*.local

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# OS files
.DS_Store
Thumbs.db

# IDE
.vscode
.idea
coverage
.cache
*.swp
*.swo

# Testing
**/coverage
**/.cache

# Package manager
.pnpm-store
package-lock.json
yarn.lock

# Misc
README.md
*.md
!apps/cookbook/README.md
17 changes: 11 additions & 6 deletions genai-cookbook/.gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
node_modules/
.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage
coverage/

# next.js
/.next/
/out/
.next/
out/

# production
/build
build/
dist/

# misc
.DS_Store
Expand All @@ -24,6 +25,7 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.vscode/chrome-debug-profile

# local env files
Expand All @@ -35,3 +37,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# pnpm
.pnpm-store/
8 changes: 8 additions & 0 deletions genai-cookbook/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"unifiedjs.vscode-mdx"
]
}
63 changes: 34 additions & 29 deletions genai-cookbook/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Next.js App",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/.next/**"],
"env": {
"NODE_OPTIONS": "--inspect"
},
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "- Local:.+(https?://localhost:\\d+)",
"uriFormat": "%s",
"action": "debugWithChrome",
"webRoot": "${workspaceFolder}"
}
},
{
"name": "Launch Chrome with DevTools",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"runtimeArgs": ["--auto-open-devtools-for-tabs"]
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "pnpm dev",
"cwd": "${workspaceFolder}/apps/cookbook",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
},
{
"name": "Next.js: debug client-side",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/apps/cookbook"
},
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "pnpm dev",
"cwd": "${workspaceFolder}/apps/cookbook",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
29 changes: 19 additions & 10 deletions genai-cookbook/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"debug.javascript.autoAttachFilter": "onlyWithFlag",
"debug.javascript.terminalOptions": {
"skipFiles": [
"<node_internals>/**",
"**/node_modules/**",
"**/.next/**"
]
},
"debug.showInlineBreakpointCandidates": true,
"debug.allowBreakpointsEverywhere": false
"typescript.tsdk": "apps/cookbook/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"files.exclude": {
"**/.next": true,
"**/node_modules": true,
"**/.git": true,
"**/pnpm-lock.yaml": true
},
"search.exclude": {
"**/.next": true,
"**/node_modules": true,
"**/pnpm-lock.yaml": true
},
"typescript.preferences.importModuleSpecifier": "non-relative"
}
85 changes: 25 additions & 60 deletions genai-cookbook/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,26 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "dev",
"type": "npm",
"script": "dev",
"problemMatcher": [],
"isBackground": true,
"presentation": {
"reveal": "always",
"panel": "new"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build",
"type": "npm",
"script": "build",
"problemMatcher": [],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "start",
"type": "npm",
"script": "start",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "lint",
"type": "npm",
"script": "lint",
"problemMatcher": ["$eslint-stylish"],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "format",
"type": "npm",
"script": "format",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "shared"
}
}
]
}
"version": "2.0.0",
"tasks": [
{
"label": "dev",
"type": "shell",
"command": "pnpm",
"args": ["dev"],
"options": {
"cwd": "${workspaceFolder}/apps/cookbook"
},
"problemMatcher": [],
"isBackground": true
},
{
"label": "build",
"type": "shell",
"command": "pnpm",
"args": ["build"],
"options": {
"cwd": "${workspaceFolder}/apps/cookbook"
},
"problemMatcher": []
}
]
}
Loading