@tryghost/admin-toolbar 0.1.242 → 0.1.243
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.
- package/README.md +10 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,18 +7,24 @@ scripts where bundle size matters more than ecosystem compatibility.
|
|
|
7
7
|
|
|
8
8
|
## Development
|
|
9
9
|
|
|
10
|
+
Run `pnpm dev:public` from the monorepo root to start the standard development
|
|
11
|
+
environment and the Admin Toolbar watcher. To work on this package by itself,
|
|
12
|
+
run these commands from this directory:
|
|
13
|
+
|
|
10
14
|
```bash
|
|
11
15
|
pnpm build # one-off build
|
|
12
|
-
pnpm dev #
|
|
13
|
-
pnpm test # build + run tests against
|
|
16
|
+
pnpm dev # watch and rebuild umd/admin-toolbar.min.js
|
|
17
|
+
pnpm test # build + run tests against the built bundle
|
|
14
18
|
```
|
|
15
19
|
|
|
16
20
|
## How it's served
|
|
17
21
|
|
|
18
22
|
In production, the script is loaded from jsDelivr via the `adminToolbar` config
|
|
19
23
|
in `defaults.json`, following the same CDN pattern as portal, comments-ui, and
|
|
20
|
-
the other public apps. In development,
|
|
21
|
-
|
|
24
|
+
the other public apps. In development, `docker/ghost-dev/Dockerfile` overrides
|
|
25
|
+
that URL to `/ghost/assets/admin-toolbar/admin-toolbar.min.js`, which the dev
|
|
26
|
+
gateway serves straight off disk from this package's `umd/` directory — so the
|
|
27
|
+
watcher's output is picked up on the next request.
|
|
22
28
|
|
|
23
29
|
# Copyright & License
|
|
24
30
|
|