@lynx-js/rspeedy 0.8.4 → 0.8.6
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/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/lib/config/dev/index.d.ts +40 -0
- package/lib/config/rsbuild/index.js +2 -0
- package/lib/config/server/index.d.ts +6 -0
- package/lib/config/validate.js +3460 -3392
- package/lib/create-rspeedy.d.ts +9 -2
- package/lib/create-rspeedy.js +2 -1
- package/lib/plugins/rsdoctor.plugin.js +12 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.8.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support `dev.progressBar` ([#307](https://github.com/lynx-family/lynx-stack/pull/307))
|
|
8
|
+
|
|
9
|
+
Whether to display progress bar during compilation.
|
|
10
|
+
|
|
11
|
+
Defaults to `true`.
|
|
12
|
+
|
|
13
|
+
- support load `.env` file by default ([#233](https://github.com/lynx-family/lynx-stack/pull/233))
|
|
14
|
+
|
|
15
|
+
- Support `server.strictPort` ([#303](https://github.com/lynx-family/lynx-stack/pull/303))
|
|
16
|
+
|
|
17
|
+
When a port is occupied, Rspeedy will automatically increment the port number until an available port is found.
|
|
18
|
+
|
|
19
|
+
Set strictPort to true and Rspeedy will throw an exception when the port is occupied.
|
|
20
|
+
|
|
21
|
+
## 0.8.5
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Bump Rsdoctor v1.0.0. ([#250](https://github.com/lynx-family/lynx-stack/pull/250))
|
|
26
|
+
|
|
3
27
|
## 0.8.4
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Visit [Lynx Website](https://lynxjs.org/rspeedy/index) to view the full document
|
|
|
25
25
|
|
|
26
26
|
## Contributing
|
|
27
27
|
|
|
28
|
-
Contributions to Rspeedy are welcome and highly appreciated. However, before you jump right into it, we would like you to review our [Contribution Guidelines](/
|
|
28
|
+
Contributions to Rspeedy are welcome and highly appreciated. However, before you jump right into it, we would like you to review our [Contribution Guidelines](/CONTRIBUTING.md) to make sure you have a smooth experience contributing to Rspeedy.
|
|
29
29
|
|
|
30
30
|
## License
|
|
31
31
|
|
|
@@ -130,4 +130,44 @@ export interface Dev {
|
|
|
130
130
|
* ```
|
|
131
131
|
*/
|
|
132
132
|
writeToDisk?: boolean | ((filename: string) => boolean) | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Whether to display progress bar during compilation.
|
|
135
|
+
*
|
|
136
|
+
* Defaults to `true`.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
*
|
|
140
|
+
* Disable the progress bar.
|
|
141
|
+
*
|
|
142
|
+
* ```js
|
|
143
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
144
|
+
*
|
|
145
|
+
* export default defineConfig({
|
|
146
|
+
* dev: {
|
|
147
|
+
* progressBar: false,
|
|
148
|
+
* },
|
|
149
|
+
* })
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
*
|
|
154
|
+
* Modify the progress bar `id`
|
|
155
|
+
*
|
|
156
|
+
* To modify the text displayed on the left side of the progress bar, set the `id` option:
|
|
157
|
+
*
|
|
158
|
+
* ```js
|
|
159
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
160
|
+
*
|
|
161
|
+
* export default defineConfig({
|
|
162
|
+
* dev: {
|
|
163
|
+
* progressBar: {
|
|
164
|
+
* id: 'Some Text'
|
|
165
|
+
* },
|
|
166
|
+
* },
|
|
167
|
+
* })
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
progressBar?: boolean | {
|
|
171
|
+
id?: string;
|
|
172
|
+
} | undefined;
|
|
133
173
|
}
|
|
@@ -9,6 +9,7 @@ export function toRsbuildConfig(config) {
|
|
|
9
9
|
watchFiles: config.dev?.watchFiles,
|
|
10
10
|
// We expect to use different default writeToDisk with Rsbuild
|
|
11
11
|
writeToDisk: config.dev?.writeToDisk ?? true,
|
|
12
|
+
progressBar: config.dev?.progressBar ?? true,
|
|
12
13
|
},
|
|
13
14
|
environments: config.environments ?? { lynx: {} },
|
|
14
15
|
mode: config.mode,
|
|
@@ -44,6 +45,7 @@ export function toRsbuildConfig(config) {
|
|
|
44
45
|
headers: config.server?.headers,
|
|
45
46
|
host: config.server?.host,
|
|
46
47
|
port: config.server?.port,
|
|
48
|
+
strictPort: config.server?.strictPort,
|
|
47
49
|
},
|
|
48
50
|
plugins: config.plugins,
|
|
49
51
|
performance: {
|
|
@@ -66,4 +66,10 @@ export interface Server {
|
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
68
|
port?: number | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* When a port is occupied, Rspeedy will automatically increment the port number until an available port is found.
|
|
71
|
+
*
|
|
72
|
+
* Set strictPort to true and Rspeedy will throw an exception when the port is occupied.
|
|
73
|
+
*/
|
|
74
|
+
strictPort?: boolean | undefined;
|
|
69
75
|
}
|