@bsb/registry 1.1.7 → 9.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +4 -2
  2. package/bsb-plugin.json +8 -2
  3. package/lib/.bsb/clients/service-bsb-registry.d.ts +301 -282
  4. package/lib/.bsb/clients/service-bsb-registry.d.ts.map +1 -1
  5. package/lib/.bsb/clients/service-bsb-registry.js +71 -10
  6. package/lib/.bsb/clients/service-bsb-registry.js.map +1 -1
  7. package/lib/plugins/service-bsb-registry/index.d.ts +10 -10
  8. package/lib/plugins/service-bsb-registry/index.d.ts.map +1 -1
  9. package/lib/plugins/service-bsb-registry/index.js +7 -7
  10. package/lib/plugins/service-bsb-registry/index.js.map +1 -1
  11. package/lib/plugins/service-bsb-registry/types.d.ts +158 -158
  12. package/lib/plugins/service-bsb-registry/types.d.ts.map +1 -1
  13. package/lib/plugins/service-bsb-registry-ui/BADGES.json +22 -0
  14. package/lib/plugins/service-bsb-registry-ui/http-server.d.ts +4 -2
  15. package/lib/plugins/service-bsb-registry-ui/http-server.d.ts.map +1 -1
  16. package/lib/plugins/service-bsb-registry-ui/http-server.js +160 -102
  17. package/lib/plugins/service-bsb-registry-ui/http-server.js.map +1 -1
  18. package/lib/plugins/service-bsb-registry-ui/index.d.ts +16 -16
  19. package/lib/plugins/service-bsb-registry-ui/index.d.ts.map +1 -1
  20. package/lib/plugins/service-bsb-registry-ui/index.js +8 -8
  21. package/lib/plugins/service-bsb-registry-ui/index.js.map +1 -1
  22. package/lib/plugins/service-bsb-registry-ui/templates/partials/plugin-card.hbs +1 -1
  23. package/lib/schemas/service-bsb-registry-ui.json +49 -37
  24. package/lib/schemas/service-bsb-registry-ui.plugin.json +49 -37
  25. package/lib/schemas/service-bsb-registry.json +58 -44
  26. package/lib/schemas/service-bsb-registry.plugin.json +40 -26
  27. package/package.json +16 -8
package/README.md CHANGED
@@ -35,7 +35,7 @@ This project includes `Dockerfile` to build and package the registry as a BSB pl
35
35
  - `/mnt/plugins/@bsb/registry/<version>/`
36
36
  - `/mnt/plugins/@bsb/registry/latest/`
37
37
 
38
- Use this output with BSB runtime images (`betterweb/service-base:9.0.0` or `betterweb/service-base:9`) by mounting/copying into `BSB_PLUGIN_DIR` (default `/mnt/plugins`).
38
+ Use this output with BSB runtime images (`betterweb/service-base:node` or `betterweb/service-base:node-9.6.3`) by mounting/copying into `BSB_PLUGIN_DIRS` (default `/mnt/plugins`). Supports comma-separated paths for multiple plugin directories.
39
39
 
40
40
  ## Configuration
41
41
 
@@ -54,12 +54,14 @@ service-bsb-registry-ui:
54
54
  host: 0.0.0.0
55
55
  pageSize: 20 # plugins per page
56
56
  uploadDir: ./.temp/registry-images
57
- badgesFile: ./BADGES.json
57
+ # badgesFile is optional; defaults to BADGES.json in the built UI plugin dir
58
58
  maxImageUploadMb: 5
59
59
  ```
60
60
 
61
61
  See `sec-config.minimal.yaml`, `sec-config.yaml`, and `sec-config.production.yaml` for example configurations.
62
62
 
63
+ `BADGES.json` is generated by `npm run build` before the registry package is compiled. It scans core BSB plugins and workspace plugin manifests, so new repo plugins are added automatically.
64
+
63
65
  ## Publishing Plugins
64
66
 
65
67
  From your plugin project:
package/bsb-plugin.json CHANGED
@@ -20,7 +20,10 @@
20
20
  "./docs/service-bsb-registry-ui.md"
21
21
  ],
22
22
  "pluginPath": "src/plugins/service-bsb-registry-ui/",
23
- "image": "../../../docs/public/assets/images/bsb-logo.png"
23
+ "image": "../../../docs/public/assets/images/bsb-logo.png",
24
+ "links": {
25
+ "github": "https://github.com/BetterCorp/better-service-base"
26
+ }
24
27
  },
25
28
  {
26
29
  "id": "service-bsb-registry",
@@ -41,7 +44,10 @@
41
44
  "./docs/bsb-registry-db-file.md"
42
45
  ],
43
46
  "pluginPath": "src/plugins/service-bsb-registry/",
44
- "image": "../../../docs/public/assets/images/bsb-logo.png"
47
+ "image": "../../../docs/public/assets/images/bsb-logo.png",
48
+ "links": {
49
+ "github": "https://github.com/BetterCorp/better-service-base"
50
+ }
45
51
  }
46
52
  ]
47
53
  }