@lukoweb/create-apitogo 0.1.46 → 0.1.48
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/ts/apitogo.json +4 -0
- package/dist/templates/default/ts/apitogo.local.example.json +6 -0
- package/dist/templates/default/ts/apitogo.prod.example.json +11 -0
- package/dist/templates/default/ts/pages/introduction.mdx +3 -1
- package/dist/templates/index.ts +1 -1
- package/package.json +1 -1
- package/dist/templates/default/ts/apitogo.local.json +0 -23
|
@@ -10,7 +10,9 @@ To edit this page, open the `pages/introduction.mdx` file.
|
|
|
10
10
|
|
|
11
11
|
## Configuration
|
|
12
12
|
|
|
13
|
-
You can find the full configuration
|
|
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.
|
|
14
16
|
|
|
15
17
|
For further information on how to customize your site, check out the
|
|
16
18
|
[APIToGo documentation](https://docs.apitogo.com).
|
package/dist/templates/index.ts
CHANGED
|
@@ -252,7 +252,7 @@ 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.
|
|
255
|
+
const manifestPath = path.join(root, "apitogo.json");
|
|
256
256
|
try {
|
|
257
257
|
const manifestContents = await fs.readFile(manifestPath, "utf8");
|
|
258
258
|
await fs.writeFile(
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"siteName": "__APP_TITLE__",
|
|
3
|
-
"branding": { "title": "__APP_TITLE__" },
|
|
4
|
-
"plans": [
|
|
5
|
-
{
|
|
6
|
-
"sku": "free",
|
|
7
|
-
"displayName": "Free",
|
|
8
|
-
"isFree": true,
|
|
9
|
-
"limitsJson": "{\"rateLimit\":{\"calls\":10,\"renewalPeriodSeconds\":60}}",
|
|
10
|
-
"includedActionKeys": []
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"sku": "pro",
|
|
14
|
-
"displayName": "Pro",
|
|
15
|
-
"isFree": false,
|
|
16
|
-
"priceAmount": 9.99,
|
|
17
|
-
"priceCurrency": "usd",
|
|
18
|
-
"billingPeriod": "monthly",
|
|
19
|
-
"limitsJson": "{\"rateLimit\":{\"calls\":100,\"renewalPeriodSeconds\":60},\"quota\":{\"calls\":50000,\"renewalPeriodDays\":1}}",
|
|
20
|
-
"includedActionKeys": ["get:/api/items"]
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|