React-admin-readme-5.sh
· 692 B · Bash
原始檔案
# Go to the folder of your client app
$ cd /code/path/to/myapp/
# Use the latest version of yarn package manager
$ corepack enable && yarn set version stable
# Replace the npm-installed version with a symlink to your local version
$ yarn link /code/path/to/react-admin/packages/react-admin
# If you modified additional internal packages in the react-admin monorepo, e.g. ra-core, also make a link
$ yarn link /code/path/to/react-admin/packages/ra-core
# Build all of the react-admin package distribution
$ cd /code/path/to/react-admin/ && make build
# Return to your app and ensure all dependencies have resolved
$ cd /code/path/to/myapp/ && yarn install
# Start your app
$ yarn start
1 | # Go to the folder of your client app |
2 | $ cd /code/path/to/myapp/ |
3 | |
4 | # Use the latest version of yarn package manager |
5 | $ corepack enable && yarn set version stable |
6 | |
7 | # Replace the npm-installed version with a symlink to your local version |
8 | $ yarn link /code/path/to/react-admin/packages/react-admin |
9 | |
10 | # If you modified additional internal packages in the react-admin monorepo, e.g. ra-core, also make a link |
11 | $ yarn link /code/path/to/react-admin/packages/ra-core |
12 | |
13 | # Build all of the react-admin package distribution |
14 | $ cd /code/path/to/react-admin/ && make build |
15 | |
16 | # Return to your app and ensure all dependencies have resolved |
17 | $ cd /code/path/to/myapp/ && yarn install |
18 | |
19 | # Start your app |
20 | $ yarn start |