@alauda/doom 1.0.3 → 1.1.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/global.d.ts +15 -0
- package/lib/cli/load-config.js +8 -1
- package/package.json +3 -1
package/global.d.ts
CHANGED
|
@@ -2,3 +2,18 @@
|
|
|
2
2
|
/// <reference types="@alauda/doom/types" />
|
|
3
3
|
|
|
4
4
|
type MDXProvidedComponents = typeof import('@alauda/doom/runtime')
|
|
5
|
+
|
|
6
|
+
declare module '*.module.scss' {
|
|
7
|
+
const classes: { [key: string]: string }
|
|
8
|
+
export default classes
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module '*.svg' {
|
|
12
|
+
const content: string
|
|
13
|
+
export default content
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module '*.svg?react' {
|
|
17
|
+
const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>
|
|
18
|
+
export default ReactComponent
|
|
19
|
+
}
|
package/lib/cli/load-config.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { pluginReact } from '@rsbuild/plugin-react';
|
|
3
4
|
import { pluginSass } from '@rsbuild/plugin-sass';
|
|
5
|
+
import { pluginSvgr } from '@rsbuild/plugin-svgr';
|
|
4
6
|
import { pluginYaml } from '@rsbuild/plugin-yaml';
|
|
5
7
|
import { addLeadingSlash, addTrailingSlash, normalizeSlash, removeLeadingSlash, } from '@rspress/core';
|
|
6
8
|
import { pluginAlgolia } from '@rspress/plugin-algolia';
|
|
@@ -200,7 +202,12 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
|
|
|
200
202
|
dev: {
|
|
201
203
|
lazyCompilation: lazy,
|
|
202
204
|
},
|
|
203
|
-
plugins: [pluginSass(), pluginYaml()],
|
|
205
|
+
plugins: [pluginReact(), pluginSass(), pluginSvgr(), pluginYaml()],
|
|
206
|
+
resolve: {
|
|
207
|
+
alias: {
|
|
208
|
+
classnames$: 'clsx',
|
|
209
|
+
},
|
|
210
|
+
},
|
|
204
211
|
server: {
|
|
205
212
|
open,
|
|
206
213
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/doom",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Doctor Doom making docs.",
|
|
6
6
|
"repository": "git+https://github.com/alauda/doom.git",
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
"@inquirer/prompts": "^7.5.3",
|
|
40
40
|
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
|
|
41
41
|
"@playwright/browser-chromium": "^1.52.0",
|
|
42
|
+
"@rsbuild/plugin-react": "^1.3.2",
|
|
42
43
|
"@rsbuild/plugin-sass": "^1.3.2",
|
|
44
|
+
"@rsbuild/plugin-svgr": "^1.2.0",
|
|
43
45
|
"@rsbuild/plugin-yaml": "^1.0.2",
|
|
44
46
|
"@rspress/core": "2.0.0-beta.11",
|
|
45
47
|
"@rspress/plugin-algolia": "2.0.0-beta.11",
|