Skip to content

Commit b167fbc

Browse files
chore(demo): remove demo prefix (#50)
1 parent 693b7c0 commit b167fbc

File tree

10 files changed

+8
-8
lines changed

10 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ This repository includes demo projects located in the `/demo` directory to help
259259
### Demo Structure
260260

261261
- **`.strapi-app`**: This is the main Strapi application used for the demo projects.
262-
- **`demo/demo-node-typescript`**: A Node.js project using TypeScript.
263-
- **`demo/demo-node-javascript`**: A Node.js project using JavaScript.
262+
- **`demo/node-typescript`**: A Node.js project using TypeScript.
263+
- **`demo/node-javascript`**: A Node.js project using JavaScript.
264264

265265
### Using Demo Scripts
266266

@@ -306,7 +306,7 @@ The following scripts shouldn't need to be used generally, but are also availabl
306306
pnpm run demo:env
307307
```
308308

309-
- **`demo:seed`**: Seeds the Strapi application with example data. This script also generates `.env` files with API tokens for the `demo-node-typescript` and `demo-node-javascript` projects.
309+
- **`demo:seed`**: Seeds the Strapi application with example data. This script also generates `.env` files with API tokens for the `node-typescript` and `node-javascript` projects.
310310

311311
```bash
312312
pnpm run demo:seed

demo/.strapi-app/scripts/seed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ async function createApiTokens(app) {
267267
];
268268

269269
const envPaths = [
270-
path.join(__dirname, '../../demo-node-javascript/.env'),
271-
path.join(__dirname, '../../demo-node-typescript/.env'),
270+
path.join(__dirname, '../../node-javascript/.env'),
271+
path.join(__dirname, '../../node-typescript/.env'),
272272
];
273273

274274
for (const tokenType of tokenTypes) {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
"build": "rollup --config rollup.config.mjs --failAfterWarnings",
4646
"build:clean": "pnpm run clean && pnpm run build",
4747
"clean": "pnpm exec rimraf ./dist",
48-
"demo:build": "pnpm run build && pnpm -C demo/demo-node-typescript build",
48+
"demo:build": "pnpm run build && pnpm -C demo/node-typescript build",
4949
"demo:env": "test -f demo/.strapi-app/.env || cp demo/.strapi-app/.env.example demo/.strapi-app/.env",
50-
"demo:install": "pnpm install && pnpm -C demo/.strapi-app install && pnpm -C demo/demo-node-typescript install && pnpm -C demo/demo-node-javascript install",
50+
"demo:install": "pnpm install && pnpm -C demo/.strapi-app install && pnpm -C demo/node-typescript install && pnpm -C demo/node-javascript install",
5151
"demo:seed": "pnpm -C demo/.strapi-app seed:example",
5252
"demo:seed:clean": "pnpm exec rimraf demo/.strapi-app/.tmp/data.db && pnpm run demo:seed",
5353
"demo:setup": "pnpm demo:install && pnpm run demo:env && pnpm run demo:build && pnpm run demo:seed:clean",
54-
"demo:run": "pnpm -C demo/.strapi-app develop",
54+
"demo:start": "pnpm -C demo/.strapi-app develop",
5555
"lint": "eslint .",
5656
"lint:fix": "eslint . --fix",
5757
"lint:fix:dry": "eslint . --fix-dry-run",

0 commit comments

Comments
 (0)