Skip to content

Commit 64e27f9

Browse files
committed
enhancement: demo setup script
1 parent f29c968 commit 64e27f9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +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",
49+
"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",
51+
"demo:seed": "pnpm -C demo/.strapi-app seed:example",
52+
"demo:seed:clean": "pnpm exec rimraf demo/.strapi-app/.tmp/data.db && pnpm run demo:seed",
53+
"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",
4855
"lint": "eslint .",
4956
"lint:fix": "eslint . --fix",
5057
"lint:fix:dry": "eslint . --fix-dry-run",
@@ -53,9 +60,6 @@
5360
"prettier:write": "prettier --write .",
5461
"test": "jest --verbose",
5562
"test:cov": "jest --verbose --coverage",
56-
"demo:seed": "pnpm -C demo/.strapi-app seed:example",
57-
"demo:seed:clean": "pnpm exec rimraf demo/.strapi-app/.tmp/data.db && pnpm run demo:seed",
58-
"demo:run": "pnpm -C demo/.strapi-app develop",
5963
"ts:check": "tsc -p tsconfig.build.json --noEmit",
6064
"watch": "rollup --config rollup.config.mjs --watch --failAfterWarnings",
6165
"prepack": "pnpm exec ./scripts/pre-pack.sh"

0 commit comments

Comments
 (0)