@donotdev/cli 0.0.17 → 0.0.18
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/dependencies-matrix.json +166 -58
- package/dist/bin/commands/create-app.js +89 -140
- package/dist/bin/commands/create-project.js +90 -144
- package/dist/bin/dndev.js +9 -6
- package/dist/bin/donotdev.js +9 -6
- package/dist/index.js +97 -148
- package/package.json +1 -1
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +15 -1
- package/templates/root-consumer/.claude/commands/build.md.example +24 -2
- package/templates/root-consumer/.claude/commands/design.md.example +17 -0
- package/templates/root-consumer/.claude/commands/polish.md.example +17 -0
- package/templates/root-consumer/AI.md.example +50 -18
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +64 -0
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +1 -1
- package/templates/functions-firebase/functions-firebase/README.md.example +0 -123
- package/templates/functions-firebase/functions-firebase/build.mjs.example +0 -5
- package/templates/functions-firebase/functions-firebase/src/auth/getCustomClaims.ts.example +0 -19
- package/templates/functions-firebase/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -21
- package/templates/functions-firebase/functions-firebase/src/auth/index.ts.example +0 -11
- package/templates/functions-firebase/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -21
- package/templates/functions-firebase/functions-firebase/src/auth/setCustomClaims.ts.example +0 -21
- package/templates/functions-firebase/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -24
- package/templates/functions-firebase/functions-firebase/src/billing/index.ts.example +0 -10
- package/templates/functions-firebase/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/index.ts.example +0 -39
- package/templates/functions-firebase/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/oauth/disconnect.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/oauth/exchangeToken.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/oauth/getConnections.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/oauth/index.ts.example +0 -17
- package/templates/functions-firebase/functions-firebase/src/oauth/refreshToken.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -14
- package/templates/functions-firebase/functions-firebase/tsconfig.json.example +0 -21
- package/templates/functions-vercel/functions-vercel/README.md.example +0 -116
- package/templates/functions-vercel/functions-vercel/build.mjs.example +0 -52
- package/templates/functions-vercel/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/crud/createEntity.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/crud/getEntity.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/crud/listEntities.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/crud/updateEntity.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/oauth/disconnect.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/oauth/getConnections.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -20
- package/templates/functions-vercel/functions-vercel/tsconfig.json.example +0 -21
- package/templates/functions-vercel/functions-vercel/vercel.json.example +0 -14
- package/templates/github/github/workflows/firebase-deploy.yml.example +0 -79
- /package/templates/functions-firebase/{functions-firebase/.env.example.example → .env.example} +0 -0
- /package/templates/functions-vercel/{functions-vercel/.env.example.example → .env.example} +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
name: Deploy to Firebase Hosting
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build_and_deploy:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
# Step 1: Create parent directory for proper relative paths
|
|
12
|
-
- name: Create parent directory structure
|
|
13
|
-
run: |
|
|
14
|
-
mkdir -p $GITHUB_WORKSPACE/../dndev
|
|
15
|
-
ls -la $GITHUB_WORKSPACE/..
|
|
16
|
-
|
|
17
|
-
# Step 2: Checkout main repository
|
|
18
|
-
- name: Checkout {{projectName}} Repository
|
|
19
|
-
uses: actions/checkout@v4
|
|
20
|
-
with:
|
|
21
|
-
path: {{projectName}}
|
|
22
|
-
|
|
23
|
-
# Step 3: Checkout dndev repository
|
|
24
|
-
- name: Checkout DnDev Repository
|
|
25
|
-
uses: actions/checkout@v4
|
|
26
|
-
with:
|
|
27
|
-
repository: ${{ github.repository_owner }}/dndev # Uses same owner as project repo
|
|
28
|
-
token: ${{ secrets.GH_PAT }} # Personal access token with repo scope
|
|
29
|
-
path: dndev
|
|
30
|
-
|
|
31
|
-
# Step 4: Set up Node.js
|
|
32
|
-
- name: Set up Node.js
|
|
33
|
-
uses: actions/setup-node@v4
|
|
34
|
-
with:
|
|
35
|
-
node-version: '22' # Using Node 22 LTS
|
|
36
|
-
|
|
37
|
-
# Step 5: Setup Bun
|
|
38
|
-
- name: Install Bun
|
|
39
|
-
uses: oven-sh/setup-bun@v1
|
|
40
|
-
with:
|
|
41
|
-
bun-version: 1.3.0
|
|
42
|
-
|
|
43
|
-
# Step 6: Setup Bun cache
|
|
44
|
-
- name: Setup Bun cache
|
|
45
|
-
uses: actions/cache@v3
|
|
46
|
-
with:
|
|
47
|
-
path: ~/.bun/install/cache
|
|
48
|
-
key: ${{ runner.os }}-bun-cache-${{ hashFiles('**/bun.lockb') }}
|
|
49
|
-
restore-keys: |
|
|
50
|
-
${{ runner.os }}-bun-cache-
|
|
51
|
-
|
|
52
|
-
# Step 7: Install dependencies
|
|
53
|
-
- name: Install Dependencies
|
|
54
|
-
working-directory: {{projectName}}
|
|
55
|
-
run: bun install
|
|
56
|
-
|
|
57
|
-
# Step 8: Build the project
|
|
58
|
-
- name: Build
|
|
59
|
-
working-directory: {{projectName}}
|
|
60
|
-
run: bun run build
|
|
61
|
-
|
|
62
|
-
# Step 10: Copy firebase.json to the right location
|
|
63
|
-
- name: Copy Firebase configuration
|
|
64
|
-
run: |
|
|
65
|
-
cp {{projectName}}/firebase.json .
|
|
66
|
-
cp {{projectName}}/.firebaserc .
|
|
67
|
-
ls -la
|
|
68
|
-
|
|
69
|
-
# Step 11: Deploy to Firebase Hosting
|
|
70
|
-
- name: Deploy to Firebase Hosting
|
|
71
|
-
uses: FirebaseExtended/action-hosting-deploy@v0
|
|
72
|
-
with:
|
|
73
|
-
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
74
|
-
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_{{firebaseSecretName}} }}'
|
|
75
|
-
channelId: live
|
|
76
|
-
projectId: {{firebaseProjectId}}
|
|
77
|
-
entryPoint: '.' # Uses firebase.json at the root
|
|
78
|
-
env:
|
|
79
|
-
FIREBASE_CLI_PREVIEWS: hostingchannels
|
/package/templates/functions-firebase/{functions-firebase/.env.example.example → .env.example}
RENAMED
|
File without changes
|
|
File without changes
|