@lukoweb/create-apitogo 0.1.49 → 0.1.51
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 +72 -0
- package/dist/templates/default/js/apitogo.config.jsx +2 -72
- package/dist/templates/default/ts/.env.example +4 -0
- package/dist/templates/default/ts/apitogo.config.json +92 -0
- package/dist/templates/default/ts/apitogo.config.tsx +3 -91
- package/dist/templates/default/ts/pages/introduction.mdx +2 -3
- package/dist/templates/empty/js/apitogo.config.json +39 -0
- package/dist/templates/empty/js/apitogo.config.jsx +3 -38
- package/dist/templates/empty/ts/apitogo.config.json +39 -0
- package/dist/templates/empty/ts/apitogo.config.tsx +3 -38
- package/dist/templates/index.ts +4 -4
- package/package.json +1 -1
- package/dist/templates/default/ts/apitogo.json +0 -5
- package/dist/templates/default/ts/apitogo.local.example.json +0 -6
- package/dist/templates/default/ts/apitogo.prod.example.json +0 -11
- package/dist/templates/empty/ts/apitogo.json +0 -5
- package/dist/templates/empty/ts/apitogo.local.example.json +0 -6
- package/dist/templates/empty/ts/apitogo.prod.example.json +0 -11
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteName": "__APP_TITLE__",
|
|
3
|
+
"branding": { "title": "__APP_TITLE__" },
|
|
4
|
+
"site": {
|
|
5
|
+
"title": "__APP_TITLE__",
|
|
6
|
+
"logo": {
|
|
7
|
+
"src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
|
|
8
|
+
"alt": "APIToGo",
|
|
9
|
+
"width": "130px"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"metadata": {
|
|
13
|
+
"favicon": "/Icon.png"
|
|
14
|
+
},
|
|
15
|
+
"docs": {
|
|
16
|
+
"files": "/pages/**/*.{md,mdx}"
|
|
17
|
+
},
|
|
18
|
+
"navigation": [
|
|
19
|
+
{
|
|
20
|
+
"type": "category",
|
|
21
|
+
"label": "Documentation",
|
|
22
|
+
"items": [
|
|
23
|
+
{
|
|
24
|
+
"type": "category",
|
|
25
|
+
"label": "Getting Started",
|
|
26
|
+
"icon": "sparkles",
|
|
27
|
+
"items": [
|
|
28
|
+
"/introduction",
|
|
29
|
+
"/example",
|
|
30
|
+
{
|
|
31
|
+
"type": "link",
|
|
32
|
+
"icon": "folder-cog",
|
|
33
|
+
"badge": {
|
|
34
|
+
"label": "New",
|
|
35
|
+
"color": "purple"
|
|
36
|
+
},
|
|
37
|
+
"label": "API Reference",
|
|
38
|
+
"to": "/api"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "category",
|
|
44
|
+
"label": "Useful Links",
|
|
45
|
+
"collapsible": false,
|
|
46
|
+
"icon": "link",
|
|
47
|
+
"items": [
|
|
48
|
+
{
|
|
49
|
+
"type": "link",
|
|
50
|
+
"icon": "book",
|
|
51
|
+
"label": "APIToGo",
|
|
52
|
+
"to": "https://apitogo.com"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "link",
|
|
60
|
+
"to": "/api",
|
|
61
|
+
"label": "API Reference"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"redirects": [{ "from": "/", "to": "/introduction" }],
|
|
65
|
+
"apis": [
|
|
66
|
+
{
|
|
67
|
+
"type": "file",
|
|
68
|
+
"input": "./apis/openapi.yaml",
|
|
69
|
+
"path": "api"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
@@ -1,73 +1,3 @@
|
|
|
1
|
-
|
|
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
|
|
3
|
+
export default buildApitogoConfig();
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
# Rename this file to `.env` to use environment variables locally
|
|
2
2
|
VITE_APITOGO_DEV_PORTAL_API_URL=https://dp-example.azurecontainerapps.io
|
|
3
|
+
|
|
4
|
+
# Optional overrides for apitogo.config.json (double underscore = nested path)
|
|
5
|
+
# APITOGO_CONFIG_projectId=your-local-project-id
|
|
6
|
+
# APITOGO_CONFIG_backend__sourceDirectory=../my-api
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteName": "__APP_TITLE__",
|
|
3
|
+
"branding": { "title": "__APP_TITLE__" },
|
|
4
|
+
"pricing": { "enabled": false },
|
|
5
|
+
"authentication": {
|
|
6
|
+
"enabled": false,
|
|
7
|
+
"type": "dev-portal"
|
|
8
|
+
},
|
|
9
|
+
"site": {
|
|
10
|
+
"title": "__APP_TITLE__",
|
|
11
|
+
"logo": {
|
|
12
|
+
"src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
|
|
13
|
+
"alt": "APIToGo",
|
|
14
|
+
"width": "130px"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"metadata": {
|
|
18
|
+
"favicon": "/Icon.png"
|
|
19
|
+
},
|
|
20
|
+
"docs": {
|
|
21
|
+
"files": "/pages/**/*.{md,mdx}"
|
|
22
|
+
},
|
|
23
|
+
"modules": {
|
|
24
|
+
"landing": {
|
|
25
|
+
"enabled": true,
|
|
26
|
+
"path": "/",
|
|
27
|
+
"layout": "landing"
|
|
28
|
+
},
|
|
29
|
+
"userPanel": {
|
|
30
|
+
"enabled": true,
|
|
31
|
+
"dashboard": { "enabled": true },
|
|
32
|
+
"userManagement": { "enabled": true },
|
|
33
|
+
"plans": {
|
|
34
|
+
"enabled": true,
|
|
35
|
+
"page": "./user-panel/AccountPlansPage.tsx"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
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
|
+
}
|
|
@@ -1,94 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { buildApitogoConfig } from "@lukoweb/apitogo";
|
|
2
2
|
import { devPortalBillingPlugin } from "@lukoweb/apitogo-plugin-dev-portal-billing";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
authentication: {
|
|
6
|
-
type: "dev-portal",
|
|
7
|
-
},
|
|
4
|
+
export default buildApitogoConfig({
|
|
8
5
|
plugins: [devPortalBillingPlugin()],
|
|
9
|
-
|
|
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;
|
|
6
|
+
});
|
|
@@ -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.
|
|
14
|
-
|
|
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).
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteName": "__APP_TITLE__",
|
|
3
|
+
"branding": { "title": "__APP_TITLE__" },
|
|
4
|
+
"pricing": { "enabled": false },
|
|
5
|
+
"authentication": {
|
|
6
|
+
"enabled": false,
|
|
7
|
+
"type": "dev-portal"
|
|
8
|
+
},
|
|
9
|
+
"site": {
|
|
10
|
+
"title": "__APP_TITLE__",
|
|
11
|
+
"logo": {
|
|
12
|
+
"src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
|
|
13
|
+
"alt": "APIToGo",
|
|
14
|
+
"width": "130px"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"metadata": {
|
|
18
|
+
"favicon": "/Icon.png"
|
|
19
|
+
},
|
|
20
|
+
"docs": {
|
|
21
|
+
"files": "/pages/**/*.{md,mdx}"
|
|
22
|
+
},
|
|
23
|
+
"modules": {
|
|
24
|
+
"landing": {
|
|
25
|
+
"enabled": true,
|
|
26
|
+
"path": "/",
|
|
27
|
+
"layout": "landing"
|
|
28
|
+
},
|
|
29
|
+
"userPanel": {
|
|
30
|
+
"enabled": true,
|
|
31
|
+
"dashboard": { "enabled": true },
|
|
32
|
+
"userManagement": { "enabled": true },
|
|
33
|
+
"plans": {
|
|
34
|
+
"enabled": true,
|
|
35
|
+
"page": "./user-panel/AccountPlansPage.tsx"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,41 +1,6 @@
|
|
|
1
|
+
import { buildApitogoConfig } from "@lukoweb/apitogo";
|
|
1
2
|
import { devPortalBillingPlugin } from "@lukoweb/apitogo-plugin-dev-portal-billing";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
const config = {
|
|
5
|
-
authentication: {
|
|
6
|
-
type: "dev-portal",
|
|
7
|
-
},
|
|
4
|
+
export default buildApitogoConfig({
|
|
8
5
|
plugins: [devPortalBillingPlugin()],
|
|
9
|
-
|
|
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
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteName": "__APP_TITLE__",
|
|
3
|
+
"branding": { "title": "__APP_TITLE__" },
|
|
4
|
+
"pricing": { "enabled": false },
|
|
5
|
+
"authentication": {
|
|
6
|
+
"enabled": false,
|
|
7
|
+
"type": "dev-portal"
|
|
8
|
+
},
|
|
9
|
+
"site": {
|
|
10
|
+
"title": "__APP_TITLE__",
|
|
11
|
+
"logo": {
|
|
12
|
+
"src": { "light": "/logo-light.png", "dark": "/logo-dark.png" },
|
|
13
|
+
"alt": "APIToGo",
|
|
14
|
+
"width": "130px"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"metadata": {
|
|
18
|
+
"favicon": "/Icon.png"
|
|
19
|
+
},
|
|
20
|
+
"docs": {
|
|
21
|
+
"files": "/pages/**/*.{md,mdx}"
|
|
22
|
+
},
|
|
23
|
+
"modules": {
|
|
24
|
+
"landing": {
|
|
25
|
+
"enabled": true,
|
|
26
|
+
"path": "/",
|
|
27
|
+
"layout": "landing"
|
|
28
|
+
},
|
|
29
|
+
"userPanel": {
|
|
30
|
+
"enabled": true,
|
|
31
|
+
"dashboard": { "enabled": true },
|
|
32
|
+
"userManagement": { "enabled": true },
|
|
33
|
+
"plans": {
|
|
34
|
+
"enabled": true,
|
|
35
|
+
"page": "./user-panel/AccountPlansPage.tsx"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,41 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { buildApitogoConfig } from "@lukoweb/apitogo";
|
|
2
2
|
import { devPortalBillingPlugin } from "@lukoweb/apitogo-plugin-dev-portal-billing";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
authentication: {
|
|
6
|
-
type: "dev-portal",
|
|
7
|
-
},
|
|
4
|
+
export default buildApitogoConfig({
|
|
8
5
|
plugins: [devPortalBillingPlugin()],
|
|
9
|
-
|
|
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
|
+
});
|
package/dist/templates/index.ts
CHANGED
|
@@ -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
|
|
255
|
+
const jsonConfigPath = path.join(root, "apitogo.config.json");
|
|
256
256
|
try {
|
|
257
|
-
const
|
|
257
|
+
const jsonConfigContents = await fs.readFile(jsonConfigPath, "utf8");
|
|
258
258
|
await fs.writeFile(
|
|
259
|
-
|
|
260
|
-
substituteAppTitle(
|
|
259
|
+
jsonConfigPath,
|
|
260
|
+
substituteAppTitle(jsonConfigContents),
|
|
261
261
|
"utf8",
|
|
262
262
|
);
|
|
263
263
|
} catch {
|
package/package.json
CHANGED