@hubspot/cms-dev-server 1.2.47 → 1.2.49
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 +13 -1
- package/dist/generateJsonFromJsx.js +2 -1
- package/dist/index.js +3 -2
- package/dist/run.js +3 -2
- package/dist/validateFieldsCli.js +1324 -0
- package/package.json +5 -4
- package/types/lib/renderModule.d.ts +14 -0
- package/types/lib/watchFieldsUpdates.d.ts +1 -0
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
# cms-dev-server
|
|
2
2
|
|
|
3
|
-
Local
|
|
3
|
+
Local development server for JS rendering, published as `@hubspot/cms-dev-server` and invoked via the HubSpot CLI. Handles proxying pages, serving/hot-reloading a customer's JS project, module/HubL routing, and a Storybook mode.
|
|
4
|
+
|
|
5
|
+
See [Set up local development](../docs/local-dev-setup.md) for how this is normally run from the monorepo root (`bend yarn start`/`bend yarn watch`), and [Utility Scripts](../docs/utility-scripts.md) for the full command reference.
|
|
6
|
+
|
|
7
|
+
## Scripts
|
|
8
|
+
|
|
9
|
+
- `dev` / `dev-inspect` — run the dev server directly (with `--inspect` for the latter)
|
|
10
|
+
- `start` / `start-inspect` — same, via the built output
|
|
11
|
+
- `build` / `build:watch` / `build-types` — build the package and its type declarations
|
|
12
|
+
- `es-watch` — watch mode for the ES build
|
|
13
|
+
- `runBuild` — used by `bend yarn run-at-resources`/`run-at-resources-unified` to point the dev server at a fixture project
|
|
14
|
+
- `test` / `test:watch` — vitest
|
|
15
|
+
- `publint` — validates the published package shape before release
|
package/dist/index.js
CHANGED
|
@@ -1202,7 +1202,8 @@ Custom origin: ${process.env.VITE_ORIGIN}
|
|
|
1202
1202
|
origin,
|
|
1203
1203
|
hmr: {
|
|
1204
1204
|
protocol: sslEnabled ? "wss" : void 0
|
|
1205
|
-
}
|
|
1205
|
+
},
|
|
1206
|
+
allowedHosts: ["localhost", "hslocal.net", ...additionalMkcertHosts]
|
|
1206
1207
|
},
|
|
1207
1208
|
root: webRoot,
|
|
1208
1209
|
...ssrAndOptimizeDep,
|
|
@@ -1649,7 +1650,7 @@ function trackUsage(action) {
|
|
|
1649
1650
|
eventName: EVENT_NAME,
|
|
1650
1651
|
action,
|
|
1651
1652
|
nodeVersion: getNodeVersionData(),
|
|
1652
|
-
version: "1.2.
|
|
1653
|
+
version: "1.2.49",
|
|
1653
1654
|
os: getPlatform()
|
|
1654
1655
|
};
|
|
1655
1656
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
package/dist/run.js
CHANGED
|
@@ -2256,7 +2256,7 @@ function trackUsage(action) {
|
|
|
2256
2256
|
eventName: EVENT_NAME,
|
|
2257
2257
|
action,
|
|
2258
2258
|
nodeVersion: getNodeVersionData(),
|
|
2259
|
-
version: "1.2.
|
|
2259
|
+
version: "1.2.49",
|
|
2260
2260
|
os: getPlatform()
|
|
2261
2261
|
};
|
|
2262
2262
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -5267,7 +5267,8 @@ Custom origin: ${process.env.VITE_ORIGIN}
|
|
|
5267
5267
|
origin,
|
|
5268
5268
|
hmr: {
|
|
5269
5269
|
protocol: sslEnabled ? "wss" : void 0
|
|
5270
|
-
}
|
|
5270
|
+
},
|
|
5271
|
+
allowedHosts: ["localhost", "hslocal.net", ...additionalMkcertHosts]
|
|
5271
5272
|
},
|
|
5272
5273
|
root: webRoot2,
|
|
5273
5274
|
...ssrAndOptimizeDep,
|