@bbki.ng/site 1.0.15 → 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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbki.ng/site",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "code behind bbki.ng",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@bbki.ng/stylebase": "workspace:0.0.19",
|
|
31
31
|
"@mdx-js/mdx": "2.0.0-next.9",
|
|
32
32
|
"@mdx-js/react": "^1.6.22",
|
|
33
|
+
"@mdx-js/rollup": "3.0.0",
|
|
33
34
|
"@tailwindcss/typography": "^0.5.0",
|
|
34
35
|
"@types/jest": "^27.0.3",
|
|
35
36
|
"@types/node": "^16.11.1",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"rehype-autolink-headings": "^6.1.1",
|
|
47
48
|
"rehype-highlight": "^5.0.0",
|
|
48
49
|
"rehype-slug": "^5.0.1",
|
|
49
|
-
"remark-frontmatter": "
|
|
50
|
+
"remark-frontmatter": "5.0.0",
|
|
50
51
|
"remark-gfm": "^3.0.0",
|
|
51
52
|
"remark-mdx-frontmatter": "^1.0.1",
|
|
52
53
|
"remark-parse": "^10.0.0",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"tailwindcss": "^3.0.7",
|
|
56
57
|
"ts-jest": "^27.1.1",
|
|
57
58
|
"typescript": "^4.5.4",
|
|
58
|
-
"vite": "
|
|
59
|
+
"vite": "5.0.0",
|
|
59
60
|
"vite-plugin-mdx": "^3.5.8",
|
|
60
61
|
"vite-plugin-pwa": "^0.11.3",
|
|
61
62
|
"workbox-window": "^6.3.0"
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { defineConfig } from "vite";
|
|
3
3
|
import { VitePWA } from "vite-plugin-pwa";
|
|
4
|
-
import mdx from "
|
|
4
|
+
import mdx from "@mdx-js/rollup";
|
|
5
5
|
import remarkGfm from "remark-gfm";
|
|
6
6
|
import remarkParse from "remark-parse";
|
|
7
7
|
import remarkToc from "remark-toc";
|
|
8
|
-
import
|
|
8
|
+
import remarkFrontMatter from "remark-frontmatter";
|
|
9
9
|
import { remarkMdxFrontmatter } from "remark-mdx-frontmatter";
|
|
10
10
|
import rehypeSlug from "rehype-slug";
|
|
11
11
|
import rehypeHighlight from "rehype-highlight";
|
|
@@ -13,11 +13,10 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
|
|
13
13
|
import react from "@vitejs/plugin-react";
|
|
14
14
|
|
|
15
15
|
const options = {
|
|
16
|
-
// See https://mdxjs.com/advanced/plugins
|
|
17
16
|
remarkPlugins: [
|
|
18
17
|
remarkParse,
|
|
19
18
|
[remarkToc, { maxDepth: 3, heading: "目录", tight: true }],
|
|
20
|
-
[
|
|
19
|
+
[remarkFrontMatter, { type: "yaml", marker: "-" }],
|
|
21
20
|
[remarkMdxFrontmatter, { name: "meta" }],
|
|
22
21
|
remarkGfm,
|
|
23
22
|
],
|
|
@@ -47,11 +46,11 @@ export default defineConfig({
|
|
|
47
46
|
GLOBAL_BBKING_VERSION: JSON.stringify(process.env.npm_package_version),
|
|
48
47
|
},
|
|
49
48
|
esbuild: {
|
|
50
|
-
logOverride: {
|
|
49
|
+
logOverride: { "this-is-undefined-in-esm": "silent" },
|
|
51
50
|
},
|
|
52
51
|
plugins: [
|
|
53
52
|
react(),
|
|
54
|
-
|
|
53
|
+
mdx(options),
|
|
55
54
|
VitePWA({
|
|
56
55
|
includeAssets: [
|
|
57
56
|
"favicon.svg",
|