@rspress/core 2.0.0-beta.27 → 2.0.0-beta.29
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 +17 -1
- package/dist/{94.js → 101.js} +3 -2
- package/dist/{208.js → 220.js} +3 -2
- package/dist/{309.js → 335.js} +2 -1
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +288 -288
- package/dist/loader.d.ts +3 -3
- package/dist/processor.d.ts +3 -3
- package/dist/processor.js +13 -16
- package/dist/renderPageWorker.js +2 -2
- package/dist/runtime/App.js +3 -3
- package/dist/runtime/ClientApp.d.ts +2 -2
- package/dist/runtime/ClientApp.js +4 -4
- package/dist/runtime/initPageData.d.ts +3 -2
- package/dist/runtime/initPageData.js +20 -26
- package/dist/runtime/ssrServerEntry.d.ts +0 -2
- package/dist/runtime/ssrServerEntry.js +5 -6
- package/package.json +11 -15
package/README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<img alt="Rspress Banner" src="https://assets.rspack.rs/rspress/rspress-banner.png">
|
|
3
|
+
</picture>
|
|
4
|
+
|
|
1
5
|
# @rspress/core
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
A fast Rsbuild-based static site generator.
|
|
8
|
+
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
See [Documentation](https://rspress.rs/).
|
|
12
|
+
|
|
13
|
+
## Contributing
|
|
14
|
+
|
|
15
|
+
Please read the [Contributing Guide](https://github.com/web-infra-dev/rspress/blob/main/CONTRIBUTING.md).
|
|
16
|
+
|
|
17
|
+
## License
|
|
18
|
+
|
|
19
|
+
Rspress is [MIT licensed](https://github.com/web-infra-dev/rspress/blob/main/LICENSE).
|
package/dist/{94.js → 101.js}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export const __webpack_id__ = "101";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
|
-
"
|
|
3
|
+
"101"
|
|
3
4
|
];
|
|
4
5
|
export const __webpack_modules__ = {
|
|
5
6
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
@@ -434,7 +435,7 @@ export const __webpack_modules__ = {
|
|
|
434
435
|
},
|
|
435
436
|
"../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
436
437
|
__webpack_require__.d(__webpack_exports__, {
|
|
437
|
-
|
|
438
|
+
Ho: ()=>execa
|
|
438
439
|
});
|
|
439
440
|
var external_node_buffer_ = __webpack_require__("node:buffer");
|
|
440
441
|
var external_node_path_ = __webpack_require__("node:path");
|
package/dist/{208.js → 220.js}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export const __webpack_id__ = "220";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
|
-
"
|
|
3
|
+
"220"
|
|
3
4
|
];
|
|
4
5
|
export const __webpack_modules__ = {
|
|
5
6
|
"./src/node/last-updated/index.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
@@ -13,7 +14,7 @@ export const __webpack_modules__ = {
|
|
|
13
14
|
async function getGitLastUpdatedTimeStamp(filePath) {
|
|
14
15
|
let lastUpdated;
|
|
15
16
|
try {
|
|
16
|
-
const { stdout } = await (0, execa__WEBPACK_IMPORTED_MODULE_0__.
|
|
17
|
+
const { stdout } = await (0, execa__WEBPACK_IMPORTED_MODULE_0__.Ho)('git', [
|
|
17
18
|
'log',
|
|
18
19
|
'-1',
|
|
19
20
|
'--format=%at',
|
package/dist/{309.js → 335.js}
RENAMED
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import picocolors from "picocolors";
|
|
|
6
6
|
import { build, dev, serve } from "./index.js";
|
|
7
7
|
import node_fs from "node:fs";
|
|
8
8
|
import { DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME } from "@rspress/shared/constants";
|
|
9
|
-
var package_namespaceObject = JSON.parse('{"
|
|
9
|
+
var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.29"}');
|
|
10
10
|
const findConfig = (basePath)=>DEFAULT_CONFIG_EXTENSIONS.map((ext)=>basePath + ext).find(node_fs.existsSync);
|
|
11
11
|
async function loadConfigFile(customConfigFile) {
|
|
12
12
|
const baseDir = process.cwd();
|
|
@@ -42,8 +42,8 @@ const META_FILES = [
|
|
|
42
42
|
'_meta.json',
|
|
43
43
|
'_nav.json'
|
|
44
44
|
];
|
|
45
|
-
const cli = cac('rspress').version(package_namespaceObject.
|
|
46
|
-
const landingMessage = `\u{1F525} Rspress v${package_namespaceObject.
|
|
45
|
+
const cli = cac('rspress').version(package_namespaceObject.rE).help();
|
|
46
|
+
const landingMessage = `\u{1F525} Rspress v${package_namespaceObject.rE}\n`;
|
|
47
47
|
logger.greet(landingMessage);
|
|
48
48
|
const setNodeEnv = (env)=>{
|
|
49
49
|
process.env.NODE_ENV = env;
|
package/dist/index.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ export declare class RouteService {
|
|
|
231
231
|
addRoute(routePage: RoutePage): Promise<void>;
|
|
232
232
|
getRoutes(): RouteMeta[];
|
|
233
233
|
getRoutePages(): RoutePage[];
|
|
234
|
-
isExistRoute(
|
|
234
|
+
isExistRoute(link: string): boolean;
|
|
235
235
|
generateRoutesCode(): string;
|
|
236
236
|
private generateRoutesCodeByRouteMeta;
|
|
237
237
|
getRoutePathParts(relativePath: string): string[];
|