Skip to content

Commit 219d1a5

Browse files
committed
add offline example scripts to Makefile and package.json
1 parent 02fd89a commit 219d1a5

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ run-crm: ## run the crm example
3939
build-crm: ## build the crm example
4040
@yarn build-crm
4141

42+
run-offline: ## run the offline example (dev mode)
43+
@yarn run-offline
44+
45+
build-offline: ## build the offline example
46+
@yarn build-offline
47+
48+
preview-offline: ## preview the offline example
49+
@yarn preview-offline
50+
51+
serve-offline: ## serve the offline example (force reinstall service worker)
52+
@yarn serve-offline
53+
4254
build-ra-core:
4355
@echo "Transpiling ra-core files...";
4456
@cd ./packages/ra-core && yarn build

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"update-changelog": "tsx scripts/update-changelog.ts",
2626
"update-milestones": "tsx scripts/update-milestones.ts",
2727
"create-github-release": "tsx scripts/create-github-release.ts",
28-
"update-create-react-admin-deps": "tsx scripts/update-create-react-admin-deps.ts"
28+
"update-create-react-admin-deps": "tsx scripts/update-create-react-admin-deps.ts",
29+
"run-offline": "cd examples/ra-offline && yarn dev",
30+
"build-offline": "cd examples/ra-offline && yarn build",
31+
"preview-offline": "cd examples/ra-offline && yarn preview",
32+
"serve-offline": "cd examples/ra-offline && yarn serve"
2933
},
3034
"devDependencies": {
3135
"@babel/plugin-proposal-class-properties": "^7.18.6",

0 commit comments

Comments
 (0)