@donotdev/cli 0.3.0 → 0.3.2
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 +51 -27
- package/dist/bin/commands/agent-setup.js +28 -18
- package/dist/bin/commands/build.js +1086 -58
- package/dist/bin/commands/bump.js +337 -53
- package/dist/bin/commands/cacheout.js +28 -18
- package/dist/bin/commands/coach.js +33 -25
- package/dist/bin/commands/create-app.js +597 -244
- package/dist/bin/commands/create-project.js +607 -254
- package/dist/bin/commands/db-check.js +37 -28
- package/dist/bin/commands/db.js +37 -28
- package/dist/bin/commands/deploy.js +13758 -11807
- package/dist/bin/commands/dev.js +50 -34
- package/dist/bin/commands/doctor.js +33 -25
- package/dist/bin/commands/emu.js +65 -43
- package/dist/bin/commands/format.js +28 -18
- package/dist/bin/commands/get-demo.js +81 -46
- package/dist/bin/commands/make-admin.js +966 -896
- package/dist/bin/commands/preview.js +50 -34
- package/dist/bin/commands/seed.js +37 -28
- package/dist/bin/commands/setup-cicd.js +1286 -87
- package/dist/bin/commands/setup.js +152 -138
- package/dist/bin/commands/staging.js +13758 -11807
- package/dist/bin/commands/sync-secrets.js +152 -132
- package/dist/bin/commands/type-check.js +1086 -39
- package/dist/bin/commands/wai.js +28 -18
- package/dist/bin/dndev.js +513 -30
- package/dist/bin/donotdev.js +33 -8
- package/dist/index.js +14568 -12497
- package/package.json +1 -1
- package/templates/app-demo/index.html.example +0 -1
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +2 -2
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +1 -0
- package/templates/app-demo/tsconfig.json.example +1 -1
- package/templates/app-dndev/index.html.example +1 -3
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/app-expo/app/_layout.tsx.example +1 -1
- package/templates/app-expo/app/form.tsx.example +10 -3
- package/templates/app-expo/app/index.tsx.example +3 -3
- package/templates/app-expo/app/list.tsx.example +2 -2
- package/templates/app-expo/app/profile.tsx.example +4 -3
- package/templates/app-expo/app/signin.tsx.example +2 -2
- package/templates/app-expo/babel.config.js.example +23 -6
- package/templates/app-expo/metro.config.js.example +7 -17
- package/templates/app-expo/tsconfig.json.example +2 -1
- package/templates/app-next/src/app/AppDocument.tsx.example +2 -3
- package/templates/app-vite/index.html.example +1 -3
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +1 -1
- package/templates/app-vite/src/pages/HomePage.tsx.example +3 -3
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/deploy-config/firebase.json.example +6 -5
- package/templates/deploy-config/tsconfig.functions.json.example +2 -7
- package/templates/deploy-config/vercel.json.example +6 -420
- package/templates/functions-firebase/README.md.example +8 -8
- package/templates/functions-firebase/functions.config.js.example +2 -1
- package/templates/functions-firebase/src/index.ts.example +4 -3
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +8 -6
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +8 -6
- package/templates/functions-firebase/tsconfig.json.example +3 -5
- package/templates/functions-supabase/supabase/config.toml.example +2 -1
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/stripe-webhook/index.ts.example +2 -3
- package/templates/functions-vercel/README.md.example +15 -25
- package/templates/functions-vercel/build.mjs.example +4 -46
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +6 -11
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +2 -3
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/tsconfig.json.example +5 -6
- package/templates/github/workflows/firebase-deploy.yml.example +1 -1
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +3 -2
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +13 -12
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +5 -5
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +13 -12
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +5 -5
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +1 -4
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +10 -12
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +7 -4
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +11 -9
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +13 -7
- package/templates/preset-landing/src/pages/HomePage.tsx.example +50 -32
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +1 -1
- package/templates/preset-saas/src/pages/HomePage.tsx.example +3 -2
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +4 -3
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +7 -7
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +3 -3
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +101 -10
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +2 -2
- package/templates/root-consumer/.claude/rules/framework.md.example +1 -1
- package/templates/root-consumer/.claude/settings.json.example +0 -11
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +1 -1
- package/templates/root-consumer/.dndev/args.json.example +2 -2
- package/templates/root-consumer/.env.example +1 -1
- package/templates/root-consumer/.gitignore.example +2 -0
- package/templates/root-consumer/AGENTS.md.example +3 -3
- package/templates/root-consumer/README.md.example +1 -1
- package/templates/app-vite/csp.example.json +0 -44
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -20
- package/templates/functions-vercel/vercel.json.example +0 -14
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +0 -18
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ export default function ConditionalFormPage() {
|
|
|
50
50
|
}}
|
|
51
51
|
submitText="Get Quote"
|
|
52
52
|
cancelText={null}
|
|
53
|
-
|
|
53
|
+
successPath={null}
|
|
54
54
|
hideVisibilityInfo
|
|
55
55
|
/>
|
|
56
56
|
</Card>
|
|
@@ -74,7 +74,7 @@ export default function ConditionalFormPage() {
|
|
|
74
74
|
}}
|
|
75
75
|
submitText="Book Now"
|
|
76
76
|
cancelText={null}
|
|
77
|
-
|
|
77
|
+
successPath={null}
|
|
78
78
|
hideVisibilityInfo
|
|
79
79
|
/>
|
|
80
80
|
</Card>
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
<!-- ✅ CORE: Performance-critical meta tags first -->
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<meta name="color-scheme" content="light dark" />
|
|
9
8
|
|
|
10
|
-
<!-- ✅ DnDev:
|
|
11
|
-
<!-- All favicon links will be added by FaviconHead component -->
|
|
9
|
+
<!-- ✅ DnDev: the build adds the favicon tags (icons, theme-color, color-scheme) to <head> -->
|
|
12
10
|
|
|
13
11
|
<!-- ✅ DnDev: Asset manifest injection point -->
|
|
14
12
|
<!-- window.__DNDEV_ASSETS__ and __DNDEV_ASSET_MANIFEST__ injected here -->
|
|
@@ -14,7 +14,7 @@ import { SafeAreaView } from 'react-native-safe-area-context';
|
|
|
14
14
|
import { useLocalSearchParams, useRouter } from 'expo-router';
|
|
15
15
|
|
|
16
16
|
import { EntityFormRenderer, Stack, Text } from '@donotdev/expo';
|
|
17
|
-
import { useCrud } from '@donotdev/crud';
|
|
17
|
+
import { useCrud, useCrudDoc } from '@donotdev/crud';
|
|
18
18
|
|
|
19
19
|
// import { productEntity } from '../entities/Product';
|
|
20
20
|
const productEntity = null as any; // replace with your entity
|
|
@@ -26,6 +26,8 @@ export default function FormPage() {
|
|
|
26
26
|
const router = useRouter();
|
|
27
27
|
const { id } = useLocalSearchParams<{ id?: string }>();
|
|
28
28
|
const { add, update } = useCrud(productEntity);
|
|
29
|
+
// Existing record (edit mode): read through the CRUD cache
|
|
30
|
+
const { data: record } = useCrudDoc(productEntity, id ?? null);
|
|
29
31
|
const [submitting, setSubmitting] = useState(false);
|
|
30
32
|
|
|
31
33
|
const handleSubmit = async (data: unknown) => {
|
|
@@ -43,9 +45,14 @@ export default function FormPage() {
|
|
|
43
45
|
|
|
44
46
|
return (
|
|
45
47
|
<SafeAreaView style={{ flex: 1 }}>
|
|
46
|
-
<Stack
|
|
48
|
+
<Stack gap={16} style={{ flex: 1, padding: 16 }}>
|
|
47
49
|
<Text level="h2">{id ? 'Edit' : 'Create'}</Text>
|
|
48
|
-
<EntityFormRenderer
|
|
50
|
+
<EntityFormRenderer
|
|
51
|
+
entity={productEntity}
|
|
52
|
+
operation={id ? 'edit' : 'create'}
|
|
53
|
+
defaultValues={record ?? undefined}
|
|
54
|
+
onSubmit={handleSubmit}
|
|
55
|
+
/>
|
|
49
56
|
</Stack>
|
|
50
57
|
</SafeAreaView>
|
|
51
58
|
);
|
|
@@ -17,11 +17,11 @@ import { useAuth } from '@donotdev/auth';
|
|
|
17
17
|
*/
|
|
18
18
|
export default function HomePage() {
|
|
19
19
|
const navigate = useNavigate();
|
|
20
|
-
const
|
|
20
|
+
const user = useAuth('user');
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<View style={styles.container}>
|
|
24
|
-
<Stack
|
|
24
|
+
<Stack gap={24} style={styles.content}>
|
|
25
25
|
<Text level="h1">Welcome to {{appName}}</Text>
|
|
26
26
|
|
|
27
27
|
<Card title="Getting Started">
|
|
@@ -29,7 +29,7 @@ export default function HomePage() {
|
|
|
29
29
|
Your Expo app is running! Follow these steps to get started:
|
|
30
30
|
</Text>
|
|
31
31
|
|
|
32
|
-
<Stack
|
|
32
|
+
<Stack gap={16} style={styles.steps}>
|
|
33
33
|
<View>
|
|
34
34
|
<Text level="h3">1. Backend Setup</Text>
|
|
35
35
|
<Text level="small">
|
|
@@ -19,11 +19,11 @@ const productEntity = null as any; // replace with your entity
|
|
|
19
19
|
* List page component — shows all records for an entity
|
|
20
20
|
*/
|
|
21
21
|
export default function ListPage() {
|
|
22
|
-
const
|
|
22
|
+
const user = useAuth('user');
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<SafeAreaView style={{ flex: 1 }}>
|
|
26
|
-
<Stack
|
|
26
|
+
<Stack gap={16} style={{ flex: 1, padding: 16 }}>
|
|
27
27
|
<Text level="h2">Products</Text>
|
|
28
28
|
<EntityCardList entity={productEntity} userRole={user?.role} />
|
|
29
29
|
</Stack>
|
|
@@ -16,7 +16,8 @@ import { useNavigate } from '@donotdev/expo';
|
|
|
16
16
|
* Profile page component
|
|
17
17
|
*/
|
|
18
18
|
export default function ProfilePage() {
|
|
19
|
-
const
|
|
19
|
+
const user = useAuth('user');
|
|
20
|
+
const signOut = useAuth('signOut');
|
|
20
21
|
const navigate = useNavigate();
|
|
21
22
|
|
|
22
23
|
if (!user) {
|
|
@@ -31,11 +32,11 @@ export default function ProfilePage() {
|
|
|
31
32
|
|
|
32
33
|
return (
|
|
33
34
|
<View style={styles.container}>
|
|
34
|
-
<Stack
|
|
35
|
+
<Stack gap={24} style={styles.content}>
|
|
35
36
|
<Text level="h1">Profile</Text>
|
|
36
37
|
|
|
37
38
|
<Card title="Account Information">
|
|
38
|
-
<Stack
|
|
39
|
+
<Stack gap={12}>
|
|
39
40
|
<View>
|
|
40
41
|
<Text level="small" style={styles.label}>Email</Text>
|
|
41
42
|
<Text level="body">{user.email}</Text>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { View, StyleSheet } from 'react-native';
|
|
11
11
|
import { Text, Card, Stack, Button } from '@donotdev/expo';
|
|
12
|
-
import { MultipleAuthProviders } from '@donotdev/expo';
|
|
12
|
+
import { MultipleAuthProviders } from '@donotdev/expo/features';
|
|
13
13
|
import { useNavigate } from '@donotdev/expo';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -20,7 +20,7 @@ export default function SignInPage() {
|
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
22
|
<View style={styles.container}>
|
|
23
|
-
<Stack
|
|
23
|
+
<Stack gap={24} style={styles.content}>
|
|
24
24
|
<Text level="h1">Sign In</Text>
|
|
25
25
|
|
|
26
26
|
<Card title="Welcome Back">
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
// Learn more https://docs.expo.dev/versions/latest/config/babel/
|
|
2
|
+
// ESM: the app package.json is "type": "module". Keep the name babel.config.js:
|
|
3
|
+
// Expo only detects that name and otherwise adds its default preset a second time.
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// The preset Expo itself uses, resolved through `expo` (its dependency): the app needs
|
|
10
|
+
// no babel-preset-expo dependency, isolated installs do not hoist it.
|
|
11
|
+
const babelPresetExpo = require.resolve('babel-preset-expo', {
|
|
12
|
+
paths: [path.dirname(require.resolve('expo/package.json'))],
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export default function (api) {
|
|
2
16
|
api.cache(true);
|
|
3
17
|
return {
|
|
4
|
-
presets: [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
18
|
+
presets: [
|
|
19
|
+
[
|
|
20
|
+
babelPresetExpo,
|
|
21
|
+
// @donotdev packages read import.meta.env (Vite/Next builds). Hermes has no
|
|
22
|
+
// import.meta: the preset polyfills it on native too.
|
|
23
|
+
{ unstable_transformImportMeta: true },
|
|
24
|
+
],
|
|
8
25
|
],
|
|
9
26
|
};
|
|
10
|
-
}
|
|
27
|
+
}
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
// Learn more https://docs.expo.dev/guides/customizing-metro
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
// ESM: the app package.json is "type": "module".
|
|
3
|
+
// Expo configures Metro for monorepos itself (SDK 52+): do not set watchFolders or
|
|
4
|
+
// node_modules paths here, they replace Expo's and hide the workspace node_modules.
|
|
5
|
+
import { getDefaultConfig } from 'expo/metro-config.js';
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
+
/** @type {import('expo/metro-config.js').MetroConfig} */
|
|
8
|
+
const config = getDefaultConfig(import.meta.dirname);
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
const config = getDefaultConfig(projectRoot);
|
|
10
|
-
|
|
11
|
-
// Watch workspace packages (not the entire root — avoids churning on unrelated changes)
|
|
12
|
-
config.watchFolders = [path.resolve(workspaceRoot, 'packages')];
|
|
13
|
-
|
|
14
|
-
// Let Metro resolve from both the app's own node_modules and the workspace root
|
|
15
|
-
config.resolver.nodeModulesDirs = [
|
|
16
|
-
path.resolve(projectRoot, 'node_modules'),
|
|
17
|
-
path.resolve(workspaceRoot, 'node_modules'),
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
module.exports = config;
|
|
10
|
+
export default config;
|
|
@@ -13,8 +13,8 @@ import '../globals.css';
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Site-level metadata only. Page title, description, canonical, Open Graph and JSON-LD
|
|
16
|
-
* come from the framework's AutoMetaTags (PageMeta + i18n) and
|
|
17
|
-
*
|
|
16
|
+
* come from the framework's AutoMetaTags (PageMeta + i18n), and on entity pages from
|
|
17
|
+
* the generated page's server metadata. Do not set `title` or `description` here: they would ship as
|
|
18
18
|
* a second <title>/<meta name="description"> in every page's HTML.
|
|
19
19
|
*/
|
|
20
20
|
const appUrl = process.env.NEXT_PUBLIC_APP_URL;
|
|
@@ -49,7 +49,6 @@ export function AppDocument({
|
|
|
49
49
|
suppressHydrationWarning
|
|
50
50
|
>
|
|
51
51
|
<head>
|
|
52
|
-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
53
52
|
<FontPreloadLinks />
|
|
54
53
|
</head>
|
|
55
54
|
<body className="light">{children}</body>
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
<!-- ✅ CORE: Performance-critical meta tags first -->
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<meta name="color-scheme" content="light dark" />
|
|
9
8
|
|
|
10
|
-
<!-- ✅ DnDev:
|
|
11
|
-
<!-- All favicon links will be added by FaviconHead component -->
|
|
9
|
+
<!-- ✅ DnDev: the build adds the favicon tags (icons, theme-color, color-scheme) to <head> -->
|
|
12
10
|
|
|
13
11
|
<!-- ✅ DnDev: Asset manifest injection point -->
|
|
14
12
|
<!-- window.__DNDEV_ASSETS__ and __DNDEV_ASSET_MANIFEST__ injected here -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hero": {
|
|
3
|
-
"title": "Welcome to DnDev",
|
|
4
|
-
"subtitle": "Your app is ready. Explore the framework patterns below."
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"hero": {
|
|
3
|
+
"title": "Welcome to DnDev",
|
|
4
|
+
"subtitle": "Your app is ready. Explore the framework patterns below."
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -133,7 +133,7 @@ export default function ProductPage() {
|
|
|
133
133
|
entity={productEntity}
|
|
134
134
|
operation="edit"
|
|
135
135
|
onSubmit={handleSubmit}
|
|
136
|
-
defaultValues={formData} // Loaded data
|
|
136
|
+
defaultValues={formData ?? undefined} // Loaded data
|
|
137
137
|
submitText={t('update')}
|
|
138
138
|
// Cancel automatically navigates to /products (or cancelPath if provided)
|
|
139
139
|
cancelPath="/products"
|
|
@@ -136,9 +136,9 @@ export default function HomePage() {
|
|
|
136
136
|
title="Secrets (Stripe, OAuth, etc.)"
|
|
137
137
|
subtitle="Server-side API keys for Cloud Functions"
|
|
138
138
|
content={[
|
|
139
|
-
'Add secrets to
|
|
139
|
+
'Add secrets to .dndev.secrets at the project root (not the app .env)',
|
|
140
140
|
'Run: dndev sync-secrets to push to Firebase Secret Manager',
|
|
141
|
-
'
|
|
141
|
+
'Each function gets the secrets it declares (defineSecret)',
|
|
142
142
|
'Never put server secrets in VITE_ variables',
|
|
143
143
|
]}
|
|
144
144
|
/>
|
|
@@ -149,7 +149,7 @@ export default function HomePage() {
|
|
|
149
149
|
content={[
|
|
150
150
|
'Go to dashboard.stripe.com → create account',
|
|
151
151
|
'Get API keys from Developers → API Keys',
|
|
152
|
-
'Add to
|
|
152
|
+
'Add to .dndev.secrets: STRIPE_SECRET_KEY=sk_test_...',
|
|
153
153
|
'Add to .env: VITE_STRIPE_PUBLISHABLE_KEY=pk_test_...',
|
|
154
154
|
'Set up webhook: Developers → Webhooks → Add endpoint',
|
|
155
155
|
'Webhook URL: https://<your-functions-url>/stripeWebhook',
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"hosting": {
|
|
3
3
|
"public": "dist",
|
|
4
4
|
"site": "{{YOUR_FIREBASE_PROJECT_ID}}",
|
|
5
|
+
"cleanUrls": true,
|
|
5
6
|
"ignore": [
|
|
6
7
|
"firebase.json",
|
|
7
8
|
"**/.*",
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
21
|
"source": "**",
|
|
21
|
-
"destination": "/
|
|
22
|
+
"destination": "/_shell.html"
|
|
22
23
|
}
|
|
23
24
|
],
|
|
24
25
|
"headers": [
|
|
@@ -300,7 +301,7 @@
|
|
|
300
301
|
]
|
|
301
302
|
}
|
|
302
303
|
]
|
|
303
|
-
}{{#
|
|
304
|
+
}{{#includeFirebaseFunctions}},
|
|
304
305
|
"functions": [
|
|
305
306
|
{
|
|
306
307
|
"source": "functions",
|
|
@@ -316,7 +317,7 @@
|
|
|
316
317
|
],
|
|
317
318
|
"runtime": "nodejs22"
|
|
318
319
|
}
|
|
319
|
-
],
|
|
320
|
+
]{{/includeFirebaseFunctions}}{{#includeFunctions}},
|
|
320
321
|
"firestore": {
|
|
321
322
|
"rules": "firestore.rules",
|
|
322
323
|
"indexes": "firestore.indexes.json"
|
|
@@ -327,10 +328,10 @@
|
|
|
327
328
|
"emulators": {
|
|
328
329
|
"auth": {
|
|
329
330
|
"port": 9099
|
|
330
|
-
}{{#
|
|
331
|
+
}{{#includeFirebaseFunctions}},
|
|
331
332
|
"functions": {
|
|
332
333
|
"port": 5001
|
|
333
|
-
},
|
|
334
|
+
}{{/includeFirebaseFunctions}}{{#includeFunctions}},
|
|
334
335
|
"firestore": {
|
|
335
336
|
"port": 8080
|
|
336
337
|
},
|
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
"moduleResolution": "NodeNext",
|
|
6
6
|
"lib": ["ES2022"],
|
|
7
7
|
"types": ["node"],
|
|
8
|
-
"noEmit":
|
|
9
|
-
|
|
10
|
-
"rootDir": "./functions/src"
|
|
11
|
-
},
|
|
12
|
-
"include": ["functions/src/**/*", "entities/**/*"],
|
|
13
|
-
"exclude": ["node_modules", "**/node_modules", "**/dist", "**/.next", "**/lib"]
|
|
8
|
+
"noEmit": true
|
|
9
|
+
}
|
|
14
10
|
}
|
|
15
|
-
|