@servicetitan/docs-uikit 35.1.0 → 35.3.0
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/docs/startup/start.mdx +8 -0
- package/docs/startup/startup.mdx +18 -0
- package/package.json +2 -2
package/docs/startup/start.mdx
CHANGED
|
@@ -44,6 +44,14 @@ Use `cli.webpack.port` to select the port to use for a package. By default, pack
|
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
✨ New in **v35.2.0** ✨
|
|
48
|
+
|
|
49
|
+
You can also override the port at runtime using the `PORT` environment variable. This takes precedence over `cli.webpack.port` and is useful for tools like .NET Aspire that need to assign dynamic ports.
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
PORT=3000 npm start
|
|
53
|
+
```
|
|
54
|
+
|
|
47
55
|
### DevServer
|
|
48
56
|
|
|
49
57
|
Use `cli.webpack.devServer` to set or override `webpack-dev-server` options.
|
package/docs/startup/startup.mdx
CHANGED
|
@@ -163,3 +163,21 @@ export default defineConfig({
|
|
|
163
163
|
```
|
|
164
164
|
|
|
165
165
|
For details about the structure and options available in webpack overrides, see the [createWebpackConfig](./build#createwebpackconfig) section in the build documentation.
|
|
166
|
+
|
|
167
|
+
### TypeScript Types
|
|
168
|
+
|
|
169
|
+
`@servicetitan/startup` exports TypeScript types for Cypress component testing via `@servicetitan/startup/@types/cypress`. These types augment the Cypress `Chainable` interface with the `mount` command.
|
|
170
|
+
|
|
171
|
+
To use them, add both `"cypress"` and `"@servicetitan/startup/@types/cypress"` to the `types` array in your `tsconfig.json`:
|
|
172
|
+
|
|
173
|
+
```json title="tsconfig.json"
|
|
174
|
+
{
|
|
175
|
+
"extends": "@servicetitan/startup/tsconfig/base",
|
|
176
|
+
"compilerOptions": {
|
|
177
|
+
"outDir": "dist",
|
|
178
|
+
"rootDir": "src",
|
|
179
|
+
"types": ["cypress", "@servicetitan/startup/@types/cypress"]
|
|
180
|
+
},
|
|
181
|
+
"include": ["src/**/*"]
|
|
182
|
+
}
|
|
183
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-uikit",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.3.0",
|
|
4
4
|
"description": "Documentation content for Uikit packages published at docs.st.dev",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"cli": {
|
|
17
17
|
"webpack": false
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "a978fa979eaba3487c32cd9f948391957974f7d1"
|
|
20
20
|
}
|