@servicetitan/docs-uikit 35.0.0 → 35.2.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/install.mdx CHANGED
@@ -60,7 +60,7 @@ values={[{ label: "Github Action", value: "github"}, {label: "Dockerfile", value
60
60
  Alternatively, in Github actions using `action/setup-node`, you can use `registry-url` and `env.NODE_AUTH_TOKEN` to have it configure the project level `.npmrc`. For example,
61
61
 
62
62
  ```yml
63
- - uses: actions/setup-node@v4
63
+ - uses: actions/setup-node@v6
64
64
  registry-url: https://registry.npmjs.org
65
65
  env:
66
66
  NODE_AUTH_TOKEN: ${{ secrets.ST_NPM_READONLY_TOKEN }}
@@ -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.
@@ -117,3 +117,49 @@ export default config;
117
117
  ```
118
118
 
119
119
  For details about the structure and options available in webpack overrides, see the [createWebpackConfig](./build#createwebpackconfig) section in the build documentation.
120
+
121
+ ## Cypress Component Testing Configuration
122
+
123
+ ✨ New in **v35.1.0** ✨
124
+
125
+ `@servicetitan/startup` provides a `webpackConfig` utility function to configure Cypress for component testing with the same webpack and SWC settings used by the [build](./build) and [start](./start) commands. This ensures your Cypress component tests run with the same transpilation and module resolution rules as your application code.
126
+
127
+ To use the configuration, import `webpackConfig` from `@servicetitan/startup/cypress-config` in your Cypress configuration:
128
+
129
+ ```ts title="cypress.config.ts"
130
+ import { defineConfig } from 'cypress';
131
+ import { webpackConfig } from '@servicetitan/startup/cypress-config';
132
+
133
+ export default defineConfig({
134
+ component: {
135
+ devServer: {
136
+ framework: 'react',
137
+ bundler: 'webpack',
138
+ webpackConfig,
139
+ },
140
+ },
141
+ });
142
+ ```
143
+
144
+ ### Custom overrides
145
+
146
+ You can also pass custom webpack overrides to `webpackConfig`:
147
+
148
+ ```ts title="cypress.config.ts"
149
+ import { defineConfig } from 'cypress';
150
+ import { webpackConfig } from '@servicetitan/startup/cypress-config';
151
+
152
+ export default defineConfig({
153
+ component: {
154
+ devServer: {
155
+ framework: 'react',
156
+ bundler: 'webpack',
157
+ webpackConfig: webpackConfig({
158
+ /* Custom webpack overrides */
159
+ }),
160
+ },
161
+ },
162
+ });
163
+ ```
164
+
165
+ For details about the structure and options available in webpack overrides, see the [createWebpackConfig](./build#createwebpackconfig) section in the build documentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/docs-uikit",
3
- "version": "35.0.0",
3
+ "version": "35.2.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": "3a5f2e6cad93c4e898091fb3d51310ccb26a91ee"
19
+ "gitHead": "3dee12f1c7b7d2cf01180a187bd2b919a56c1fed"
20
20
  }