@launch77/cli 1.2.0 → 1.3.0
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/CHANGELOG.md +11 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/infrastructure/git.d.ts +37 -0
- package/dist/infrastructure/git.d.ts.map +1 -0
- package/dist/infrastructure/git.js +82 -0
- package/dist/infrastructure/git.js.map +1 -0
- package/dist/infrastructure/github.d.ts +43 -0
- package/dist/infrastructure/github.d.ts.map +1 -0
- package/dist/infrastructure/github.js +89 -0
- package/dist/infrastructure/github.js.map +1 -0
- package/dist/modules/catalog/schemas/catalog-ui-components.schema.json +2 -18
- package/dist/modules/git/commands/git-connect.d.ts +3 -0
- package/dist/modules/git/commands/git-connect.d.ts.map +1 -0
- package/dist/modules/git/commands/git-connect.js +156 -0
- package/dist/modules/git/commands/git-connect.js.map +1 -0
- package/dist/modules/git/commands/git-setup-releases.d.ts +3 -0
- package/dist/modules/git/commands/git-setup-releases.d.ts.map +1 -0
- package/dist/modules/git/commands/git-setup-releases.js +128 -0
- package/dist/modules/git/commands/git-setup-releases.js.map +1 -0
- package/dist/modules/git/errors/git-errors.d.ts +18 -0
- package/dist/modules/git/errors/git-errors.d.ts.map +1 -0
- package/dist/modules/git/errors/git-errors.js +35 -0
- package/dist/modules/git/errors/git-errors.js.map +1 -0
- package/dist/modules/git/index.d.ts +3 -0
- package/dist/modules/git/index.d.ts.map +1 -0
- package/dist/modules/git/index.js +3 -0
- package/dist/modules/git/index.js.map +1 -0
- package/dist/modules/git/services/git-service.d.ts +19 -0
- package/dist/modules/git/services/git-service.d.ts.map +1 -0
- package/dist/modules/git/services/git-service.js +46 -0
- package/dist/modules/git/services/git-service.js.map +1 -0
- package/dist/modules/git/services/github-service.d.ts +27 -0
- package/dist/modules/git/services/github-service.d.ts.map +1 -0
- package/dist/modules/git/services/github-service.js +45 -0
- package/dist/modules/git/services/github-service.js.map +1 -0
- package/dist/modules/workspace/commands/init-workspace.d.ts.map +1 -1
- package/dist/modules/workspace/commands/init-workspace.js +4 -5
- package/dist/modules/workspace/commands/init-workspace.js.map +1 -1
- package/dist/modules/workspace/services/workspace-service.d.ts +2 -1
- package/dist/modules/workspace/services/workspace-service.d.ts.map +1 -1
- package/dist/modules/workspace/services/workspace-service.js +27 -1
- package/dist/modules/workspace/services/workspace-service.js.map +1 -1
- package/dist/templates/workspace/.github/workflows/ci.yml +99 -0
- package/dist/templates/workspace/package.json +15 -1
- package/package.json +2 -2
- package/src/cli.ts +5 -0
- package/src/infrastructure/git.ts +86 -0
- package/src/infrastructure/github.ts +111 -0
- package/src/modules/git/commands/git-connect.ts +183 -0
- package/src/modules/git/commands/git-setup-releases.ts +148 -0
- package/src/modules/git/errors/git-errors.ts +37 -0
- package/src/modules/git/index.ts +2 -0
- package/src/modules/git/services/git-service.ts +52 -0
- package/src/modules/git/services/github-service.ts +52 -0
- package/src/modules/workspace/commands/init-workspace.ts +4 -6
- package/src/modules/workspace/services/workspace-service.ts +30 -1
- package/templates/workspace/.github/workflows/ci.yml +99 -0
- package/templates/workspace/package.json +4 -0
- package/dist/app-templates/webapp/.env.ci +0 -6
- package/dist/app-templates/webapp/.env.example +0 -9
- package/dist/app-templates/webapp/.eslintrc.json +0 -6
- package/dist/app-templates/webapp/README.md.hbs +0 -80
- package/dist/app-templates/webapp/app/about/page.tsx.hbs +0 -41
- package/dist/app-templates/webapp/app/dashboard/page.tsx.hbs +0 -51
- package/dist/app-templates/webapp/app/globals.css +0 -31
- package/dist/app-templates/webapp/app/layout.tsx.hbs +0 -26
- package/dist/app-templates/webapp/app/page.tsx.hbs +0 -30
- package/dist/app-templates/webapp/next.config.js +0 -99
- package/dist/app-templates/webapp/package.json.hbs +0 -30
- package/dist/app-templates/webapp/postcss.config.js +0 -6
- package/dist/app-templates/webapp/tailwind.config.ts +0 -24
- package/dist/app-templates/webapp/tsconfig.json +0 -29
- package/dist/app-templates/webapp/vercel.json.hbs +0 -7
- package/dist/modules/catalog/schemas/schemas/catalog-ui-components.schema.json +0 -145
- package/dist/plugins/theme/package.json +0 -32
- package/dist/plugins/theme/plugin.json +0 -9
- package/dist/plugins/theme/src/generator.ts +0 -92
- package/dist/plugins/theme/src/utils/config-modifier.ts +0 -142
- package/dist/plugins/theme/src/utils/css-modifier.ts +0 -89
- package/dist/plugins/theme/templates/app/theme-test/page.tsx +0 -156
- package/dist/plugins/theme/templates/src/modules/theme/README.md +0 -209
- package/dist/plugins/theme/templates/src/modules/theme/config/brand.css +0 -23
- package/dist/plugins/theme/tsconfig.json +0 -14
- package/dist/plugins/theme/tsup.config.ts +0 -10
- package/dist/templates/templates/startup/apps/.gitkeep +0 -8
- package/dist/templates/templates/workspace/.launch77/workspace.json +0 -3
- package/dist/templates/templates/workspace/README.md +0 -62
- package/dist/templates/templates/workspace/app-templates/.gitkeep +0 -1
- package/dist/templates/templates/workspace/apps/.gitkeep +0 -1
- package/dist/templates/templates/workspace/libraries/.gitkeep +0 -1
- package/dist/templates/templates/workspace/package.json +0 -31
- package/dist/templates/templates/workspace/plugins/.gitkeep +0 -1
- package/dist/templates/templates/workspace/tsconfig.json +0 -22
- package/dist/templates/templates/workspace/turbo.json +0 -25
- /package/dist/templates/{templates/workspace → workspace}/.eslintignore +0 -0
- /package/dist/templates/{templates/workspace → workspace}/.eslintrc.js +0 -0
- /package/dist/templates/{templates/workspace → workspace}/.husky/pre-push +0 -0
- /package/dist/templates/{templates/workspace → workspace}/.lintstagedrc.json +0 -0
- /package/dist/templates/{templates/workspace → workspace}/.prettierrc +0 -0
|
@@ -38,14 +38,12 @@ export function initWorkspaceCommand(): Command {
|
|
|
38
38
|
try {
|
|
39
39
|
const spinner = ora('Creating workspace structure...').start()
|
|
40
40
|
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
spinner.succeed('Workspace structure created')
|
|
41
|
+
const cwd = process.cwd()
|
|
42
|
+
const result = await service.initWorkspace({ name: workspaceName }, cwd, spinner)
|
|
44
43
|
|
|
45
44
|
// Success message
|
|
46
|
-
|
|
47
|
-
console.log(chalk.
|
|
48
|
-
console.log(chalk.gray(`Next steps:\n` + ` 1. cd ${workspaceName}\n` + ` 2. npm install\n` + ` 3. Create your first app with launch77 commands\n`))
|
|
45
|
+
console.log(chalk.green(`\n✅ Workspace ready at ${path.relative(cwd, result.workspacePath)}\n`))
|
|
46
|
+
console.log(chalk.gray(`Next steps:\n` + ` 1. cd ${workspaceName}\n` + ` 2. Create your first app with launch77 commands\n`))
|
|
49
47
|
} catch (error) {
|
|
50
48
|
if (error instanceof WorkspaceAlreadyExistsError) {
|
|
51
49
|
console.error(chalk.red(`\n❌ ${error.message}\n`))
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import * as path from 'path'
|
|
2
2
|
import { fileURLToPath } from 'url'
|
|
3
3
|
|
|
4
|
+
import { execa } from 'execa'
|
|
5
|
+
|
|
4
6
|
import * as filesystem from '../../../infrastructure/filesystem.js'
|
|
7
|
+
import * as npm from '../../../infrastructure/npm.js'
|
|
5
8
|
import { WorkspaceAlreadyExistsError } from '../errors/workspace-errors.js'
|
|
6
9
|
import { validateWorkspaceName } from '../utils/workspace-validators.js'
|
|
7
10
|
|
|
8
11
|
import type { InitWorkspaceRequest, InitWorkspaceResult } from '../types/workspace-types.js'
|
|
12
|
+
import type { Ora } from 'ora'
|
|
9
13
|
|
|
10
14
|
export class WorkspaceService {
|
|
11
|
-
async initWorkspace(request: InitWorkspaceRequest, cwd: string): Promise<InitWorkspaceResult> {
|
|
15
|
+
async initWorkspace(request: InitWorkspaceRequest, cwd: string, spinner?: Ora): Promise<InitWorkspaceResult> {
|
|
12
16
|
const { name } = request
|
|
13
17
|
|
|
14
18
|
// 1. Validate name
|
|
@@ -38,6 +42,31 @@ export class WorkspaceService {
|
|
|
38
42
|
throw new Error('Failed to create workspace manifest (.launch77/workspace.json)')
|
|
39
43
|
}
|
|
40
44
|
|
|
45
|
+
// 7. Stop spinner before npm install
|
|
46
|
+
if (spinner) {
|
|
47
|
+
spinner.succeed('Workspace structure created')
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 8. Install dependencies
|
|
51
|
+
console.log('\nInstalling dependencies...')
|
|
52
|
+
try {
|
|
53
|
+
await npm.install(workspacePath)
|
|
54
|
+
console.log('✓ Dependencies installed')
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.warn('⚠ Warning: npm install failed:', error instanceof Error ? error.message : String(error))
|
|
57
|
+
console.warn('You may need to run npm install manually in the workspace directory')
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// 9. Initialize changesets
|
|
61
|
+
console.log('\nInitializing changesets...')
|
|
62
|
+
try {
|
|
63
|
+
await execa('npx', ['changeset', 'init'], { cwd: workspacePath })
|
|
64
|
+
console.log('✓ Changesets initialized')
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.warn('⚠ Warning: changeset init failed:', error instanceof Error ? error.message : String(error))
|
|
67
|
+
console.warn('You may need to run npx changeset init manually in the workspace directory')
|
|
68
|
+
}
|
|
69
|
+
|
|
41
70
|
return {
|
|
42
71
|
workspacePath,
|
|
43
72
|
name,
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
name: CI & Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main, develop]
|
|
6
|
+
push:
|
|
7
|
+
branches: [main, develop]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
pull-requests: write
|
|
12
|
+
id-token: write
|
|
13
|
+
|
|
14
|
+
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build-and-test:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
node-version: [20.x]
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
|
|
27
|
+
- name: Setup Node.js ${{ matrix.node-version }}
|
|
28
|
+
uses: actions/setup-node@v4
|
|
29
|
+
with:
|
|
30
|
+
node-version: ${{ matrix.node-version }}
|
|
31
|
+
cache: 'npm'
|
|
32
|
+
|
|
33
|
+
- name: Install dependencies
|
|
34
|
+
run: npm ci
|
|
35
|
+
|
|
36
|
+
- name: Run linting
|
|
37
|
+
run: npm run lint
|
|
38
|
+
|
|
39
|
+
- name: Run type checking
|
|
40
|
+
run: npm run typecheck
|
|
41
|
+
|
|
42
|
+
- name: Build packages
|
|
43
|
+
run: npm run build
|
|
44
|
+
|
|
45
|
+
- name: Run tests
|
|
46
|
+
run: npm run test
|
|
47
|
+
|
|
48
|
+
quality-checks:
|
|
49
|
+
runs-on: ubuntu-latest
|
|
50
|
+
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@v4
|
|
53
|
+
|
|
54
|
+
- name: Setup Node.js 20.x
|
|
55
|
+
uses: actions/setup-node@v4
|
|
56
|
+
with:
|
|
57
|
+
node-version: 20.x
|
|
58
|
+
cache: 'npm'
|
|
59
|
+
|
|
60
|
+
- name: Install dependencies
|
|
61
|
+
run: npm ci
|
|
62
|
+
|
|
63
|
+
- name: Check for dependency vulnerabilities
|
|
64
|
+
run: npm audit --audit-level=high
|
|
65
|
+
|
|
66
|
+
- name: Check formatting
|
|
67
|
+
run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,md}"
|
|
68
|
+
|
|
69
|
+
release:
|
|
70
|
+
name: Release
|
|
71
|
+
runs-on: ubuntu-latest
|
|
72
|
+
needs: [build-and-test, quality-checks]
|
|
73
|
+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
74
|
+
|
|
75
|
+
steps:
|
|
76
|
+
- name: Checkout Repo
|
|
77
|
+
uses: actions/checkout@v4
|
|
78
|
+
|
|
79
|
+
- name: Setup Node.js 20.x
|
|
80
|
+
uses: actions/setup-node@v4
|
|
81
|
+
with:
|
|
82
|
+
node-version: 20.x
|
|
83
|
+
cache: 'npm'
|
|
84
|
+
|
|
85
|
+
- name: Upgrade npm
|
|
86
|
+
run: npm i -g npm@latest
|
|
87
|
+
|
|
88
|
+
- name: Install Dependencies
|
|
89
|
+
run: npm install
|
|
90
|
+
|
|
91
|
+
- name: Create Release Pull Request or Publish to npm
|
|
92
|
+
id: changesets
|
|
93
|
+
uses: changesets/action@v1
|
|
94
|
+
with:
|
|
95
|
+
publish: npm run release
|
|
96
|
+
title: "chore: version packages"
|
|
97
|
+
commit: "chore: version packages"
|
|
98
|
+
env:
|
|
99
|
+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
@@ -15,9 +15,13 @@
|
|
|
15
15
|
"test": "turbo run test",
|
|
16
16
|
"lint": "turbo run lint",
|
|
17
17
|
"typecheck": "turbo run typecheck",
|
|
18
|
+
"changeset": "changeset",
|
|
19
|
+
"version-packages": "changeset version",
|
|
20
|
+
"release": "turbo run build lint typecheck test && changeset publish",
|
|
18
21
|
"prepare": "husky"
|
|
19
22
|
},
|
|
20
23
|
"devDependencies": {
|
|
24
|
+
"@changesets/cli": "^2.29.8",
|
|
21
25
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
22
26
|
"@typescript-eslint/parser": "^6.0.0",
|
|
23
27
|
"eslint": "^8.56.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# CI/CD Build Environment Variables
|
|
2
|
-
# These values allow Next.js to build and prerender static pages in CI
|
|
3
|
-
# Real production values are set in deployment platform (Vercel)
|
|
4
|
-
NEXT_PUBLIC_SITE_URL=http://localhost:3000
|
|
5
|
-
NEXT_PUBLIC_API_URL=http://localhost:4000/graphql
|
|
6
|
-
NEXT_PUBLIC_GTM_ID=
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# {{appName}}
|
|
2
|
-
|
|
3
|
-
{{#if startupName}}Part of the {{startupName}} startup{{/if}}
|
|
4
|
-
|
|
5
|
-
A web application built with the Launch77 Platform.
|
|
6
|
-
|
|
7
|
-
## Getting Started
|
|
8
|
-
|
|
9
|
-
1. Install dependencies (from monorepo root):
|
|
10
|
-
```bash
|
|
11
|
-
npm install
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
2. Set up environment variables:
|
|
15
|
-
```bash
|
|
16
|
-
cp .env.example .env.local
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
3. Run the development server:
|
|
20
|
-
```bash
|
|
21
|
-
npm run dev
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Open [http://localhost:{{port}}](http://localhost:{{port}}) in your browser.
|
|
25
|
-
|
|
26
|
-
## Available Scripts
|
|
27
|
-
|
|
28
|
-
- `npm run dev` - Start development server
|
|
29
|
-
- `npm run build` - Build for production
|
|
30
|
-
- `npm run start` - Start production server
|
|
31
|
-
- `npm run lint` - Run ESLint
|
|
32
|
-
- `npm run typecheck` - Run TypeScript type checking
|
|
33
|
-
|
|
34
|
-
## Launch77 Packages
|
|
35
|
-
|
|
36
|
-
This app uses the following Launch77 platform packages:
|
|
37
|
-
|
|
38
|
-
- **@launch77/ui** - Shared component library
|
|
39
|
-
- **@launch77/theme** - Tailwind preset and design tokens
|
|
40
|
-
|
|
41
|
-
## Project Structure
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
app/
|
|
45
|
-
├── layout.tsx # Root layout
|
|
46
|
-
├── page.tsx # Homepage
|
|
47
|
-
├── dashboard/ # Example dashboard page
|
|
48
|
-
├── about/ # About page
|
|
49
|
-
└── globals.css # Global styles (imports @launch77/theme)
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Next Steps
|
|
53
|
-
|
|
54
|
-
1. **Add Authentication**: Implement login/register pages and protect routes
|
|
55
|
-
2. **Connect to API**: Set up API client to connect to your backend
|
|
56
|
-
3. **Add Features**: Build out your application features
|
|
57
|
-
|
|
58
|
-
## Using UI Components
|
|
59
|
-
|
|
60
|
-
```tsx
|
|
61
|
-
import { Button, Card, Input } from '@launch77/ui'
|
|
62
|
-
|
|
63
|
-
export default function MyPage() {
|
|
64
|
-
return (
|
|
65
|
-
<Card>
|
|
66
|
-
<Input placeholder="Enter text" />
|
|
67
|
-
<Button>Submit</Button>
|
|
68
|
-
</Card>
|
|
69
|
-
)
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Customizing Theme
|
|
74
|
-
|
|
75
|
-
Extend `tailwind.config.ts` for theme customization.
|
|
76
|
-
|
|
77
|
-
## Learn More
|
|
78
|
-
|
|
79
|
-
- [Next.js Documentation](https://nextjs.org/docs)
|
|
80
|
-
- [Launch77 Platform Docs](../../README.md)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import Link from 'next/link'
|
|
2
|
-
|
|
3
|
-
export default function AboutPage() {
|
|
4
|
-
return (
|
|
5
|
-
<div className="min-h-screen bg-gray-50">
|
|
6
|
-
<nav className="border-b border-gray-200">
|
|
7
|
-
<div className="max-w-7xl mx-auto px-4 py-4">
|
|
8
|
-
<div className="flex items-center justify-between">
|
|
9
|
-
<h1 className="text-xl font-bold text-gray-900">{{appName}}</h1>
|
|
10
|
-
<Link
|
|
11
|
-
href="/"
|
|
12
|
-
className="px-4 py-2 text-sm font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100 rounded-md transition-colors"
|
|
13
|
-
>
|
|
14
|
-
Home
|
|
15
|
-
</Link>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</nav>
|
|
19
|
-
|
|
20
|
-
<main className="max-w-3xl mx-auto px-4 py-16">
|
|
21
|
-
<h1 className="text-4xl font-bold text-gray-900 mb-4">
|
|
22
|
-
About {{appName}}
|
|
23
|
-
</h1>
|
|
24
|
-
<div className="prose prose-slate">
|
|
25
|
-
<p className="text-lg text-gray-600 mb-4">
|
|
26
|
-
This is a web application built with the Launch77 Platform.
|
|
27
|
-
</p>
|
|
28
|
-
<p className="text-gray-600 mb-4">
|
|
29
|
-
Launch77 provides a modern development environment with:
|
|
30
|
-
</p>
|
|
31
|
-
<ul className="list-disc list-inside text-gray-600 mb-4 space-y-2">
|
|
32
|
-
<li>Next.js for server-side rendering and routing</li>
|
|
33
|
-
<li>Tailwind CSS for styling</li>
|
|
34
|
-
<li>TypeScript for type safety</li>
|
|
35
|
-
<li>Plugin-based architecture for adding capabilities</li>
|
|
36
|
-
</ul>
|
|
37
|
-
</div>
|
|
38
|
-
</main>
|
|
39
|
-
</div>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import Link from 'next/link'
|
|
2
|
-
|
|
3
|
-
export default function DashboardPage() {
|
|
4
|
-
return (
|
|
5
|
-
<div className="min-h-screen bg-gray-50">
|
|
6
|
-
<nav className="border-b border-gray-200">
|
|
7
|
-
<div className="max-w-7xl mx-auto px-4 py-4">
|
|
8
|
-
<div className="flex items-center justify-between">
|
|
9
|
-
<h1 className="text-xl font-bold text-gray-900">{{appName}}</h1>
|
|
10
|
-
<Link
|
|
11
|
-
href="/"
|
|
12
|
-
className="px-4 py-2 text-sm font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100 rounded-md transition-colors"
|
|
13
|
-
>
|
|
14
|
-
Home
|
|
15
|
-
</Link>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</nav>
|
|
19
|
-
|
|
20
|
-
<main className="max-w-7xl mx-auto px-4 py-8">
|
|
21
|
-
<div className="mb-8">
|
|
22
|
-
<h2 className="text-3xl font-bold text-gray-900 mb-2">Dashboard</h2>
|
|
23
|
-
<p className="text-gray-600">
|
|
24
|
-
This is a protected page example. Add your authentication logic here.
|
|
25
|
-
</p>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
|
|
29
|
-
<div className="rounded-lg border border-gray-200 bg-white p-6">
|
|
30
|
-
<h3 className="font-semibold text-gray-900 mb-2">Card 1</h3>
|
|
31
|
-
<p className="text-sm text-gray-600">
|
|
32
|
-
Example content for your dashboard
|
|
33
|
-
</p>
|
|
34
|
-
</div>
|
|
35
|
-
<div className="rounded-lg border border-gray-200 bg-white p-6">
|
|
36
|
-
<h3 className="font-semibold text-gray-900 mb-2">Card 2</h3>
|
|
37
|
-
<p className="text-sm text-gray-600">
|
|
38
|
-
Example content for your dashboard
|
|
39
|
-
</p>
|
|
40
|
-
</div>
|
|
41
|
-
<div className="rounded-lg border border-gray-200 bg-white p-6">
|
|
42
|
-
<h3 className="font-semibold text-gray-900 mb-2">Card 3</h3>
|
|
43
|
-
<p className="text-sm text-gray-600">
|
|
44
|
-
Example content for your dashboard
|
|
45
|
-
</p>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</main>
|
|
49
|
-
</div>
|
|
50
|
-
)
|
|
51
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
/* Base resets and accessibility styles */
|
|
6
|
-
@layer base {
|
|
7
|
-
html {
|
|
8
|
-
scroll-behavior: smooth;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
body {
|
|
12
|
-
@apply antialiased;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Focus styles for accessibility */
|
|
16
|
-
:focus-visible {
|
|
17
|
-
@apply outline-none ring-2 ring-blue-500 ring-offset-2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Reduced motion support */
|
|
21
|
-
@media (prefers-reduced-motion: reduce) {
|
|
22
|
-
*,
|
|
23
|
-
*::before,
|
|
24
|
-
*::after {
|
|
25
|
-
animation-duration: 0.01ms !important;
|
|
26
|
-
animation-iteration-count: 1 !important;
|
|
27
|
-
transition-duration: 0.01ms !important;
|
|
28
|
-
scroll-behavior: auto !important;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from 'next'
|
|
2
|
-
import { Inter } from 'next/font/google'
|
|
3
|
-
|
|
4
|
-
import './globals.css'
|
|
5
|
-
|
|
6
|
-
const inter = Inter({ subsets: ['latin'] })
|
|
7
|
-
|
|
8
|
-
export const metadata: Metadata = {
|
|
9
|
-
title: '{{appName}}',
|
|
10
|
-
description: '{{appName}} - Built with Launch77 Platform',
|
|
11
|
-
icons: {
|
|
12
|
-
icon: '/favicon.ico',
|
|
13
|
-
},
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default function RootLayout({
|
|
17
|
-
children,
|
|
18
|
-
}: {
|
|
19
|
-
children: React.ReactNode
|
|
20
|
-
}) {
|
|
21
|
-
return (
|
|
22
|
-
<html lang="en" className={`${inter.className} scroll-smooth`}>
|
|
23
|
-
<body>{children}</body>
|
|
24
|
-
</html>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import Link from 'next/link'
|
|
2
|
-
|
|
3
|
-
export default function HomePage() {
|
|
4
|
-
return (
|
|
5
|
-
<main className="min-h-screen flex items-center justify-center bg-gray-50">
|
|
6
|
-
<div className="max-w-2xl mx-auto px-4 py-16 text-center">
|
|
7
|
-
<h1 className="text-4xl font-bold text-gray-900 mb-4">
|
|
8
|
-
Welcome to {{appName}}
|
|
9
|
-
</h1>
|
|
10
|
-
<p className="text-lg text-gray-600 mb-8">
|
|
11
|
-
Built with the Launch77 Platform
|
|
12
|
-
</p>
|
|
13
|
-
<div className="flex gap-4 justify-center">
|
|
14
|
-
<Link
|
|
15
|
-
href="/dashboard"
|
|
16
|
-
className="inline-flex items-center justify-center px-6 py-3 text-base font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors"
|
|
17
|
-
>
|
|
18
|
-
Go to Dashboard
|
|
19
|
-
</Link>
|
|
20
|
-
<Link
|
|
21
|
-
href="/about"
|
|
22
|
-
className="inline-flex items-center justify-center px-6 py-3 text-base font-medium text-gray-700 bg-white hover:bg-gray-50 border border-gray-300 rounded-lg transition-colors"
|
|
23
|
-
>
|
|
24
|
-
Learn More
|
|
25
|
-
</Link>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</main>
|
|
29
|
-
)
|
|
30
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// Load .env.ci in CI environments for build-time placeholder variables
|
|
2
|
-
// This allows static page generation to succeed without real env values
|
|
3
|
-
// Real values come from deployment platform (Vercel/Railway)
|
|
4
|
-
if (process.env.CI === 'true') {
|
|
5
|
-
const path = require('path')
|
|
6
|
-
require('dotenv').config({ path: path.join(__dirname, '.env.ci') })
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/** @type {import('next').NextConfig} */
|
|
10
|
-
const nextConfig = {
|
|
11
|
-
reactStrictMode: true,
|
|
12
|
-
images: {
|
|
13
|
-
formats: ['image/avif', 'image/webp'],
|
|
14
|
-
deviceSizes: [640, 750, 1080, 1200, 1920],
|
|
15
|
-
imageSizes: [16, 32, 48, 64, 96, 128, 256],
|
|
16
|
-
minimumCacheTTL: 60 * 60 * 24 * 365, // 1 year
|
|
17
|
-
},
|
|
18
|
-
compress: true,
|
|
19
|
-
poweredByHeader: false,
|
|
20
|
-
swcMinify: true,
|
|
21
|
-
compiler: {
|
|
22
|
-
removeConsole: process.env.NODE_ENV === 'production',
|
|
23
|
-
},
|
|
24
|
-
headers: async () => [
|
|
25
|
-
{
|
|
26
|
-
source: '/:path*',
|
|
27
|
-
headers: [
|
|
28
|
-
{
|
|
29
|
-
key: 'X-DNS-Prefetch-Control',
|
|
30
|
-
value: 'on',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
key: 'X-Content-Type-Options',
|
|
34
|
-
value: 'nosniff',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
key: 'X-Frame-Options',
|
|
38
|
-
value: 'SAMEORIGIN',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
key: 'X-XSS-Protection',
|
|
42
|
-
value: '1; mode=block',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
key: 'Referrer-Policy',
|
|
46
|
-
value: 'origin-when-cross-origin',
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
// Cache static assets aggressively
|
|
51
|
-
{
|
|
52
|
-
source: '/(.*).jpg',
|
|
53
|
-
headers: [
|
|
54
|
-
{
|
|
55
|
-
key: 'Cache-Control',
|
|
56
|
-
value: 'public, max-age=31536000, immutable',
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
source: '/(.*).png',
|
|
62
|
-
headers: [
|
|
63
|
-
{
|
|
64
|
-
key: 'Cache-Control',
|
|
65
|
-
value: 'public, max-age=31536000, immutable',
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
source: '/(.*).svg',
|
|
71
|
-
headers: [
|
|
72
|
-
{
|
|
73
|
-
key: 'Cache-Control',
|
|
74
|
-
value: 'public, max-age=31536000, immutable',
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
source: '/(.*).webp',
|
|
80
|
-
headers: [
|
|
81
|
-
{
|
|
82
|
-
key: 'Cache-Control',
|
|
83
|
-
value: 'public, max-age=31536000, immutable',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
source: '/_next/static/(.*)',
|
|
89
|
-
headers: [
|
|
90
|
-
{
|
|
91
|
-
key: 'Cache-Control',
|
|
92
|
-
value: 'public, max-age=31536000, immutable',
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
module.exports = nextConfig
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{#if startupName}}@{{startupName}}/{{appName}}{{else}}{{appName}}{{/if}}",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "{{appName}}{{#if startupName}} ({{startupName}}){{/if}} - Built with Launch77 Platform",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "next dev{{#if port}} -p {{port}}{{/if}}",
|
|
8
|
-
"build": "next build",
|
|
9
|
-
"start": "next start{{#if port}} -p {{port}}{{/if}}",
|
|
10
|
-
"test": "echo \"No tests configured\" && exit 0",
|
|
11
|
-
"lint": "next lint",
|
|
12
|
-
"typecheck": "tsc --noEmit"
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"next": "^14.2.0",
|
|
16
|
-
"react": "^18.3.1",
|
|
17
|
-
"react-dom": "^18.3.1"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@types/node": "^20.0.0",
|
|
21
|
-
"@types/react": "^18.2.79",
|
|
22
|
-
"@types/react-dom": "^18.2.25",
|
|
23
|
-
"autoprefixer": "^10.4.21",
|
|
24
|
-
"eslint": "^8.56.0",
|
|
25
|
-
"eslint-config-next": "^14.2.0",
|
|
26
|
-
"postcss": "^8.5.6",
|
|
27
|
-
"tailwindcss": "^3.4.17",
|
|
28
|
-
"typescript": "^5.3.0"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Config } from 'tailwindcss'
|
|
2
|
-
|
|
3
|
-
const config: Config = {
|
|
4
|
-
content: [
|
|
5
|
-
'./app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
6
|
-
'./components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
7
|
-
'./lib/**/*.{js,ts,jsx,tsx,mdx}',
|
|
8
|
-
],
|
|
9
|
-
theme: {
|
|
10
|
-
extend: {
|
|
11
|
-
// Add your custom theme extensions here
|
|
12
|
-
// Example:
|
|
13
|
-
// colors: {
|
|
14
|
-
// brand: {
|
|
15
|
-
// 500: '#FF5816',
|
|
16
|
-
// 600: '#F03D00',
|
|
17
|
-
// },
|
|
18
|
-
// },
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
plugins: [],
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default config
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
6
|
-
"allowJs": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"noEmit": true,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"module": "esnext",
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"isolatedModules": true,
|
|
15
|
-
"jsx": "preserve",
|
|
16
|
-
"incremental": true,
|
|
17
|
-
"plugins": [
|
|
18
|
-
{
|
|
19
|
-
"name": "next"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"paths": {
|
|
23
|
-
"@/*": ["./*"]
|
|
24
|
-
},
|
|
25
|
-
"baseUrl": "."
|
|
26
|
-
},
|
|
27
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
28
|
-
"exclude": ["node_modules"]
|
|
29
|
-
}
|