diff --git a/package.json b/package.json index 0da11a7..a2481e3 100644 --- a/package.json +++ b/package.json @@ -58,17 +58,17 @@ "esno": "^0.16.3", "hastscript": "^7.0.2", "husky": "^8.0.1", - "pnpm": "^7.7.1", + "pnpm": "^7.8.0", "postcss": "^8.4.14", "postcss-font-grabber": "^3.1.0", "rehype": "^12.0.1", "rehype-external-links": "^2.0.0", "rehype-slug": "^5.0.1", "rehype-urls": "^1.1.1", - "sass": "^1.54.0", + "sass": "^1.54.3", "semantic-release": "^19.0.3", "tiny-glob": "^0.2.9", - "typedoc": "^0.23.9", + "typedoc": "^0.23.10", "typedoc-plugin-extras": "^2.3.0", "typedoc-plugin-inline-sources": "^1.0.1", "typedoc-plugin-mdn-links": "^2.0.0", diff --git a/packages/analysis/package.json b/packages/analysis/package.json index 9a00e05..e4f5ef0 100644 --- a/packages/analysis/package.json +++ b/packages/analysis/package.json @@ -86,17 +86,17 @@ "devDependencies": { "@types/bytes": "^3.1.1", "@types/d3": "^7.4.0", - "@types/node": "^18.6.3", - "@vitest/ui": "^0.19.1", + "@types/node": "^18.6.4", + "@vitest/ui": "^0.20.3", "babel-preset-solid": "^1.4.8", "del-cli": "^5.0.0", - "esbuild-wasm": "^0.14.51", + "esbuild-wasm": "^0.14.53", "esno": "^0.16.3", - "pnpm": "^7.7.1", + "pnpm": "^7.8.0", "typescript": "^4.7.4", "ultra-runner": "^3.10.5", "vite": "^3.0.4", "vite-plugin-solid": "^2.3.0", - "vitest": "^0.19.1" + "vitest": "^0.20.3" } } \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index 8a891b7..f1d6fbd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -85,14 +85,14 @@ "homepage": "https://bundlejs.com", "dependencies": { "@okikio/emitter": "^2.1.7", - "esbuild": "^0.14.51", - "esbuild-wasm": "^0.14.51", + "esbuild": "^0.14.53", + "esbuild-wasm": "^0.14.53", "rollup": "^2.77.2", "solid-js": "^1.4.8" }, "devDependencies": { - "@types/node": "^18.6.3", - "@vitest/ui": "^0.19.1", + "@types/node": "^18.6.4", + "@vitest/ui": "^0.20.3", "cross-fetch": "^3.1.5", "del-cli": "^5.0.0", "esno": "^0.16.3", @@ -101,6 +101,6 @@ "typescript-json-schema": "^0.54.0", "ultra-runner": "^3.10.5", "vite": "^3.0.4", - "vitest": "^0.19.1" + "vitest": "^0.20.3" } } \ No newline at end of file diff --git a/packages/old/package.json b/packages/old/package.json index 5db02e4..5bed74d 100644 --- a/packages/old/package.json +++ b/packages/old/package.json @@ -49,6 +49,6 @@ }, "homepage": "https://bundlejs.com", "dependencies": { - "vite": "^3.0.2" + "vite": "^3.0.4" } } \ No newline at end of file diff --git a/packages/website/astro.config.mjs b/packages/website/astro.config.mjs index 532076c..a8b6591 100644 --- a/packages/website/astro.config.mjs +++ b/packages/website/astro.config.mjs @@ -7,6 +7,7 @@ import Icons from "unplugin-icons/vite"; import Sitemap from "@astrojs/sitemap"; import SolidJS from "@astrojs/solid-js"; import Tailwind from "@astrojs/tailwind"; +import MDX from "@astrojs/mdx"; import { PRODUCTION_MODE } from "./env.mjs"; import { outDir } from "./shared.config.cjs"; @@ -28,80 +29,83 @@ function createSVG(icon, iconlist = fluentIcons) { height: IconData.height, viewBox: `0 0 ${IconData.width} ${IconData.height}`, class: "icon", - "rehype-icon": icon, + "rehype-icon": icon }, [IconData.body]); } // https://astro.build/config export default defineConfig({ outDir, - build: { format: "file" }, + build: { + format: "file" + }, site: "https://bundlejs.com", markdown: { - rehypePlugins: [ - "rehype-slug", - ["rehype-autolink-headings", { - behavior: "append", - properties: { - ariaHidden: true, tabIndex: -1, - "custom-slug-link": "", - }, - content: [createSVG("link-24-regular")], - test: ["h2", "h3", "h4", "h5", "h6", "details", "summary", "astro-root",], - }], - ["rehype-external-links", { - target: "_blank", - rel: ["noopener"], - content: [createSVG("arrow-up-right-24-regular")], - }], - ], + // rehypePlugins: [ + // ["rehype-slug"], + // ["rehype-autolink-headings", { + // behavior: "append", + // properties: { + // ariaHidden: true, + // tabIndex: -1, + // "custom-slug-link": "" + // }, + // content: [createSVG("link-24-regular")], + // test: ["h2", "h3", "h4", "h5", "h6", "details", "summary", "astro-root"] + // }], + // ["rehype-external-links", { + // target: "_blank", + // rel: ["noopener"], + // content: [createSVG("arrow-up-right-24-regular")] + // }] + // ], shikiConfig: { theme: "github-dark", langs: [], - wrap: false, - }, + wrap: false + } }, integrations: [ SolidJS(), - Tailwind({ - config: { - applyBaseStyles: false - } - }), + Tailwind({ config: { applyBaseStyles: false } }), Sitemap(), + MDX() ], - experimental: { integrations: true }, + experimental: { + integrations: true + }, vite: { worker: { format: "es", - rollupOptions: { - output: [{ - format: "es", - entryFileNames: "[name].mjs", - inlineDynamicImports: true - }] - // inlineDynamicImports: true - - } + // rollupOptions: { + // output: [{ + // format: "es", + // entryFileNames: "[name].mjs", + // inlineDynamicImports: true + // }], + // inlineDynamicImports: true + // } }, build: { - assetsInlineLimit: 0, + assetsInlineLimit: 0 + }, + ssr: { + external: ["svgo"] }, - ssr: { external: ["svgo", "github-slugger", "./preload-helper"] }, plugins: [ AutoImport({ resolvers: [ IconsResolver({ prefix: "Icon", - extension: "tsx", - }), - ], + extension: "tsx" + }) + ] }), Icons({ autoInstall: true, compiler: "solid", - defaultClass: "icon", + defaultClass: "icon" }) - ], - }, -}); + ] + } +}); \ No newline at end of file diff --git a/packages/website/package.json b/packages/website/package.json index 4cf41e3..c3a6cb6 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -21,35 +21,37 @@ "@okikio/sharedworker": "^1.0.4", "@typescript/vfs": "^1.3.5", "countapi-js": "^1.0.2", - "monaco-editor": "^0.33.0", - "solid-js": "^1.4.7", + "monaco-editor": "^0.34.0", + "solid-js": "^1.4.8", "tippy.js": "^6.3.7", - "workbox-window": "^6.5.3" + "workbox-window": "^6.5.4" }, "devDependencies": { - "@astrojs/sitemap": "^0.2.6", + "@astrojs/mdx": "^0.6.0", + "@astrojs/sitemap": "^0.3.0", "@astrojs/solid-js": "^0.4.1", - "@astrojs/tailwind": "^0.2.4", - "@babel/core": "^7.18.9", - "@iconify/json": "^2.1.80", - "astro": "0.0.0-rc-20220720044556", + "@astrojs/tailwind": "^0.2.5", + "@astropub/flow": "^0.2.2", + "@babel/core": "^7.18.10", + "@iconify/json": "^2.1.87", + "astro": "1.0.0-rc.6", "astro-icon": "^0.7.3", "astro-service-worker": "^0.1.2", - "autoprefixer": "^10.4.7", + "autoprefixer": "^10.4.8", "esno": "^0.16.3", "hastscript": "^7.0.2", - "pnpm": "^7.5.2", + "pnpm": "^7.8.0", "postcss": "^8.4.14", "postcss-font-grabber": "^3.1.0", "rehype-autolink-headings": "^6.1.1", "rehype-external-links": "^2.0.0", "rehype-slug": "^5.0.1", - "sass": "^1.53.0", + "sass": "^1.54.3", "typescript": "^4.7.4", "ultra-runner": "^3.10.5", - "unplugin-auto-import": "^0.9.4", - "unplugin-icons": "^0.14.7", - "vite": "^3.0.2", - "vitest": "^0.18.1" + "unplugin-auto-import": "^0.10.3", + "unplugin-icons": "^0.14.8", + "vite": "^3.0.4", + "vitest": "^0.20.3" } } diff --git a/packages/website/src/components/DocsSection/Snippets.astro b/packages/website/src/components/DocsSection/Snippets.astro index e3d580e..50e3c8b 100644 --- a/packages/website/src/components/DocsSection/Snippets.astro +++ b/packages/website/src/components/DocsSection/Snippets.astro @@ -3,7 +3,7 @@ import Snippet from './Snippet.astro'; // @ts-ignore -let snippets = await Astro.glob('../../snippets/*.md'); +// let snippets = await Astro.glob('../../snippets/*.mdx'); let sortFn = (a, b) => { let aPriority = a.frontmatter.priority as number; @@ -18,7 +18,7 @@ let sortFn = (a, b) => { ---
- { +