@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.
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +43 -17
- package/dist/commands/init.js.map +1 -1
- package/dist/templates/lambda-api-nodejs/README.md.tmpl +52 -4
- package/dist/templates/lambda-api-nodejs/apps/__lambdaName__/package.json +3 -2
- package/dist/templates/lambda-api-nodejs/cdk/app.ts.tmpl +1 -1
- package/dist/templates/lambda-dynamo-api/README.md.tmpl +52 -4
- package/dist/templates/lambda-dynamo-api/apps/__lambdaName__/package.json +3 -2
- package/dist/templates/lambda-dynamo-api/cdk/app.ts.tmpl +1 -1
- package/dist/templates/lambda-postgres-api/README.md.tmpl +54 -6
- package/dist/templates/lambda-postgres-api/apps/__lambdaName__/package.json +3 -2
- package/dist/templates/lambda-postgres-api/cdk/app.ts.tmpl +1 -1
- package/dist/templates/webapp-ecs-dotnet/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-ecs-node/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-ecs-postgres-dotnet/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-ecs-postgres-node/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-lambda-dotnet/README.md.tmpl +28 -5
- package/dist/templates/webapp-lambda-dotnet/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-lambda-dynamo-dotnet/README.md.tmpl +28 -5
- package/dist/templates/webapp-lambda-dynamo-dotnet/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-lambda-dynamo-node/README.md.tmpl +28 -5
- package/dist/templates/webapp-lambda-dynamo-node/apps/api/package.json +3 -2
- package/dist/templates/webapp-lambda-dynamo-node/cdk/app.ts.tmpl +1 -1
- package/dist/templates/webapp-lambda-dynamo-node/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-lambda-node/README.md.tmpl +28 -5
- package/dist/templates/webapp-lambda-node/apps/api/package.json +3 -2
- package/dist/templates/webapp-lambda-node/cdk/app.ts.tmpl +1 -1
- package/dist/templates/webapp-lambda-node/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-lambda-postgres-dotnet/README.md.tmpl +29 -6
- package/dist/templates/webapp-lambda-postgres-dotnet/cdk/package.json.tmpl +23 -0
- package/dist/templates/webapp-lambda-postgres-node/README.md.tmpl +28 -5
- package/dist/templates/webapp-lambda-postgres-node/apps/api/package.json +3 -2
- package/dist/templates/webapp-lambda-postgres-node/cdk/app.ts.tmpl +1 -1
- package/dist/templates/webapp-lambda-postgres-node/cdk/package.json.tmpl +23 -0
- package/package.json +2 -2
- package/dist/templates/_shared/nuxt-frontend/app.vue +0 -3
- package/dist/templates/_shared/nuxt-frontend/nuxt.config.ts +0 -25
- package/dist/templates/_shared/nuxt-frontend/package.json.tmpl +0 -19
- package/dist/templates/_shared/nuxt-frontend/pages/index.vue +0 -6
- package/dist/templates/_shared/nuxt-frontend/tsconfig.json +0 -3
- package/dist/templates/_shared/webapp-frontend/app.vue +0 -3
- package/dist/templates/_shared/webapp-frontend/nuxt.config.ts +0 -25
- package/dist/templates/_shared/webapp-frontend/package.json.tmpl +0 -19
- package/dist/templates/_shared/webapp-frontend/pages/index.vue +0 -7
- package/dist/templates/_shared/webapp-frontend/public/.gitkeep +0 -0
- package/dist/templates/_shared/webapp-frontend/tsconfig.json +0 -3
- package/dist/templates/static-site/frontend/.gitkeep +0 -0
- package/dist/templates/static-site/frontend/build.js +0 -42
- /package/dist/templates/_shared/{nuxt-frontend/public → frontend}/.gitkeep +0 -0
- /package/dist/templates/{static-site → _shared}/frontend/README.md +0 -0
- /package/dist/templates/{static-site → _shared/frontend}/README.md.tmpl +0 -0
- /package/dist/templates/{static-site → _shared}/frontend/package.json +0 -0
- /package/dist/templates/{static-site → _shared/frontend}/package.json.tmpl +0 -0
- /package/dist/templates/{static-site → _shared/frontend}/pnpm-workspace.yaml.tmpl +0 -0
- /package/dist/templates/{static-site → _shared/frontend}/tsconfig.json +0 -0
- /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
|
-
}
|
|
File without changes
|
|
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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|