2022-11-06 00:43:40 +00:00
|
|
|
# Plugin directory structure
|
2022-10-31 14:41:24 +00:00
|
|
|
|
2022-11-06 00:43:40 +00:00
|
|
|
An empty plugin can be created quickly with `yarn pm create my-plugin`, with the following directory structure.
|
2022-10-31 14:41:24 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
|- /my-plugin
|
|
|
|
|- /src
|
2022-11-06 00:43:40 +00:00
|
|
|
|- /client # client-side of the plugin
|
|
|
|
|- /server # server-side of the plugin
|
2022-10-31 14:41:24 +00:00
|
|
|
|- client.d.ts
|
|
|
|
|- client.js
|
2022-11-06 00:43:40 +00:00
|
|
|
|- package.json # plugin package information
|
2022-10-31 14:41:24 +00:00
|
|
|
|- server.d.ts
|
|
|
|
|- server.js
|
|
|
|
```
|
|
|
|
|
2022-11-06 00:43:40 +00:00
|
|
|
The tutorial for `/src/server` refers to the [server](./server) section, and the tutorial for `/src/client` refers to the [client](./client) section.
|