@donotdev/cli 0.0.33 → 0.0.35
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 +4 -4
- package/dist/bin/commands/build.js +28 -2
- package/dist/bin/commands/cacheout.js +10 -7
- package/dist/bin/commands/create-app.js +6 -31
- package/dist/bin/commands/create-project.js +8 -41
- package/dist/bin/commands/deploy.js +401 -355
- package/dist/bin/commands/dev.js +7 -9
- package/dist/bin/commands/staging.js +401 -355
- package/dist/bin/dndev.js +1 -1
- package/dist/bin/donotdev.js +1 -1
- package/dist/index.js +2132 -2117
- package/package.json +1 -1
- package/templates/{root-consumer → deploy-config}/vercel.json.example +22 -13
- package/templates/root-consumer/.gitignore.example +6 -1
- package/templates/app-vite/vercel.json.example +0 -11
- package/templates/overlay-supabase/vercel.headers.example +0 -23
- package/templates/overlay-supabase/vercel.json.example +0 -22
- /package/templates/{root-consumer → deploy-config}/.firebaserc.example +0 -0
- /package/templates/{root-consumer → deploy-config}/firebase.json.example +0 -0
- /package/templates/{root-consumer → deploy-config}/firestore.indexes.json.example +0 -0
- /package/templates/{root-consumer → deploy-config}/firestore.rules.example +0 -0
- /package/templates/{root-consumer → deploy-config}/storage.rules.example +0 -0
- /package/templates/{root-consumer → deploy-config}/tsconfig.functions.json.example +0 -0
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
{{#isNextjs}}
|
|
2
|
-
{
|
|
1
|
+
{{#isNextjs}}{
|
|
3
2
|
"framework": "nextjs",
|
|
4
3
|
"installCommand": "bun install",{{#includeFunctions}}
|
|
5
4
|
"functions": {
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
"headers": [
|
|
20
19
|
{
|
|
21
20
|
"key": "Content-Security-Policy",
|
|
22
|
-
"value": "default-src 'self'; script-src 'self'{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
21
|
+
"value": "default-src 'self'; script-src 'self'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
23
22
|
},
|
|
24
23
|
{
|
|
25
24
|
"key": "X-Content-Type-Options",
|
|
@@ -43,6 +42,15 @@
|
|
|
43
42
|
}
|
|
44
43
|
]
|
|
45
44
|
},
|
|
45
|
+
{
|
|
46
|
+
"source": "/_next/static/:path*",
|
|
47
|
+
"headers": [
|
|
48
|
+
{
|
|
49
|
+
"key": "Cache-Control",
|
|
50
|
+
"value": "public, max-age=31536000, immutable"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
46
54
|
{
|
|
47
55
|
"source": "/assets/:path*.woff",
|
|
48
56
|
"headers": [
|
|
@@ -193,17 +201,17 @@
|
|
|
193
201
|
"env": {
|
|
194
202
|
"STRIPE_SECRET_KEY": "@stripe-secret-key",
|
|
195
203
|
"STRIPE_WEBHOOK_SECRET": "@stripe-webhook-secret",
|
|
196
|
-
"STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key",
|
|
204
|
+
"STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key"{{#isFirebase}},
|
|
197
205
|
"FIREBASE_ADMIN_PRIVATE_KEY": "@firebase-admin-private-key",
|
|
198
206
|
"FIREBASE_PROJECT_ID": "@firebase-project-id",
|
|
199
|
-
"FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{#
|
|
207
|
+
"FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{/isFirebase}}{{#isSupabase}},
|
|
208
|
+
"SUPABASE_URL": "@supabase-url",
|
|
209
|
+
"SUPABASE_SERVICE_ROLE_KEY": "@supabase-service-role-key"{{/isSupabase}}{{#needsOAuth}},
|
|
200
210
|
"GITHUB_PERSONAL_ACCESS_TOKEN": "@github-token",
|
|
201
211
|
"GITHUB_REPO_OWNER": "@github-repo-owner",
|
|
202
212
|
"GITHUB_REPO_NAME": "@github-repo-name"{{/needsOAuth}}
|
|
203
213
|
}{{/includeFunctions}}
|
|
204
|
-
}
|
|
205
|
-
{{/isNextjs}}{{^isNextjs}}
|
|
206
|
-
{
|
|
214
|
+
}{{/isNextjs}}{{^isNextjs}}{
|
|
207
215
|
"buildCommand": "bun run build",
|
|
208
216
|
"outputDirectory": "dist",
|
|
209
217
|
"installCommand": "bun install",{{#includeFunctions}}
|
|
@@ -234,7 +242,7 @@
|
|
|
234
242
|
"headers": [
|
|
235
243
|
{
|
|
236
244
|
"key": "Content-Security-Policy",
|
|
237
|
-
"value": "default-src 'self'; script-src 'self'{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
245
|
+
"value": "default-src 'self'; script-src 'self'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
|
|
238
246
|
},
|
|
239
247
|
{
|
|
240
248
|
"key": "X-Content-Type-Options",
|
|
@@ -408,13 +416,14 @@
|
|
|
408
416
|
"env": {
|
|
409
417
|
"STRIPE_SECRET_KEY": "@stripe-secret-key",
|
|
410
418
|
"STRIPE_WEBHOOK_SECRET": "@stripe-webhook-secret",
|
|
411
|
-
"STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key",
|
|
419
|
+
"STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key"{{#isFirebase}},
|
|
412
420
|
"FIREBASE_ADMIN_PRIVATE_KEY": "@firebase-admin-private-key",
|
|
413
421
|
"FIREBASE_PROJECT_ID": "@firebase-project-id",
|
|
414
|
-
"FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{#
|
|
422
|
+
"FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{/isFirebase}}{{#isSupabase}},
|
|
423
|
+
"SUPABASE_URL": "@supabase-url",
|
|
424
|
+
"SUPABASE_SERVICE_ROLE_KEY": "@supabase-service-role-key"{{/isSupabase}}{{#needsOAuth}},
|
|
415
425
|
"GITHUB_PERSONAL_ACCESS_TOKEN": "@github-token",
|
|
416
426
|
"GITHUB_REPO_OWNER": "@github-repo-owner",
|
|
417
427
|
"GITHUB_REPO_NAME": "@github-repo-name"{{/needsOAuth}}
|
|
418
428
|
}{{/includeFunctions}}
|
|
419
|
-
}
|
|
420
|
-
{{/isNextjs}}
|
|
429
|
+
}{{/isNextjs}}
|
|
@@ -58,6 +58,10 @@ Desktop.ini
|
|
|
58
58
|
*.txt
|
|
59
59
|
*.ps1
|
|
60
60
|
|
|
61
|
+
# DnDev discovery outputs (regenerated at build time)
|
|
62
|
+
*.generated.ts
|
|
63
|
+
*.generated.log
|
|
64
|
+
|
|
61
65
|
# Cache
|
|
62
66
|
.cache/
|
|
63
67
|
.firebase/
|
|
@@ -70,11 +74,12 @@ service-account-key.staging.json
|
|
|
70
74
|
**/service-account-key.json
|
|
71
75
|
**/service-account-key.staging.json
|
|
72
76
|
|
|
73
|
-
# Lock files
|
|
77
|
+
# Lock files
|
|
74
78
|
package-lock.json
|
|
75
79
|
yarn.lock
|
|
76
80
|
pnpm-lock.yaml
|
|
77
81
|
bun.lockb
|
|
82
|
+
bun.lock
|
|
78
83
|
|
|
79
84
|
# Temporary files
|
|
80
85
|
.temp
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"source": "/(.*)",
|
|
4
|
-
"headers": [
|
|
5
|
-
{
|
|
6
|
-
"key": "Content-Security-Policy",
|
|
7
|
-
"value": "default-src 'self'; script-src 'self' https://js.stripe.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' https://*.supabase.co wss://*.supabase.co https://api.stripe.com; frame-src 'none' https://js.stripe.com https://hooks.stripe.com; object-src 'none'; base-uri 'self'; form-action 'self'"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"key": "X-Content-Type-Options",
|
|
11
|
-
"value": "nosniff"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"key": "X-Frame-Options",
|
|
15
|
-
"value": "DENY"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"key": "Referrer-Policy",
|
|
19
|
-
"value": "strict-origin-when-cross-origin"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
]
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"buildCommand": "bun run build",
|
|
3
|
-
"outputDirectory": "dist",
|
|
4
|
-
"installCommand": "bun install",
|
|
5
|
-
"rewrites": [
|
|
6
|
-
{ "source": "/(.*)", "destination": "/index.html" }
|
|
7
|
-
],
|
|
8
|
-
"headers": [
|
|
9
|
-
{
|
|
10
|
-
"source": "/(.*)",
|
|
11
|
-
"headers": [
|
|
12
|
-
{
|
|
13
|
-
"key": "Content-Security-Policy",
|
|
14
|
-
"value": "default-src 'self'; script-src 'self' https://js.stripe.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' https://*.supabase.co wss://*.supabase.co https://api.stripe.com; frame-src 'none' https://js.stripe.com https://hooks.stripe.com; object-src 'none'; base-uri 'self'; form-action 'self'"
|
|
15
|
-
},
|
|
16
|
-
{ "key": "X-Content-Type-Options", "value": "nosniff" },
|
|
17
|
-
{ "key": "X-Frame-Options", "value": "DENY" },
|
|
18
|
-
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|