@lukoweb/create-apitogo 0.1.64 → 0.1.66
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/index.js +1 -1
- package/dist/templates/default/js/apitogo.config.json +3 -1
- package/dist/templates/default/js/{.env.example → env} +9 -8
- package/dist/templates/default/ts/apitogo.config.json +3 -1
- package/dist/templates/default/ts/{.env.example → env} +9 -8
- package/dist/templates/empty/js/apitogo.config.json +3 -1
- package/dist/templates/empty/js/{.env.example → env} +9 -8
- package/dist/templates/empty/ts/apitogo.config.json +3 -1
- package/dist/templates/empty/ts/{.env.example → env} +9 -8
- package/dist/templates/index.ts +4 -0
- package/package.json +1 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
# APItoGo local configuration
|
|
2
|
+
# Uncomment the settings you need and fill in values. Do not commit secrets.
|
|
3
|
+
#
|
|
1
4
|
# Local demo auth is enabled by default in development.
|
|
2
5
|
# Sign in at /login with demo@apitogo.local / password
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Live dev-portal API URL (set automatically on publish; needed for production builds):
|
|
6
|
-
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
6
|
+
# APITOGO_CONFIG_DEMO_MODE=false
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# --- Live API URL (set automatically on publish; needed for production builds) ---
|
|
9
|
+
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
9
10
|
|
|
10
|
-
# OIDC (required when auth mode includes OIDC)
|
|
11
|
+
# --- OIDC (required when auth mode includes OIDC) ---
|
|
11
12
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__AUTHORITY=https://login.example.com
|
|
12
13
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_ID=your-client-id
|
|
13
14
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_SECRET=your-client-secret
|
|
14
15
|
|
|
15
|
-
# Provider client secrets (optional alternative to OIDC__* above)
|
|
16
|
+
# --- Provider client secrets (optional alternative to OIDC__* above) ---
|
|
16
17
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__OIDC__CLIENT_SECRET=your-client-secret
|
|
17
18
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GOOGLE__CLIENT_SECRET=your-google-client-secret
|
|
18
19
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GITHUB__CLIENT_SECRET=your-github-client-secret
|
|
19
20
|
|
|
20
|
-
# Stripe (required when you have paid plans)
|
|
21
|
+
# --- Stripe (required when you have paid plans) ---
|
|
21
22
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__SECRET_KEY=sk_test_...
|
|
22
23
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__WEBHOOK_SECRET=whsec_...
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
# APItoGo local configuration
|
|
2
|
+
# Uncomment the settings you need and fill in values. Do not commit secrets.
|
|
3
|
+
#
|
|
1
4
|
# Local demo auth is enabled by default in development.
|
|
2
5
|
# Sign in at /login with demo@apitogo.local / password
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Live dev-portal API URL (set automatically on publish; needed for production builds):
|
|
6
|
-
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
6
|
+
# APITOGO_CONFIG_DEMO_MODE=false
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# --- Live API URL (set automatically on publish; needed for production builds) ---
|
|
9
|
+
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
9
10
|
|
|
10
|
-
# OIDC (required when auth mode includes OIDC)
|
|
11
|
+
# --- OIDC (required when auth mode includes OIDC) ---
|
|
11
12
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__AUTHORITY=https://login.example.com
|
|
12
13
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_ID=your-client-id
|
|
13
14
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_SECRET=your-client-secret
|
|
14
15
|
|
|
15
|
-
# Provider client secrets (optional alternative to OIDC__* above)
|
|
16
|
+
# --- Provider client secrets (optional alternative to OIDC__* above) ---
|
|
16
17
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__OIDC__CLIENT_SECRET=your-client-secret
|
|
17
18
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GOOGLE__CLIENT_SECRET=your-google-client-secret
|
|
18
19
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GITHUB__CLIENT_SECRET=your-github-client-secret
|
|
19
20
|
|
|
20
|
-
# Stripe (required when you have paid plans)
|
|
21
|
+
# --- Stripe (required when you have paid plans) ---
|
|
21
22
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__SECRET_KEY=sk_test_...
|
|
22
23
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__WEBHOOK_SECRET=whsec_...
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
# APItoGo local configuration
|
|
2
|
+
# Uncomment the settings you need and fill in values. Do not commit secrets.
|
|
3
|
+
#
|
|
1
4
|
# Local demo auth is enabled by default in development.
|
|
2
5
|
# Sign in at /login with demo@apitogo.local / password
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Live dev-portal API URL (set automatically on publish; needed for production builds):
|
|
6
|
-
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
6
|
+
# APITOGO_CONFIG_DEMO_MODE=false
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# --- Live API URL (set automatically on publish; needed for production builds) ---
|
|
9
|
+
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
9
10
|
|
|
10
|
-
# OIDC (required when auth mode includes OIDC)
|
|
11
|
+
# --- OIDC (required when auth mode includes OIDC) ---
|
|
11
12
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__AUTHORITY=https://login.example.com
|
|
12
13
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_ID=your-client-id
|
|
13
14
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_SECRET=your-client-secret
|
|
14
15
|
|
|
15
|
-
# Provider client secrets (optional alternative to OIDC__* above)
|
|
16
|
+
# --- Provider client secrets (optional alternative to OIDC__* above) ---
|
|
16
17
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__OIDC__CLIENT_SECRET=your-client-secret
|
|
17
18
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GOOGLE__CLIENT_SECRET=your-google-client-secret
|
|
18
19
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GITHUB__CLIENT_SECRET=your-github-client-secret
|
|
19
20
|
|
|
20
|
-
# Stripe (required when you have paid plans)
|
|
21
|
+
# --- Stripe (required when you have paid plans) ---
|
|
21
22
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__SECRET_KEY=sk_test_...
|
|
22
23
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__WEBHOOK_SECRET=whsec_...
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
# APItoGo local configuration
|
|
2
|
+
# Uncomment the settings you need and fill in values. Do not commit secrets.
|
|
3
|
+
#
|
|
1
4
|
# Local demo auth is enabled by default in development.
|
|
2
5
|
# Sign in at /login with demo@apitogo.local / password
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Live dev-portal API URL (set automatically on publish; needed for production builds):
|
|
6
|
-
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
6
|
+
# APITOGO_CONFIG_DEMO_MODE=false
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# --- Live API URL (set automatically on publish; needed for production builds) ---
|
|
9
|
+
# VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://your-dev-portal-api.example.com
|
|
9
10
|
|
|
10
|
-
# OIDC (required when auth mode includes OIDC)
|
|
11
|
+
# --- OIDC (required when auth mode includes OIDC) ---
|
|
11
12
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__AUTHORITY=https://login.example.com
|
|
12
13
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_ID=your-client-id
|
|
13
14
|
# APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_SECRET=your-client-secret
|
|
14
15
|
|
|
15
|
-
# Provider client secrets (optional alternative to OIDC__* above)
|
|
16
|
+
# --- Provider client secrets (optional alternative to OIDC__* above) ---
|
|
16
17
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__OIDC__CLIENT_SECRET=your-client-secret
|
|
17
18
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GOOGLE__CLIENT_SECRET=your-google-client-secret
|
|
18
19
|
# APITOGO_CONFIG_AUTHENTICATION__PROVIDERS__GITHUB__CLIENT_SECRET=your-github-client-secret
|
|
19
20
|
|
|
20
|
-
# Stripe (required when you have paid plans)
|
|
21
|
+
# --- Stripe (required when you have paid plans) ---
|
|
21
22
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__SECRET_KEY=sk_test_...
|
|
22
23
|
# APITOGO_CONFIG_AUTHENTICATION__STRIPE__WEBHOOK_SECRET=whsec_...
|
package/dist/templates/index.ts
CHANGED
|
@@ -224,6 +224,10 @@ export const installTemplate = async ({
|
|
|
224
224
|
case "eslintrc.json": {
|
|
225
225
|
return `.${name}`;
|
|
226
226
|
}
|
|
227
|
+
// Stored as `env` so the monorepo `.gitignore` (`.env`) does not drop the template.
|
|
228
|
+
case "env": {
|
|
229
|
+
return ".env";
|
|
230
|
+
}
|
|
227
231
|
// README.md is ignored by webpack-asset-relocator-loader used by ncc:
|
|
228
232
|
// https://github.com/vercel/webpack-asset-relocator-loader/blob/e9308683d47ff507253e37c9bcbb99474603192b/src/asset-relocator.js#L227
|
|
229
233
|
case "README-template.md": {
|