diff --git a/packages/astro/performance/fixtures/mdoc/astro.config.mjs b/packages/astro/performance/fixtures/mdoc/astro.config.mjs new file mode 100644 index 000000000..f72b4daa3 --- /dev/null +++ b/packages/astro/performance/fixtures/mdoc/astro.config.mjs @@ -0,0 +1,7 @@ +import { defineConfig } from 'astro/config'; +import markdoc from "@astrojs/markdoc"; + +// https://astro.build/config +export default defineConfig({ + integrations: [markdoc()] +}); diff --git a/packages/astro/performance/fixtures/mdoc/package.json b/packages/astro/performance/fixtures/mdoc/package.json new file mode 100644 index 000000000..968b237fe --- /dev/null +++ b/packages/astro/performance/fixtures/mdoc/package.json @@ -0,0 +1,18 @@ +{ + "name": "@performance/mdoc", + "version": "1.0.0", + "description": "", + "main": "index.js", + "private": true, + "scripts": { + "build": "astro build --perf" + }, + "keywords": [], + "author": "", + "license": "unlicensed", + "dependencies": { + "@performance/utils": "^0.0.0", + "astro": "^2.0.12", + "@astrojs/markdoc": "^0.0.0" + } +} diff --git a/packages/astro/performance/fixtures/mdoc/src/env.d.ts b/packages/astro/performance/fixtures/mdoc/src/env.d.ts new file mode 100644 index 000000000..c13bd73c7 --- /dev/null +++ b/packages/astro/performance/fixtures/mdoc/src/env.d.ts @@ -0,0 +1,2 @@ +/// +/// \ No newline at end of file diff --git a/packages/astro/performance/fixtures/mdoc/src/pages/index.astro b/packages/astro/performance/fixtures/mdoc/src/pages/index.astro new file mode 100644 index 000000000..e76157139 --- /dev/null +++ b/packages/astro/performance/fixtures/mdoc/src/pages/index.astro @@ -0,0 +1,8 @@ +--- +import { getCollection } from 'astro:content'; +import { RenderContent } from '@performance/utils'; + +const posts = await getCollection('generated'); +--- + + diff --git a/packages/astro/performance/fixtures/mdx/astro.config.mjs b/packages/astro/performance/fixtures/mdx/astro.config.mjs new file mode 100644 index 000000000..9ad2214fd --- /dev/null +++ b/packages/astro/performance/fixtures/mdx/astro.config.mjs @@ -0,0 +1,7 @@ +import { defineConfig } from 'astro/config'; +import mdx from "@astrojs/mdx"; + +// https://astro.build/config +export default defineConfig({ + integrations: [mdx()] +}); \ No newline at end of file diff --git a/packages/astro/performance/fixtures/mdx/package.json b/packages/astro/performance/fixtures/mdx/package.json new file mode 100644 index 000000000..8ea312ab8 --- /dev/null +++ b/packages/astro/performance/fixtures/mdx/package.json @@ -0,0 +1,18 @@ +{ + "name": "@performance/mdx", + "version": "1.0.0", + "description": "", + "main": "index.js", + "private": true, + "scripts": { + "build": "astro build --perf" + }, + "keywords": [], + "author": "", + "license": "unlicensed", + "dependencies": { + "@astrojs/mdx": "^0.16.2", + "@performance/utils": "^0.0.0", + "astro": "^2.0.12" + } +} diff --git a/packages/astro/performance/fixtures/mdx/src/env.d.ts b/packages/astro/performance/fixtures/mdx/src/env.d.ts new file mode 100644 index 000000000..c13bd73c7 --- /dev/null +++ b/packages/astro/performance/fixtures/mdx/src/env.d.ts @@ -0,0 +1,2 @@ +/// +/// \ No newline at end of file diff --git a/packages/astro/performance/fixtures/mdx/src/pages/index.astro b/packages/astro/performance/fixtures/mdx/src/pages/index.astro new file mode 100644 index 000000000..e76157139 --- /dev/null +++ b/packages/astro/performance/fixtures/mdx/src/pages/index.astro @@ -0,0 +1,8 @@ +--- +import { getCollection } from 'astro:content'; +import { RenderContent } from '@performance/utils'; + +const posts = await getCollection('generated'); +--- + +