@servicetitan/docs-uikit 27.3.0 → 28.0.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/BREAKING_CHANGES.mdx +6 -0
- package/docs/startup.mdx +10 -13
- package/docs/web-components.mdx +1 -1
- package/package.json +2 -2
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
title: BREAKING CHANGES
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
## v28.0.0
|
|
6
|
+
|
|
7
|
+
### [servicetitan/startup](./startup)
|
|
8
|
+
|
|
9
|
+
- Changed the default [moduleResolution](https://www.typescriptlang.org/tsconfig/#moduleResolution) from `node` to `bundler` to support importing from `@servicetitan/anvil2/token`. CommonJS packages that require the previous value must override `moduleResolution` in the package's `tsconfig.json`.
|
|
10
|
+
|
|
5
11
|
## v27.0.0
|
|
6
12
|
|
|
7
13
|
### [@servicetitan/startup](./startup)
|
package/docs/startup.mdx
CHANGED
|
@@ -30,19 +30,15 @@ Experimental flags don't follow semver. There might be breaking changes in minor
|
|
|
30
30
|
|
|
31
31
|
Generates initial project structure. This command should be run via `npx` in an empty folder.
|
|
32
32
|
|
|
33
|
+
```sh
|
|
34
|
+
$ npx -y @servicetitan/startup@latest init
|
|
33
35
|
```
|
|
34
|
-
npx -y @servicetitan/startup@latest init
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
#### Arguments
|
|
38
|
-
|
|
39
|
-
- `--react17` - Generate a project that uses React 17.x instead of React 18.x
|
|
40
36
|
|
|
41
37
|
### install
|
|
42
38
|
|
|
43
39
|
Installs the package dependencies. This command should be run via `npx` before the build.
|
|
44
40
|
|
|
45
|
-
See [
|
|
41
|
+
See [package.json in the example project](https://github.com/search?q=repo%3Aservicetitan%2Ffrontend-example+path%3A**%2Fpackage.json+%22startup+install%22&type=code).
|
|
46
42
|
|
|
47
43
|
### start
|
|
48
44
|
|
|
@@ -77,7 +73,7 @@ Runs all existing tests in all packages.
|
|
|
77
73
|
To run tests a subset of tests is possible to pass paths to specific directories or test files as positional parameters.
|
|
78
74
|
|
|
79
75
|
```sh
|
|
80
|
-
startup test -- packages/desktop/app/modules/inventory/
|
|
76
|
+
$ npx startup test -- packages/desktop/app/modules/inventory/
|
|
81
77
|
```
|
|
82
78
|
|
|
83
79
|
### lint
|
|
@@ -87,14 +83,14 @@ Runs ESLint and Stylelint for all codebase projects.
|
|
|
87
83
|
To run ESLint and Stylelint on certain packages or subsystems it is possible to pass paths to specific directories as positional parameters.
|
|
88
84
|
|
|
89
85
|
```sh
|
|
90
|
-
startup lint -- packages/desktop/app/modules/inventory/
|
|
86
|
+
$ npx startup lint -- packages/desktop/app/modules/inventory/
|
|
91
87
|
```
|
|
92
88
|
|
|
93
89
|
You can use multiple paths and your shell expressions which expand to directories.
|
|
94
90
|
|
|
95
91
|
```sh
|
|
96
|
-
startup lint -- packages/desktop/app/modules/lead/ packages/desktop/app/modules/inventory/
|
|
97
|
-
startup lint -- packages/desktop/app/modules/{lead,inventory}/
|
|
92
|
+
$ npx startup lint -- packages/desktop/app/modules/lead/ packages/desktop/app/modules/inventory/
|
|
93
|
+
$ npx startup lint -- packages/desktop/app/modules/{lead,inventory}/
|
|
98
94
|
```
|
|
99
95
|
|
|
100
96
|
#### Arguments
|
|
@@ -120,8 +116,7 @@ This is an umbrella command for both unpublishing (cleaning up, `mfe-package-cle
|
|
|
120
116
|
- `--dry` - Invoke [npm publish --dry-run](https://docs.npmjs.com/cli/v7/commands/npm-publish#dry-run) instead of actually publishing anything.
|
|
121
117
|
- `--branch <string>` - Optional branch name. The current branch name is used if no value is specified. The branch name is used in constructing the build version in case `--build` is not specified.
|
|
122
118
|
- `--force` - Attempts to force publish the package in case no branch configuration is found for the specified branch (`--branch` or current branch).
|
|
123
|
-
- `--tag <string> | false` - If the value is `false` the package will be published without a custom [tag](https://docs.npmjs.com/cli/v7/commands/npm-publish#tag) (meaning it will be published with the default `latest` tag). If another value is specified it will be used as the tag name otherwise the tag value will be mapped from [following object](https://github.com/servicetitan/uikit/blob/master/packages/startup/src/cli/commands/
|
|
124
|
-
- `--noTag <string>` - This argument is currently not used.
|
|
119
|
+
- `--tag <string> | false` - If the value is `false` the package will be published without a custom [tag](https://docs.npmjs.com/cli/v7/commands/npm-publish#tag) (meaning it will be published with the default `latest` tag). If another value is specified it will be used as the tag name otherwise the tag value will be mapped from [following object](https://github.com/servicetitan/uikit/blob/master/packages/startup/src/cli/commands/get-branch-configs.ts#L3). For example, in case of branch name `master` the package will be published with the `prod` tag, etc.
|
|
125
120
|
|
|
126
121
|
#### Other auxiliary mfe-publish commands
|
|
127
122
|
|
|
@@ -368,6 +363,8 @@ Use `webpack.devServer` to set or override `webpack-dev-server` options. E.g.,
|
|
|
368
363
|
}
|
|
369
364
|
```
|
|
370
365
|
|
|
366
|
+
`webpack.devServer` can also be set to `false` in order to disable `webpack-dev-server` altogether.
|
|
367
|
+
|
|
371
368
|
#### Webpack Configuration
|
|
372
369
|
|
|
373
370
|
If you need to add additional rules or change the build output path or make any other customization of the Webpack configuration, you should create `webpack.{env}.config.js` files in the package's root folder. These files should call `createWebpackConfig` with the required configuration.
|
package/docs/web-components.mdx
CHANGED
|
@@ -41,7 +41,7 @@ export const Foo: React.FC = () => {
|
|
|
41
41
|
| `loadingFallbackDelayed` | controls whether to render the loading fallback immediately, or after a short delay [(see below)](#fallback-delay) |
|
|
42
42
|
| `errorFallback` | optional JSX element to render when the MFE fails to load |
|
|
43
43
|
| `className` | additional CSS classes for the MFE web component element |
|
|
44
|
-
| `cache` | optional cache strategy for the MFE [(see below)](#cache)
|
|
44
|
+
| `cache` | optional cache strategy for the MFE [(see below)](#cache-strategy) |
|
|
45
45
|
|
|
46
46
|
#### Loading fallback delay {#fallback-delay}
|
|
47
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-uikit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"cli": {
|
|
17
17
|
"webpack": false
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "7b905cd6ecfd5bb4a748050a83ebd8ca4e185e09"
|
|
20
20
|
}
|