summaryrefslogtreecommitdiff
path: root/examples (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-08-09Astro 1.0.0 (#4214)Gravatar Nate Moore 26-50/+50
* chore: remove changesets patch * chore: add changesets * chore: version packages * chore: normalize formatting * chore: update lockfile * chore: fix codeblocks * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: fixup code samples * chore: move v0.25 message out of note Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-08[ci] release (#4197)astro@1.0.0-rc.8@astrojs/mdx@0.8.0@astrojs/cloudflare@0.5.0Gravatar Fred K. Bot 26-27/+27
* [ci] release * Update CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08Add Astro.generator (#4012)Gravatar Nate Moore 19-0/+19
* feat: add generator property and component * chore: remove `Generator` component * chore: update generator description * chore: include generator in examples * chore: update lockfile * chore: format * fix: do not reference core from server runtime * chore: remove component test Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05[ci] release (#4159)create-astro@0.15.0astro@1.0.0-rc.7@astrojs/react@0.4.3@astrojs/mdx@0.7.0@astrojs/markdown-remark@0.14.1@astrojs/image@0.3.2Gravatar Fred K. Bot 26-33/+33
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-06[ci] formatGravatar FredKSchott 1-0/+1
2022-08-05add charset utf-8Gravatar Kevin Zuniga Cuellar 6-5/+21
2022-08-06[ci] formatGravatar FredKSchott 48-146/+154
2022-08-05update example scripts (#4098)Gravatar Fred K. Schott 34-77/+121
2022-08-05Move types to a .d.ts file inside examples projects (#4171)Gravatar Erika 45-46/+68
* Move types to a .d.ts file to avoid making types explicit * Rename to proper types * Move to proper place * Add noEmit to tsconfig.json * Add back removed code by accident
2022-08-05[markdown] Harder, better, faster, stronger `vite-plugin-markdown` (#4137)Gravatar Ben Holmes 2-5/+6
* refactor: vite-plugin-md -> vite-plugin-md-legacy * wip: add vite-plugin-md * feat: always apply jsx renderer * fix: markHTMLString on VNode result * feat: apply new vite-plugin-markdown! * fix: add meta export to md * fix: remove needless $$metadata export * fix: toggle to legacy plugin on flag * fix: pass fileId to renderMarkdown * test: raw and compiled content on plain md * fix: escape vite env refs * refactor: astro-md -> legacy-astro-flavored-md, astro-md-mode -> astro-markdown * fix: import.meta.env refs with tests * fix: add pkg.json to clientAddress * fix: prefer JSX integration over Astro runtime * Revert "fix: prefer JSX integration over Astro runtime" This reverts commit 3e5fa49344be9c857393da9af095faab152e92e1. * fix: remove .mdx check on importSource * chore: changeset * chore: remove TODO * fix: add back getHeadings * fix: add pkg.json to astro-head fixture * fix: default to Astro renderer for MDX and MD * feat: add "headings" and "frontmatter" to md layouts * refactor: remove legacy flag conditionals from legacy plugin * fix: add back MDX warning when legacy is off * test: getHeadings() glob * fix: add error on "astro.headings" access * feat: update docs example astro.headings => headings * refactor: readFile as string w/ utf-8 * chore: remove astro metadata TODO * refactor: stringify HTML once * fix: add pkg.json to glob-pages-css
2022-08-05[ci] formatGravatar natemoo-re 1-13/+13
2022-08-05Add `getViteConfig` helper (#4154)Gravatar Nate Moore 12-0/+129
* feat: add astro/compat entrypoint for vitest * chore: add with-vitest example * chore: add vitest as optional peer dependency * chore: update lockfile * refactor: remove astro/compat, use astro/config * feat: allow arbitrary modes for `create-vite` * feat: pass vite mode and command when using `getViteConfig` * chore: remove vitest from peer deps * chore: add changeset * chore: update lockfile Co-authored-by: Nate Moore <nate@astro.build>
2022-08-04[ci] formatGravatar Princesseuh 1-1/+7
2022-08-04Audit examples templates (#3940)Gravatar Erika 128-1655/+264
* basics, framework-alpine, framework-solid, delete unused examples * framework-multiple * Remove non-standard file extensions, add missing .vscode folders * Remove robots.txt * Remove blog-multiple-authors * Rewrite components comments to be consistent * Update lockfile * Remove unnecessary usage of SCSS in subpath example * Fix props weirdness in portfolio example * Remove Lit from `framework-multiple` for now * Misc fixes * Update lockfile * I'm in lockfile hell, send help
2022-08-04[ci] release (#4152)astro@1.0.0-rc.6Gravatar Fred K. Bot 28-28/+28
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-03[ci] release (#4133)astro@1.0.0-rc.5@astrojs/mdx@0.6.0@astrojs/image@0.3.1Gravatar Fred K. Bot 28-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-03Add mdx extension to tailwind content glob. (#4063)Gravatar Viktor Persson 1-1/+1
* Add mdx extension to tailwind content glob. * Create wicked-hairs-rescue.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-02[ci] release (#4116)astro@1.0.0-rc.4@astrojs/prism@0.7.0@astrojs/mdx@0.5.0@astrojs/markdown-remark@0.14.0Gravatar Fred K. Bot 28-31/+31
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-30[ci] release (#4086)astro@1.0.0-rc.3@astrojs/mdx@0.4.0@astrojs/markdown-component@0.2.1Gravatar Fred K. Bot 28-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28[ci] release (#4081)create-astro@0.14.3@astrojs/mdx@0.3.1Gravatar Fred K. Bot 1-1/+1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28[ci] release (#4056)astro@1.0.0-rc.2@astrojs/vercel@0.4.0@astrojs/svelte@0.5.1@astrojs/node@0.2.1@astrojs/image@0.3.0@astrojs/cloudflare@0.4.0Gravatar Fred K. Bot 28-32/+32
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-26[ci] release (#3972)create-astro@0.14.2astro@1.0.0-rc.1@astrojs/vue@0.5.0@astrojs/vercel@0.3.0@astrojs/tailwind@0.2.5@astrojs/svelte@0.5.0@astrojs/sitemap@0.3.0@astrojs/prefetch@0.0.6@astrojs/partytown@0.1.9@astrojs/node@0.2.0@astrojs/netlify@0.5.0@astrojs/mdx@0.3.0@astrojs/markdown-remark@0.13.0@astrojs/markdown-component@0.2.0@astrojs/lit@0.3.2@astrojs/image@0.2.0@astrojs/deno@0.2.0@astrojs/cloudflare@0.3.0Gravatar Fred K. Bot 28-44/+44
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-25Add the `output` option (#4015)Gravatar Matthew Phillips 1-0/+1
* Start of work on astroConfig.mode === 'server' * Add tests and more * adapter -> deploy in some places * Add fallback for `adapter` config * Update more tests * Update image tests * Fix clientAddress test * Updates based on PR review * Add a changeset * Update integrations tests + readme * Oops * Remove old option * Rename `mode` to `output` * Update Node adapter test * Update test * fred pass * fred pass * fred pass * fix test Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-24Update `astro` version to `1.0.0-rc.0` (#4030)Gravatar Nate Moore 28-28/+28
* chore: update `astro` to `1.0.0-rc.0` * chore: update `astro` version in examples Co-authored-by: Nate Moore <nate@astro.build>
2022-07-23[ci] formatGravatar natemoo-re 1-1/+3
2022-07-23Rename Markdown util `getHeaders()` to `getHeadings()` (#4031)Gravatar Nate Moore 5-24/+24
* Renamed getHeaders() to getHeadings(), according to RFC #208. * chore: update changeset * fix: expose MarkdownHeading type from `astro` Co-authored-by: Félix Sanz <me@felixsanz.com> Co-authored-by: Nate Moore <nate@astro.build>
2022-07-21[MDX] Add Prism and Shiki support (#4002)Gravatar Ben Holmes 1-0/+12
* deps: add rehype-prism, shiki, rehype-pretty-code * wip: apply rehype plugins depending on config * wip: cherry-pick jsx-runtime fix? * deps: rehype-pretty-code -> shiki-twoslash, add rehype-raw * wip: add jsx-runtime fix * feat: get shiki working! * deps: add @astrojs/prism, prismjs, unist-util-visit * feat: add prism support * example: add small syntax highlight demo to with-mdx * deps: remove rehype-prism * chore: remove unused async * chore: add .test.js to all mdx tests * test: shiki, shikiConfig, prism * fix: remove "is:raw" from prism output * docs: add syntax highlighting section * chore: add changeset * nit: "Shiki config" -> Shiki config Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Revert "wip: add jsx-runtime fix" This reverts commit 07f4528f449281afb7bbc154b09292244795a183. * docs: link to integration README from example Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-07-21[ci] formatGravatar matthewp 3-3/+3
2022-07-21Replace/Rename Astro.canonicalURL with new Astro.url helper (#3959)Gravatar Fred K. Schott 11-11/+18
* add Astro.url * Add examples of how to create the canonicalURL Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-07-20Move the Markdown component to its own package (#3986)Gravatar Matthew Phillips 21-403/+1
* Move the Markdown component to its own package * Update the examples * Updated lockfile * Use is:raw * Add a main field * Update the formatting of the readme * Rename to @astrojs/markdown-component
2022-07-19[ci] formatGravatar FredKSchott 1-1/+1
2022-07-18Migrate to Vite 3 ⚡️ (#3570)Gravatar Matthew Phillips 1-1/+7
* Vite 3 test * deps: bump to Vite beta.1 * refactor: move to use optimizeDeps.force option * refactor: stub out new updateModuleInfo params * nit: remove comment on deprecated Vite feature * nit: remove comment on deprecated vite feature * hail mary: destroy all ssr external / noexternal! * fix: use new middlewareMode config settings * fix: resolve npm package paths for rollup input * wip: revert to unresolved. Issue reported! * sad refactor: use legacy devDepsScanner for component HMR * fix: add astro/components to noExternal for Code component * refactor: use ALWAYS_NOEXTERNAL array * refactor: add package.json to all test runners for noExternal error * deps: bump to latest vite 3 beta * wip: add package.json to smoke * fix: remove accidental "force true" on create-vite * refactor: write smoke package.json programmatically * refactor: add fontsource to noExternal * fix: only add to ssr.noExternal if present in project * wip: what if we just... didn't have a memory test * deps: bump to latest vite beta * Revert "wip: what if we just... didn't have a memory test" This reverts commit 173729dbdc685e52881fc3333487b8f744add55f. * fix: add type check for plugin.name * feat: remove legacy.devDepsScanner. Vite 3 strat is now Vite 2.x strat! * fix: add ssr.noExternal to components ex * wip: ignore with-mdx starter * fix: add serviceEntryPoint to ssr.noExternal * temp: reset NODE_ENV on prod builds * fix: missing async tag * VITE 3 IS STABLE BABY * deps: bump svelte to vite 3 * deps: bump vue to vite 3 * fix: resolve plugins for proper sorting * sad fix: regex "export default" out of CSS ssr * chore: add TODO to understand sad fix * Revert "fix: resolve plugins for proper sorting" This reverts commit e67c194d3a8e11070487ed325947e7c59e8d69cd. * Revert "sad fix: regex "export default" out of CSS ssr" This reverts commit 721d40b62b61440dc9e488787901c915579659db. * fix: sort plugins WITHOUT resolveConfig * Revert "wip: ignore with-mdx starter" This reverts commit 7d4f7338e6a8427934668096dba35e2a06ab961f. * chore: revert memory test changes * chore: add nanostores/preact ot noexternal * chore: changeset * chore: changeset * deps: use Vite ^3.0.0 * fix: add back third party astro pkg scanner Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-18[ci] release (#3939)create-astro@0.14.1astro@1.0.0-beta.73@astrojs/vue@0.4.1@astrojs/telemetry@0.4.1@astrojs/svelte@0.4.1@astrojs/solid-js@0.4.1@astrojs/rss@0.2.2@astrojs/react@0.4.2@astrojs/prism@0.6.1@astrojs/preact@0.5.2@astrojs/mdx@0.2.1@astrojs/markdown-remark@0.12.0@astrojs/image@0.1.3v1-betaGravatar Fred K. Bot 29-58/+58
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-15Handle metadata for MDX files during build (#3915)Gravatar Nate Moore 1-1/+1
* fix: metadata handling for MDX files * chore: add changeset * chore: update mdx example * fix: protect against infinite loops in jsx-runtime, properly hook console.error * chore: remove unused import * feat(mdx): support `client:only` * fix: prefer Symbol.for * fix(jsx): handle vnode check properly * chore: appease ts Co-authored-by: Nate Moore <nate@astro.build>
2022-07-14[ci] release (#3925)astro@1.0.0-beta.72@astrojs/react@0.4.1@astrojs/preact@0.5.1Gravatar Fred K. Bot 29-44/+44
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-14[ci] release (#3921)astro@1.0.0-beta.71@astrojs/markdown-remark@0.11.7Gravatar Fred K. Bot 29-32/+32
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-13[ci] release (#3903)create-astro@0.14.0astro@1.0.0-beta.70@astrojs/vue@0.4.0@astrojs/telemetry@0.4.0@astrojs/svelte@0.4.0@astrojs/solid-js@0.4.0@astrojs/rss@0.2.1@astrojs/react@0.4.0@astrojs/prism@0.6.0@astrojs/preact@0.5.0@astrojs/mdx@0.2.0@astrojs/markdown-remark@0.11.6Gravatar Fred K. Bot 29-58/+58
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12[ci] formatastro@1.0.0-beta.69@astrojs/vue@0.3.1@astrojs/vercel@0.2.6@astrojs/telemetry@0.3.1@astrojs/tailwind@0.2.4@astrojs/svelte@0.3.1@astrojs/solid-js@0.3.1@astrojs/sitemap@0.2.6@astrojs/react@0.3.1@astrojs/prefetch@0.0.5@astrojs/preact@0.4.1@astrojs/partytown@0.1.8@astrojs/node@0.1.6@astrojs/netlify@0.4.10@astrojs/mdx@0.1.1@astrojs/markdown-remark@0.11.5@astrojs/image@0.1.2@astrojs/deno@0.1.10@astrojs/cloudflare@0.2.4Gravatar matthewp 3-9/+9
2022-07-12[ci] release (#3900)Gravatar Fred K. Bot 29-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12Example blog rework (#3896)Gravatar Ben Holmes 19-440/+316
* refactor: restructure components, kill dead code * nit: tweak base styles * nit: remove unneeded code comments * refactor: replace unused permalink with canonicalURL * refactor: add missing prop types * feat: make markdown examples more interesting * chore: consistent semis and quotes * chore: astro check failures * fix: bad url prop * fix: bad frontmatter quote * chore: more dead styles * chore: add header gap * refactor: use tsx for likebutton * fix: restore post sorting * chore: remove unused flex-row util * fix: small md formatting on README * chore: run through astro-plugin-prettier * fix: revert to double quotes * fix: manually move style outside <body> * fix: update file tree in README * refactor: publish-date -> time * refactor: remove unused div and margin * refactor: publishDate -> time on layout * refactor: .heroImage -> img * refactor: .logo -> svg * feat: update social image, remove jpg * fix: remove prism stylesheet!
2022-07-12[ci] release (#3899)Gravatar Fred K. Bot 29-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12[ci] release (#3894)Gravatar Fred K. Bot 29-63/+63
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11Fix: reintroduce smoke tests across example projects (#3669)Gravatar Nate Moore 1-1/+1
* chore: update smoke tests * chore: bump smoke tests to node@16 * chore: remove gitmodules * chore(ci): prefer node@14 * wip: remove path from smoke clone step * feat: run build:examples from test:smoke * fix: remove no-frozen-lockfile * fix: checkout monorepo last for pnpm setup * wip: replace @astrojs/markdown/remark import from md * fix: remove type defs from generated file * fix: function order * chore: remove ssr-utils export * wip: remove windows from smoke test * fix: instantiate slugger in snippet * fix: exclude with-mdx from smoke (for now) * fix: add quotes on filter flag for safety * chore: changeset * wip: try reintroducing windows smoke * sad chore: remove client: directive from with-mdx * Revert "wip: try reintroducing windows smoke" This reverts commit 9529b1a45c007286c22861e106b82200545e4198. Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-11[ci] formatGravatar bholmesdev 4-13/+8
2022-07-11Update `with-nanostores` example to match docs walkthrough (#3840)Gravatar Ben Holmes 23-310/+306
* feat: replace with-nanostores with new example * docs: update README with docs call-out * chore: small formatting inconsistencies * nit: standardize to spaces :'( * nit: standardize to tabs! * refactor: use html "hidden" property * nit: beta.66 for sanity
2022-07-11[ci] release (#3887)create-astro@0.13.0astro@1.0.0-beta.66@astrojs/vue@0.3.0@astrojs/telemetry@0.3.0@astrojs/svelte@0.3.0@astrojs/solid-js@0.3.0@astrojs/react@0.3.0@astrojs/prism@0.5.0@astrojs/preact@0.4.0@astrojs/mdx@0.1.0@astrojs/markdown-remark@0.11.4Gravatar Fred K. Bot 29-62/+62
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11fix: portfolio example JSX error (#3886)Gravatar Tom Lienard 1-2/+2
* fix: portfolio example JSX error * chore: add changeset * chore: update description
2022-07-11Move client types into Astro (#3851)Gravatar Matthew Phillips 28-55/+55
* Move client types into Astro * Adds a changeset * Fix path to local client * Reference vite/client in our HMR types * Add back in the expect-error * Update types comment
2022-07-08[ci] release (#3850)create-astro@0.12.5astro@1.0.0-beta.65@astrojs/vue@0.2.1@astrojs/vercel@0.2.5@astrojs/turbolinks@0.1.4@astrojs/telemetry@0.2.5@astrojs/tailwind@0.2.3@astrojs/svelte@0.2.1@astrojs/solid-js@0.2.1@astrojs/sitemap@0.2.5@astrojs/react@0.2.1@astrojs/prefetch@0.0.4@astrojs/preact@0.3.2@astrojs/partytown@0.1.7@astrojs/node@0.1.5@astrojs/netlify@0.4.9@astrojs/mdx@0.0.3@astrojs/lit@0.3.1@astrojs/image@0.1.0@astrojs/deno@0.1.9@astrojs/cloudflare@0.2.3Gravatar Fred K. Bot 29-68/+68
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-08Format astro files in examples (#3862)Gravatar Marcus Otterström 73-694/+957