@phila/cli 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/commands/init.d.ts.map +1 -1
  2. package/dist/commands/init.js +43 -17
  3. package/dist/commands/init.js.map +1 -1
  4. package/dist/templates/lambda-api-nodejs/README.md.tmpl +52 -4
  5. package/dist/templates/lambda-api-nodejs/apps/__lambdaName__/package.json +3 -2
  6. package/dist/templates/lambda-api-nodejs/cdk/app.ts.tmpl +1 -1
  7. package/dist/templates/lambda-dynamo-api/README.md.tmpl +52 -4
  8. package/dist/templates/lambda-dynamo-api/apps/__lambdaName__/package.json +3 -2
  9. package/dist/templates/lambda-dynamo-api/cdk/app.ts.tmpl +1 -1
  10. package/dist/templates/lambda-postgres-api/README.md.tmpl +54 -6
  11. package/dist/templates/lambda-postgres-api/apps/__lambdaName__/package.json +3 -2
  12. package/dist/templates/lambda-postgres-api/cdk/app.ts.tmpl +1 -1
  13. package/dist/templates/webapp-ecs-dotnet/cdk/package.json.tmpl +23 -0
  14. package/dist/templates/webapp-ecs-node/cdk/package.json.tmpl +23 -0
  15. package/dist/templates/webapp-ecs-postgres-dotnet/cdk/package.json.tmpl +23 -0
  16. package/dist/templates/webapp-ecs-postgres-node/cdk/package.json.tmpl +23 -0
  17. package/dist/templates/webapp-lambda-dotnet/README.md.tmpl +28 -5
  18. package/dist/templates/webapp-lambda-dotnet/cdk/package.json.tmpl +23 -0
  19. package/dist/templates/webapp-lambda-dynamo-dotnet/README.md.tmpl +28 -5
  20. package/dist/templates/webapp-lambda-dynamo-dotnet/cdk/package.json.tmpl +23 -0
  21. package/dist/templates/webapp-lambda-dynamo-node/README.md.tmpl +28 -5
  22. package/dist/templates/webapp-lambda-dynamo-node/apps/api/package.json +3 -2
  23. package/dist/templates/webapp-lambda-dynamo-node/cdk/app.ts.tmpl +1 -1
  24. package/dist/templates/webapp-lambda-dynamo-node/cdk/package.json.tmpl +23 -0
  25. package/dist/templates/webapp-lambda-node/README.md.tmpl +28 -5
  26. package/dist/templates/webapp-lambda-node/apps/api/package.json +3 -2
  27. package/dist/templates/webapp-lambda-node/cdk/app.ts.tmpl +1 -1
  28. package/dist/templates/webapp-lambda-node/cdk/package.json.tmpl +23 -0
  29. package/dist/templates/webapp-lambda-postgres-dotnet/README.md.tmpl +29 -6
  30. package/dist/templates/webapp-lambda-postgres-dotnet/cdk/package.json.tmpl +23 -0
  31. package/dist/templates/webapp-lambda-postgres-node/README.md.tmpl +28 -5
  32. package/dist/templates/webapp-lambda-postgres-node/apps/api/package.json +3 -2
  33. package/dist/templates/webapp-lambda-postgres-node/cdk/app.ts.tmpl +1 -1
  34. package/dist/templates/webapp-lambda-postgres-node/cdk/package.json.tmpl +23 -0
  35. package/package.json +2 -2
  36. package/dist/templates/_shared/nuxt-frontend/app.vue +0 -3
  37. package/dist/templates/_shared/nuxt-frontend/nuxt.config.ts +0 -25
  38. package/dist/templates/_shared/nuxt-frontend/package.json.tmpl +0 -19
  39. package/dist/templates/_shared/nuxt-frontend/pages/index.vue +0 -6
  40. package/dist/templates/_shared/nuxt-frontend/tsconfig.json +0 -3
  41. package/dist/templates/_shared/webapp-frontend/app.vue +0 -3
  42. package/dist/templates/_shared/webapp-frontend/nuxt.config.ts +0 -25
  43. package/dist/templates/_shared/webapp-frontend/package.json.tmpl +0 -19
  44. package/dist/templates/_shared/webapp-frontend/pages/index.vue +0 -7
  45. package/dist/templates/_shared/webapp-frontend/public/.gitkeep +0 -0
  46. package/dist/templates/_shared/webapp-frontend/tsconfig.json +0 -3
  47. package/dist/templates/static-site/frontend/.gitkeep +0 -0
  48. package/dist/templates/static-site/frontend/build.js +0 -42
  49. /package/dist/templates/_shared/{nuxt-frontend/public → frontend}/.gitkeep +0 -0
  50. /package/dist/templates/{static-site → _shared}/frontend/README.md +0 -0
  51. /package/dist/templates/{static-site → _shared/frontend}/README.md.tmpl +0 -0
  52. /package/dist/templates/{static-site → _shared}/frontend/package.json +0 -0
  53. /package/dist/templates/{static-site → _shared/frontend}/package.json.tmpl +0 -0
  54. /package/dist/templates/{static-site → _shared/frontend}/pnpm-workspace.yaml.tmpl +0 -0
  55. /package/dist/templates/{static-site → _shared/frontend}/tsconfig.json +0 -0
  56. /package/dist/templates/_shared/{webapp-cdk-package.json.tmpl → package.json.tmpl} +0 -0
