@lukoweb/create-apitogo 0.1.50 → 0.1.53

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.
@@ -1,2 +1,2 @@
1
- # Rename this file to `.env` to use environment variables locally
2
- ZUDOKU_PUBLIC_VAR="my-value"
1
+ # Public dev-portal API URL (client bundle)
2
+ VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://dp-example.azurecontainerapps.io
@@ -0,0 +1,89 @@
1
+ {
2
+ "site": {
3
+ "title": "__APP_TITLE__",
4
+ "logo": {
5
+ "src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
6
+ "alt": "APIToGo",
7
+ "width": "130px"
8
+ }
9
+ },
10
+ "authentication": {
11
+ "enabled": false,
12
+ "type": "dev-portal"
13
+ },
14
+ "metadata": {
15
+ "favicon": "/Icon.png"
16
+ },
17
+ "modules": {
18
+ "docs": {
19
+ "files": "/pages/**/*.{md,mdx}"
20
+ },
21
+ "landing": {
22
+ "enabled": true,
23
+ "path": "/",
24
+ "layout": "landing"
25
+ },
26
+ "userPanel": {
27
+ "enabled": true,
28
+ "dashboard": { "enabled": true },
29
+ "userManagement": { "enabled": true },
30
+ "plans": {
31
+ "enabled": false,
32
+ "page": "./user-panel/AccountPlansPage.tsx"
33
+ }
34
+ }
35
+ },
36
+ "navigation": [
37
+ {
38
+ "type": "category",
39
+ "label": "Documentation",
40
+ "items": [
41
+ {
42
+ "type": "category",
43
+ "label": "Getting Started",
44
+ "icon": "sparkles",
45
+ "items": [
46
+ "/introduction",
47
+ "/example",
48
+ {
49
+ "type": "link",
50
+ "icon": "folder-cog",
51
+ "badge": {
52
+ "label": "New",
53
+ "color": "purple"
54
+ },
55
+ "label": "API Reference",
56
+ "to": "/api"
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "type": "category",
62
+ "label": "Useful Links",
63
+ "collapsible": false,
64
+ "icon": "link",
65
+ "items": [
66
+ {
67
+ "type": "link",
68
+ "icon": "book",
69
+ "label": "APIToGo",
70
+ "to": "https://apitogo.com"
71
+ }
72
+ ]
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "type": "link",
78
+ "to": "/api",
79
+ "label": "API Reference"
80
+ }
81
+ ],
82
+ "apis": [
83
+ {
84
+ "type": "file",
85
+ "input": "./apis/openapi.yaml",
86
+ "path": "api"
87
+ }
88
+ ]
89
+ }
@@ -1,73 +1,3 @@
1
- /** @type {import('@lukoweb/apitogo').ApitogoConfig} */
2
- const config = {
3
- site: {
4
- title: "__APP_TITLE__",
5
- logo: {
6
- src: { light: "/logo-light.png", dark: "/logo-dark.png" },
7
- alt: "APIToGo",
8
- width: "130px",
9
- },
10
- },
11
- metadata: {
12
- favicon: "/Icon.png",
13
- },
14
- docs: {
15
- files: "/pages/**/*.{md,mdx}",
16
- },
17
- navigation: [
18
- {
19
- type: "category",
20
- label: "Documentation",
21
- items: [
22
- {
23
- type: "category",
24
- label: "Getting Started",
25
- icon: "sparkles",
26
- items: [
27
- "/introduction",
28
- "/example",
29
- {
30
- type: "link",
31
- icon: "folder-cog",
32
- badge: {
33
- label: "New",
34
- color: "purple",
35
- },
36
- label: "API Reference",
37
- to: "/api",
38
- },
39
- ],
40
- },
41
- {
42
- type: "category",
43
- label: "Useful Links",
44
- collapsible: false,
45
- icon: "link",
46
- items: [
47
- {
48
- type: "link",
49
- icon: "book",
50
- label: "APIToGo",
51
- to: "https://apitogo.com",
52
- },
53
- ],
54
- },
55
- ],
56
- },
57
- {
58
- type: "link",
59
- to: "/api",
60
- label: "API Reference",
61
- },
62
- ],
63
- redirects: [{ from: "/", to: "/introduction" }],
64
- apis: [
65
- {
66
- type: "file",
67
- input: "./apis/openapi.yaml",
68
- path: "api",
69
- },
70
- ],
71
- };
1
+ import { buildApitogoConfig } from "@lukoweb/apitogo";
72
2
 
73
- export default config;
3
+ export default buildApitogoConfig();
@@ -1,2 +1,2 @@
1
- # Rename this file to `.env` to use environment variables locally
2
- VITE_APITOGO_DEV_PORTAL_API_URL=https://dp-example.azurecontainerapps.io
1
+ # Public dev-portal API URL (client bundle)
2
+ VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://dp-example.azurecontainerapps.io
@@ -1 +1 @@
1
- VITE_APITOGO_DEV_PORTAL_API_URL=https://dp-example.azurecontainerapps.io
1
+ VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://dp-example.azurecontainerapps.io
@@ -0,0 +1,89 @@
1
+ {
2
+ "site": {
3
+ "title": "__APP_TITLE__",
4
+ "logo": {
5
+ "src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
6
+ "alt": "APIToGo",
7
+ "width": "130px"
8
+ }
9
+ },
10
+ "authentication": {
11
+ "enabled": false,
12
+ "type": "dev-portal"
13
+ },
14
+ "metadata": {
15
+ "favicon": "/Icon.png"
16
+ },
17
+ "modules": {
18
+ "docs": {
19
+ "files": "/pages/**/*.{md,mdx}"
20
+ },
21
+ "landing": {
22
+ "enabled": true,
23
+ "path": "/",
24
+ "layout": "landing"
25
+ },
26
+ "userPanel": {
27
+ "enabled": true,
28
+ "dashboard": { "enabled": true },
29
+ "userManagement": { "enabled": true },
30
+ "plans": {
31
+ "enabled": false,
32
+ "page": "./user-panel/AccountPlansPage.tsx"
33
+ }
34
+ }
35
+ },
36
+ "navigation": [
37
+ {
38
+ "type": "category",
39
+ "label": "Documentation",
40
+ "items": [
41
+ {
42
+ "type": "category",
43
+ "label": "Getting Started",
44
+ "icon": "sparkles",
45
+ "items": [
46
+ "/introduction",
47
+ "/example",
48
+ {
49
+ "type": "link",
50
+ "icon": "folder-cog",
51
+ "badge": {
52
+ "label": "New",
53
+ "color": "purple"
54
+ },
55
+ "label": "API Reference",
56
+ "to": "/api"
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "type": "category",
62
+ "label": "Useful Links",
63
+ "collapsible": false,
64
+ "icon": "link",
65
+ "items": [
66
+ {
67
+ "type": "link",
68
+ "icon": "book",
69
+ "label": "APIToGo",
70
+ "to": "https://apitogo.com"
71
+ }
72
+ ]
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "type": "link",
78
+ "to": "/api",
79
+ "label": "API Reference"
80
+ }
81
+ ],
82
+ "apis": [
83
+ {
84
+ "type": "file",
85
+ "input": "./apis/openapi.yaml",
86
+ "path": "api"
87
+ }
88
+ ]
89
+ }
@@ -1,94 +1,8 @@
1
- import type { ApitogoConfig } from "@lukoweb/apitogo";
2
1
  import { devPortalBillingPlugin } from "@lukoweb/apitogo-plugin-dev-portal-billing";
2
+ import { buildApitogoConfig } from "@lukoweb/apitogo/build-config";
3
+ import siteConfig from "./apitogo.config.json";
3
4
 
4
- const config: ApitogoConfig = {
5
- authentication: {
6
- type: "dev-portal",
7
- },
5
+ export default buildApitogoConfig({
6
+ ...siteConfig,
8
7
  plugins: [devPortalBillingPlugin()],
9
- modules: {
10
- landing: {
11
- enabled: true,
12
- path: "/",
13
- layout: "landing",
14
- },
15
- userPanel: {
16
- enabled: true,
17
- dashboard: { enabled: true },
18
- userManagement: { enabled: true },
19
- plans: {
20
- enabled: true,
21
- page: "./user-panel/AccountPlansPage.tsx",
22
- },
23
- },
24
- },
25
- site: {
26
- title: "__APP_TITLE__",
27
- logo: {
28
- src: { light: "/logo-light.png", dark: "/logo-dark.png" },
29
- alt: "APIToGo",
30
- width: "130px",
31
- },
32
- },
33
- metadata: {
34
- favicon: "/Icon.png",
35
- },
36
- docs: {
37
- files: "/pages/**/*.{md,mdx}",
38
- },
39
- navigation: [
40
- {
41
- type: "category",
42
- label: "Documentation",
43
- items: [
44
- {
45
- type: "category",
46
- label: "Getting Started",
47
- icon: "sparkles",
48
- items: [
49
- "/introduction",
50
- "/example",
51
- {
52
- type: "link",
53
- icon: "folder-cog",
54
- badge: {
55
- label: "New",
56
- color: "purple",
57
- },
58
- label: "API Reference",
59
- to: "/api",
60
- },
61
- ],
62
- },
63
- {
64
- type: "category",
65
- label: "Useful Links",
66
- collapsible: false,
67
- icon: "link",
68
- items: [
69
- {
70
- type: "link",
71
- icon: "book",
72
- label: "APIToGo",
73
- to: "https://apitogo.com",
74
- },
75
- ],
76
- },
77
- ],
78
- },
79
- {
80
- type: "link",
81
- to: "/api",
82
- label: "API Reference",
83
- },
84
- ],
85
- apis: [
86
- {
87
- type: "file",
88
- input: "./apis/openapi.yaml",
89
- path: "api",
90
- },
91
- ],
92
- };
93
-
94
- export default config;
8
+ });
@@ -10,9 +10,8 @@ To edit this page, open the `pages/introduction.mdx` file.
10
10
 
11
11
  ## Configuration
12
12
 
13
- You can find the full site configuration in `apitogo.config.tsx`. Plans, branding, and deploy
14
- metadata live in `apitogo.json` — copy `apitogo.local.example.json` or `apitogo.prod.example.json`
15
- when you need environment-specific overrides.
13
+ You can find the full site configuration in `apitogo.config.json`. Plugins and custom code live in
14
+ `apitogo.config.tsx`. Override values per environment with `APITOGO_CONFIG_*` variables in `.env`.
16
15
 
17
16
  For further information on how to customize your site, check out the
18
17
  [APIToGo documentation](https://docs.apitogo.com).
@@ -1,2 +1,2 @@
1
- # Rename this file to `.env` to use environment variables locally
2
- VITE_APITOGO_DEV_PORTAL_API_URL=https://dp-example.azurecontainerapps.io
1
+ # Public dev-portal API URL (client bundle)
2
+ VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://dp-example.azurecontainerapps.io
@@ -0,0 +1,36 @@
1
+ {
2
+ "site": {
3
+ "title": "__APP_TITLE__",
4
+ "logo": {
5
+ "src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
6
+ "alt": "APIToGo",
7
+ "width": "130px"
8
+ }
9
+ },
10
+ "authentication": {
11
+ "enabled": false,
12
+ "type": "dev-portal"
13
+ },
14
+ "metadata": {
15
+ "favicon": "/Icon.png"
16
+ },
17
+ "modules": {
18
+ "docs": {
19
+ "files": "/pages/**/*.{md,mdx}"
20
+ },
21
+ "landing": {
22
+ "enabled": true,
23
+ "path": "/",
24
+ "layout": "landing"
25
+ },
26
+ "userPanel": {
27
+ "enabled": true,
28
+ "dashboard": { "enabled": true },
29
+ "userManagement": { "enabled": true },
30
+ "plans": {
31
+ "enabled": false,
32
+ "page": "./user-panel/AccountPlansPage.tsx"
33
+ }
34
+ }
35
+ }
36
+ }
@@ -1,41 +1,6 @@
1
+ import { buildApitogoConfig } from "@lukoweb/apitogo";
1
2
  import { devPortalBillingPlugin } from "@lukoweb/apitogo-plugin-dev-portal-billing";
2
3
 
3
- /** @type {import('@lukoweb/apitogo').ApitogoConfig} */
4
- const config = {
5
- authentication: {
6
- type: "dev-portal",
7
- },
4
+ export default buildApitogoConfig({
8
5
  plugins: [devPortalBillingPlugin()],
9
- modules: {
10
- landing: {
11
- enabled: true,
12
- path: "/",
13
- layout: "landing",
14
- },
15
- userPanel: {
16
- enabled: true,
17
- dashboard: { enabled: true },
18
- userManagement: { enabled: true },
19
- plans: {
20
- enabled: true,
21
- page: "./user-panel/AccountPlansPage.tsx",
22
- },
23
- },
24
- },
25
- site: {
26
- title: "__APP_TITLE__",
27
- logo: {
28
- src: { light: "/logo-light.png", dark: "/logo-dark.png" },
29
- alt: "APIToGo",
30
- width: "130px",
31
- },
32
- },
33
- metadata: {
34
- favicon: "/Icon.png",
35
- },
36
- docs: {
37
- files: "/pages/**/*.{md,mdx}",
38
- },
39
- };
40
-
41
- export default config;
6
+ });
@@ -1,2 +1,2 @@
1
- # Rename this file to `.env` to use environment variables locally
2
- VITE_APITOGO_DEV_PORTAL_API_URL=https://dp-example.azurecontainerapps.io
1
+ # Public dev-portal API URL (client bundle)
2
+ VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://dp-example.azurecontainerapps.io
@@ -1 +1 @@
1
- VITE_APITOGO_DEV_PORTAL_API_URL=https://dp-example.azurecontainerapps.io
1
+ VITE_APITOGO_AUTHENTICATION_API_BASE_URL=https://dp-example.azurecontainerapps.io
@@ -0,0 +1,36 @@
1
+ {
2
+ "site": {
3
+ "title": "__APP_TITLE__",
4
+ "logo": {
5
+ "src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
6
+ "alt": "APIToGo",
7
+ "width": "130px"
8
+ }
9
+ },
10
+ "authentication": {
11
+ "enabled": false,
12
+ "type": "dev-portal"
13
+ },
14
+ "metadata": {
15
+ "favicon": "/Icon.png"
16
+ },
17
+ "modules": {
18
+ "docs": {
19
+ "files": "/pages/**/*.{md,mdx}"
20
+ },
21
+ "landing": {
22
+ "enabled": true,
23
+ "path": "/",
24
+ "layout": "landing"
25
+ },
26
+ "userPanel": {
27
+ "enabled": true,
28
+ "dashboard": { "enabled": true },
29
+ "userManagement": { "enabled": true },
30
+ "plans": {
31
+ "enabled": false,
32
+ "page": "./user-panel/AccountPlansPage.tsx"
33
+ }
34
+ }
35
+ }
36
+ }
@@ -1,41 +1,8 @@
1
- import type { ApitogoConfig } from "@lukoweb/apitogo";
2
1
  import { devPortalBillingPlugin } from "@lukoweb/apitogo-plugin-dev-portal-billing";
2
+ import { buildApitogoConfig } from "@lukoweb/apitogo/build-config";
3
+ import siteConfig from "./apitogo.config.json";
3
4
 
4
- const config: ApitogoConfig = {
5
- authentication: {
6
- type: "dev-portal",
7
- },
5
+ export default buildApitogoConfig({
6
+ ...siteConfig,
8
7
  plugins: [devPortalBillingPlugin()],
9
- modules: {
10
- landing: {
11
- enabled: true,
12
- path: "/",
13
- layout: "landing",
14
- },
15
- userPanel: {
16
- enabled: true,
17
- dashboard: { enabled: true },
18
- userManagement: { enabled: true },
19
- plans: {
20
- enabled: true,
21
- page: "./user-panel/AccountPlansPage.tsx",
22
- },
23
- },
24
- },
25
- site: {
26
- title: "__APP_TITLE__",
27
- logo: {
28
- src: { light: "/logo-light.png", dark: "/logo-dark.png" },
29
- alt: "APIToGo",
30
- width: "130px",
31
- },
32
- },
33
- metadata: {
34
- favicon: "/Icon.png",
35
- },
36
- docs: {
37
- files: "/pages/**/*.{md,mdx}",
38
- },
39
- };
40
-
41
- export default config;
8
+ });
@@ -252,12 +252,12 @@ export const installTemplate = async ({
252
252
  const configContents = await fs.readFile(configPath, "utf8");
253
253
  await fs.writeFile(configPath, substituteAppTitle(configContents), "utf8");
254
254
 
255
- const manifestPath = path.join(root, "apitogo.json");
255
+ const jsonConfigPath = path.join(root, "apitogo.config.json");
256
256
  try {
257
- const manifestContents = await fs.readFile(manifestPath, "utf8");
257
+ const jsonConfigContents = await fs.readFile(jsonConfigPath, "utf8");
258
258
  await fs.writeFile(
259
- manifestPath,
260
- substituteAppTitle(manifestContents),
259
+ jsonConfigPath,
260
+ substituteAppTitle(jsonConfigContents),
261
261
  "utf8",
262
262
  );
263
263
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/create-apitogo",
3
- "version": "0.1.50",
3
+ "version": "0.1.53",
4
4
  "keywords": [
5
5
  "react",
6
6
  "apitogo"
@@ -1,5 +0,0 @@
1
- {
2
- "siteName": "__APP_TITLE__",
3
- "branding": { "title": "__APP_TITLE__" },
4
- "pricing": { "enabled": false }
5
- }
@@ -1,6 +0,0 @@
1
- {
2
- "projectId": "optional-local-project-id",
3
- "backend": {
4
- "sourceDirectory": "../my-api"
5
- }
6
- }
@@ -1,11 +0,0 @@
1
- {
2
- "plans": [
3
- {
4
- "sku": "pro",
5
- "priceAmount": 19.99
6
- }
7
- ],
8
- "backend": {
9
- "deployed": true
10
- }
11
- }
@@ -1,5 +0,0 @@
1
- {
2
- "siteName": "__APP_TITLE__",
3
- "branding": { "title": "__APP_TITLE__" },
4
- "pricing": { "enabled": false }
5
- }
@@ -1,6 +0,0 @@
1
- {
2
- "projectId": "optional-local-project-id",
3
- "backend": {
4
- "sourceDirectory": "../my-api"
5
- }
6
- }
@@ -1,11 +0,0 @@
1
- {
2
- "plans": [
3
- {
4
- "sku": "pro",
5
- "priceAmount": 19.99
6
- }
7
- ],
8
- "backend": {
9
- "deployed": true
10
- }
11
- }