You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2023. It is now read-only.
To actively develop or debug this plugin you can either work directly within the demo directory of this repo, or link your own project.
192
+
193
+
1. #### Internal Demo
194
+
195
+
This repo includes a fully working, self-seeding instance of Payload that installs the plugin directly from the source code. This is the easiest way to get started. To spin up this demo, follow these steps:
1. Now open `http://localhost:3000/admin` in your browser
200
+
1. Enter username `dev@payloadcms.com` and password `test`
201
+
202
+
That's it! Changes made in `./src` will be reflected in your demo. Keep in mind that the demo database is automatically seeded on every startup, any changes you make to the data get destroyed each time you reboot the app.
203
+
204
+
1. #### Linked Project
205
+
206
+
You can alternatively link your own project to the source code:
1. Now `cd` back into your own project and run, `yarn link @payloadcms/plugin-nested-docs`
211
+
1. If this plugin using React in any way, continue to the next step. Otherwise skip to step 7.
212
+
1. From your own project, `cd node_modules/react && yarn link && cd ../react-dom && yarn link && cd ../../`
213
+
1. Then, `cd YOUR_PLUGIN_REPO && yarn link react react-dom`
214
+
215
+
All set! You can now boot up your own project as normal, and your local copy of the plugin source code will be used. Keep in mind that changes to the source code require a rebuild, `yarn build`.
216
+
217
+
You might also need to alias these modules in your Webpack config. To do this, open your project's Payload config and add the following:
0 commit comments