@@ -1,25 +0,0 @@
1
- // ABOUTME: Nuxt 3 configuration for Static Site Generation
2
- // ABOUTME: Outputs static files to dist/ for S3/CloudFront deployment
3
-
4
- export default defineNuxtConfig({
5
- // Enable SSR for static generation
6
- ssr: true,
7
-
8
- // Static site generation preset
9
- nitro: {
10
- preset: 'static',
11
- output: {
12
- publicDir: 'dist',
13
- },
14
- },
15
-
16
- // TypeScript support
17
- typescript: {
18
- strict: true,
19
- },
20
-
21
- // Disable telemetry
22
- telemetry: false,
23
-
24
- compatibilityDate: '2025-01-01',
25
- });
@@ -1,19 +0,0 @@
1
- {
2
- "name": "{{appName}}-frontend",
3
- "version": "0.0.1",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "build": "nuxt generate",
8
- "dev": "nuxt dev",
9
- "preview": "nuxt preview",
10
- "postinstall": "nuxt prepare"
11
- },
12
- "dependencies": {
13
- "vue": "^3.5.13"
14
- },
15
- "devDependencies": {
16
- "nuxt": "^3.14.0",
17
- "typescript": "^5.7.0"
18
- }
19
- }
@@ -1,7 +0,0 @@
1
- <template>
2
- <div>
3
- <h1>Welcome</h1>
4
- <p>Your web application is ready. Edit this page in pages/index.vue.</p>
5
- <p>API endpoint: <code>/api</code></p>
6
- </div>
7
- </template>
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "./.nuxt/tsconfig.json"
3
- }
File without changes
@@ -1,42 +0,0 @@
1
- #!/usr/bin/env node
2
- // ABOUTME: Placeholder build for static-site frontend. Creates dist/ with a minimal index.html.
3
- // ABOUTME: Replace this frontend with a Nuxt project (see README.md); then use Nuxt's build instead.
4
-
5
- const fs = require('fs');
6
- const path = require('path');
7
-
8
- const distDir = path.join(__dirname, 'dist');
9
- const watch = process.argv.includes('--watch');
10
-
11
- const indexHtml = `<!DOCTYPE html>
12
- <html lang="en">
13
- <head>
14
- <meta charset="UTF-8" />
15
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
16
- <title>Hello Philadelphia!</title>
17
- </head>
18
- <body>
19
- <h1>Hello Philadelphia!</h1>
20
- <p>Replace this placeholder frontend with your own application.</p>
21
- </body>
22
- </html>
23
- `;
24
-
25
- function build() {
26
- if (!fs.existsSync(distDir)) {
27
- fs.mkdirSync(distDir, { recursive: true });
28
- }
29
- fs.writeFileSync(path.join(distDir, 'index.html'), indexHtml, 'utf8');
30
- console.log('Built dist/index.html');
31
- }
32
-
33
- build();
34
-
35
- if (watch) {
36
- fs.watch(__dirname, { recursive: false }, (eventType, filename) => {
37
- if (filename && (filename.endsWith('.html') || filename.endsWith('.js'))) {
38
- build();
39
- }
40
- });
41
- console.log('Watching for changes...');
42
- }