@lukoweb/create-apitogo 0.1.126 → 0.1.129

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.
@@ -19,6 +19,9 @@ These tools wire navigation/config and run site validation. Hand-editing `pages/
19
19
  ## Hand-edit only when no tool exists
20
20
 
21
21
  - **Home page content**: `landing/LandingPage.tsx` (see `get_dev_portal_landing_guide`)
22
+ - To list your real API operations in `ApiShowcaseSection` (instead of the static sample list),
23
+ use `useGatewayActions()` — see
24
+ https://docs.apitogo.com/docs/customization/landing-page#live-apis
22
25
  - **Site footer**: `apitogo.config.json` → `modules.landing.content.footer`
23
26
 
24
27
  ## Local preview
@@ -19,6 +19,9 @@ These tools wire navigation/config and run site validation. Hand-editing `pages/
19
19
  ## Hand-edit only when no tool exists
20
20
 
21
21
  - **Home page content**: `landing/LandingPage.tsx` (see `get_dev_portal_landing_guide`)
22
+ - To list your real API operations in `ApiShowcaseSection` (instead of the static sample list),
23
+ use `useGatewayActions()` — see
24
+ https://docs.apitogo.com/docs/customization/landing-page#live-apis
22
25
  - **Site footer**: `apitogo.config.json` → `modules.landing.content.footer`
23
26
 
24
27
  ## Local preview
@@ -107,6 +107,8 @@ export default function LandingPage() {
107
107
  },
108
108
  ]}
109
109
  />
110
+ {/* Static sample list. To show your real API operations from the dev portal
111
+ backend instead, see https://docs.apitogo.com/docs/customization/landing-page#live-apis */}
110
112
  <ApiShowcaseSection
111
113
  apiShowcase={{
112
114
  title: "Sample endpoints",
@@ -19,6 +19,9 @@ These tools wire navigation/config and run site validation. Hand-editing `pages/
19
19
  ## Hand-edit only when no tool exists
20
20
 
21
21
  - **Home page content**: `landing/LandingPage.tsx` (see `get_dev_portal_landing_guide`)
22
+ - To list your real API operations in `ApiShowcaseSection` (instead of the static sample list),
23
+ use `useGatewayActions()` — see
24
+ https://docs.apitogo.com/docs/customization/landing-page#live-apis
22
25
  - **Site footer**: `apitogo.config.json` → `modules.landing.content.footer`
23
26
 
24
27
  ## Local preview
@@ -19,6 +19,9 @@ These tools wire navigation/config and run site validation. Hand-editing `pages/
19
19
  ## Hand-edit only when no tool exists
20
20
 
21
21
  - **Home page content**: `landing/LandingPage.tsx` (see `get_dev_portal_landing_guide`)
22
+ - To list your real API operations in `ApiShowcaseSection` (instead of the static sample list),
23
+ use `useGatewayActions()` — see
24
+ https://docs.apitogo.com/docs/customization/landing-page#live-apis
22
25
  - **Site footer**: `apitogo.config.json` → `modules.landing.content.footer`
23
26
 
24
27
  ## Local preview
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/create-apitogo",
3
- "version": "0.1.126",
3
+ "version": "0.1.129",
4
4
  "keywords": [
5
5
  "react",
6
6
  "apitogo"
@@ -19,6 +19,10 @@
19
19
  "files": [
20
20
  "dist"
21
21
  ],
22
+ "scripts": {
23
+ "dev": "ncc build ./index.ts -w -o dist/",
24
+ "build": "node -e \"require('node:fs').rmSync('./dist', { recursive: true, force: true })\" && ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register && node -e \"const fs = require('node:fs'); const path = './dist/index.js'; const content = fs.readFileSync(path, 'utf8').replace(/^#!\\/usr\\/bin\\/env node\\r?/, '#!/usr/bin/env node\\n'); fs.writeFileSync(path, content); fs.cpSync('templates', 'dist/templates', { recursive: true });\""
25
+ },
22
26
  "devDependencies": {
23
27
  "@types/async-retry": "1.4.2",
24
28
  "@types/cross-spawn": "6.0.6",
@@ -42,8 +46,7 @@
42
46
  "engines": {
43
47
  "node": ">=20"
44
48
  },
45
- "scripts": {
46
- "dev": "ncc build ./index.ts -w -o dist/",
47
- "build": "node -e \"require('node:fs').rmSync('./dist', { recursive: true, force: true })\" && ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register && node -e \"const fs = require('node:fs'); const path = './dist/index.js'; const content = fs.readFileSync(path, 'utf8').replace(/^#!\\/usr\\/bin\\/env node\\r?/, '#!/usr/bin/env node\\n'); fs.writeFileSync(path, content); fs.cpSync('templates', 'dist/templates', { recursive: true });\""
49
+ "publishConfig": {
50
+ "access": "public"
48
51
  }
49
- }
52
+ }