summaryrefslogtreecommitdiff
path: root/examples (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-05-27Example: Docs template (#226)Gravatar Nate Moore 20-212/+1197
* fix: markdown issues * wip: add docs example * example: update doc template * chore: credit Steph for AvatarList * chore: align footer to bottom viewport * chore: feeback R1 * fix: font fallback in firefox * fix merge conflicts * fix: add default value to headers * chore: fix doc example
2021-05-26Renderer plugins (#231)Gravatar Nate Moore 7-19/+28
* refactor: pluggable renderers * refactor: cache renderer per component * docs: update comments on snowpack plugin `transform` method * docs: add comments to renderer plugins * refactor: convert components to Map * fix: pass children through to astro __render * refactor: move Components/ComponentInfo to shared types * refactor: remove `gatherRuntimes` step, just scan output for imports * refactor: update isComponentTag logic * chore: move dependencies to renderers * fix: cross-platform transform injection * feat: defer renderer to react, fallback to preact * fix: use double quotes in generated script * test: fix failing children tests * test: add workspaceRoot to all tests * fix: pass props to renderer check * chore: add test:core script back for convenience * chore: remove unused external * chore: rename renderers * chore: add astring, estree-util-value-to-estree * chore: render-component => __astro_component * refactor: split hydrate logic to own file * refactor: use `astro-fragment` rather than `div` * chore: remove unused hooks * chore: delete unused file * chore: add changesets * fix: Astro renderer should be async * fix: remove <astro-fragment> for static content * test: fix failing test * chore: normalize config interface * feat: allow renderers to inject a snowpackPlugin * fix: resolve import URL before using dynamic import * refactor: update renderers to use separate /server entrypoint * refactor: update server renderer interface * fix: get renderers working again * test: debug failing test * test: better debug * test: better debug * test: remove debug * fix: support esm and cjs packages via "resolve" * refactor: split hydrate functions into individual files * fix: dependency resolution relative to projectRoot * fix: @snowpack/plugin-postcss needs to be hoisted * fix: do not test prettier-plugin-astro as it's not ready for primetime
2021-05-24ReleaseGravatar Matthew Phillips 7-8/+8
2021-05-24Fix markdown syntax issues (#234)Gravatar Matthew Phillips 2-2/+2
This fixes #233 among other things
2021-05-21Revert stylegen (#228)Gravatar Drew Powers 1-1/+1
2021-05-21Add Tailwind support to Astro Dev Server (#222)Gravatar Drew Powers 7-30/+11
* Improve PostCSS and Tailwind support * Update styling docs * Changelog * Fix test hanging
2021-05-17Improve blog template (#217)Gravatar Drew Powers 43-283/+419
2021-05-17chore: release v0.10.0Gravatar Nate Moore 7-8/+8
2021-05-17chore: version packagesGravatar Nate Moore 7-8/+8
2021-05-17Version Packages (#213)Gravatar github-actions[bot] 7-8/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-17[ci] yarn formatGravatar natemoo-re 1-1/+6
2021-05-17Fix markdown issues (#208)Gravatar Nate Moore 15-0/+540
* Init fix/markdown * Astro Markdown (#207) * Add Astro Markdown to VSCode Extension * Add Astro Markdown to Astro * refactor: update astro-markdown example * feat: remove embedded components from `.md` files * fix: resolve `.md.astro` files at runtime * chore: update markdown tests * feat: add <Markdown> component * chore: bump examples * chore: update example * fix: improve Markdown child handling * feat: harden markdown support, add code fence support, add automatic dedenting * chore: add weird markdown edge cases * chore: update remote-markdown examples * chore: add comment to Markdown.astro * feat: improve markdown support (codefences, nested inside HTML) * refactor: extract import specifier types to set * refactor: conditionally import markdown renderer * refactor: revert special-cased "astro/components" * refactor: revert special-cased "astro/components" * refactor: use astro/components/Markdown.astro * refactor: remove `.md.astro` support in favor of Markdown component * refactor: use regular .astro files * refactor: remove unused code * refactor: move Markdown inside Layout * wip: markdown scoped styles * feat: improve scoped styles in Markdown * feat: micromark => remark ecosystem * fix: markdown build * fix: markdown build * chore: add todo * fix: collect headers text * docs: add Markdown doc * chore: add changeset * docs: improve Markdown highlighting * refactor: prefer Set * refactor: exclude large unified deps * docs: update markdown docs Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com> * chore: remove extra markdown deps * perf: optimize markdown * fix: unified/rehype deps * temp: fix markdown test * test: add TODO comment * fix: do not namespace frontmatter, just astro metadata * test: fix astro-markdown test * test: add realworld markdown example * fix: prism language bug * docs: update markdown docs * chore: bump dependencies * fix: escape codespan * fix: unterminated string literal * fix(vscode): inline dependencies * fix(vscode): dependencies * feat(vscode): embedded markdown * feat: add Markdown syntax highlighting * chore: improve markdown example * fix: markdown example * feat: highlighting improvements * chore: add changeset * fix: CodeBlock => CodeSpan * chore: get astro-markdown example running Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-05-13Version Packages (#195)Gravatar github-actions[bot] 5-6/+6
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-11Add Astro.request.canonicalURL and Astro.site to global (#199)Gravatar Drew Powers 3-1/+12
2021-05-11Fix portfolio example (#196)Gravatar Drew Powers 2-3/+5
2021-05-07Improve Snowpack docs styling (#180)Gravatar Drew Powers 32-931/+597
2021-05-06Add CSS bundling (#172)Gravatar Drew Powers 5-6/+6
* Add CSS bundling * Add Changeset * Update build script * Count better * Fix stats * Cleanup * Add test * Show profile ms under 750ms
2021-05-04chore: version packagesGravatar Nate Moore 5-6/+6
2021-05-04Fix `fetchContent` for nested files (#171)Gravatar Nate Moore 1-0/+23
* fix: fetchContent within nested folders * feat: add `sourceId` to fetchContent * test: update collection tests * fix: windows compat for importPath * chore: add changeset * fix: astroRoot => projectRoot * feat: add `slash` package * chore: remove sourceId prop * chore: update changeset * format
2021-05-04chore: version packagesGravatar Nate Moore 5-6/+6
2021-05-03Format (#167)Gravatar Drew Powers 8-51/+60
2021-05-03`create-astro` UI (#164)Gravatar Nate Moore 10-274/+0
* refactor: improve create-astro layout, build script * feat(create-astro): v0.1.0 * docs(create-astro): add README * feat(create-astro): add meta files to starter templates
2021-04-30Migrate to `yarn` monorepo (#157)Gravatar Nate Moore 14-22225/+53
* chore: use monorepo * chore: scaffold astro-scripts * chore: move tests inside packages/astro * chore: refactor tests, add scripts * chore: move parser to own module * chore: move runtime to packages/astro * fix: move parser to own package * test: fix prettier-plugin-astro tests * fix: tests * chore: update package-lock * chore: add changesets * fix: cleanup examples * fix: starter example * chore: update changeset config * chore: update changeset config * chore: setup changeset release workflow * chore: bump lockfiles * chore: prism => astro-prism * fix: tsc --emitDeclarationOnly * chore: final cleanup, switch to yarn * chore: add lerna * chore: update workflows to yarn * chore: update workflows * chore: remove lint workflow * chore: add astro-dev script * chore: add symlinked README
2021-04-30Add portfolio example (#140)Gravatar Drew Powers 20-0/+902
* Add portfolio example * Feedback
2021-04-30Fix Svelte bundled behavior (#151)Gravatar Nate Moore 1-41/+34
* build: add svelte to dynamic component imports * fix: svelte bundling * fix: ensure svelte runtime is bundled with build * fix: svelte runtime in dev mode * fix: include svelte runtime in imports Co-authored-by: Duncan Healy <duncan.healy@gmail.com>
2021-04-29example blog add buildoptions (#142)Gravatar duncanhealy 1-1/+8
* examples: add astroRoot to blog example * example: add astro config for `npm run build` #141
2021-04-27Minimal `create-astro` CLI (#136)Gravatar Nate Moore 1-0/+16
* feat: add minimal create-astro CLI * docs: update readme
2021-04-27add starter template (#135)Gravatar Nate Moore 9-0/+255
2021-04-26Update defaults directory structure to `src` and `dist` (#132)Gravatar Nate Moore 107-9/+17
* chore: update defaults in docs * chore: update config defaults * test: update tests to config defaults * chore: update gitignore to new defaults * docs: update readme to new defaults * chore: update examples to new defaults * chore: update default exclude in lang server * chore: update tests * test: fix failing tests * chore: update www defaults
2021-04-26Support 500 pages in the dev server (#131)Gravatar Matthew Phillips 4-0/+10
* Support 500 pages * Document custom 400/500 pages * Remove search from any pages not the 500 page * fix(kitchen-sink): add snowpack.config.js * fix(examples): add snowpack.config.js * style: redesign built-in 500 page Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-23First Pass at LSP (#129)Gravatar Nate Moore 3-2/+3
* feat(lsp): add HTML features to LSP * chore: add language server license * feat(lsp): add folding ranges, scaffold TS features * feat(lsp): TypeScript Language Service setup * refactor(lsp): cleanup typescript completion providr * chore: format * chore: cleanup eslint * fix: license * chore: remove comment * chore: add marketplace info * chore: publish
2021-04-23Support the /404 route in the dev server (#128)Gravatar Matthew Phillips 1-1/+1
* Support the /404 route in the dev server * Fix status code * Formatting
2021-04-23Add RSS generation (#123)Gravatar Drew Powers 1-1/+12
2021-04-21Add sitemap generation (#120)Gravatar Drew Powers 1-0/+3
* Add sitemap generation * Update README * Fix index handling, sort sitemap * Add --no-sitemap CLI flag (and config option)
2021-04-21Prettier support for `.astro` files (#106)Gravatar Nate Moore 1-9/+9
* docs: fix readme * chore: scaffold prettier plugin * chore(prettier): switch to cjs * test(prettier): scaffold prettier tests * test(prettier): add simple prettier tests * feat(prettier): first pass * refactor: expose parser as CJS export * test(prettier): add long expression * refactor(prettier): use Astro parser + built-in prettier doc for prettier plugin * chore: remove parser from git * chore: add prettier-plugin-astro `build` to workflow * chore: update package-lock * chore: do not build prettier-plugin-astro * fix: update engines * chore: remove NPM restriction * chore: fix workflow paths * chore: update build script * test: fix prettier expr test * chore: fix parser build on windows * refactor: add parser tsconfig, extending base config * chore: relax ban-ts-comment * chore: fix lint issue Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-19Fix dynamic React components (#111)Gravatar Matthew Phillips 2-752/+1250
Another change in snowpack@3 caused this bug. It's not actually a bug in snowpack. Previously snowpack was keeping its list of installed packages in a global cache. In 3.3 it stopped doing so. We were accidentally relying on that global cache to be able to resolve dynamic components. This fixes it so that we use the frontend snowpack instance to resolve dynamic components. Doing so means they are available when we try to load them.
2021-04-16Pass mode into snowpack runtime (#99)Gravatar Matthew Phillips 1-211/+1192
* Pass the `mode` through to snowpack This allows the production packages to be prepared. * Use snowpack 3.3.1 * Update path to prism loadComponents external ref * Upgrade to snowpack 3.3.2
2021-04-15Support children inside of components (#72)Gravatar Nate Moore 9-230/+5910
* chore(examples): add kitchen-sink * feat: support children in rendered components * feat: add support for rendering children in Svelte * fix: cleanup p/react fragment children * chore: add @ts-nocheck to svelte files * chore: update lockfiles * fix: types * feat: memoize frontend/renderer/utils * fix: disable eslint for compiled SvelteWrapper * fix: add missing dep Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-14New landing page (#95)Gravatar Nate Moore 11-5127/+0
* feat: new www * fix: add svg favicon * fix: small tweaks * fix: Drew's nitpicks * fix: sizing, tagline * copy: add "astronauts" :) * fix: astro logo color * fix: overflow Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-14Improve Tailwind docs & Tailwind support (#92)Gravatar Drew Powers 8-0/+1045
2021-04-13Add Astro.fetchContent API (#91)Gravatar Drew Powers 4-3/+4
2021-04-12Renaming to import.meta.fetchContent (#70)Gravatar Drew Powers 8-1771/+1117
* Change to import.meta.glob() Change of plans—maintain parity with Snowpack and Vite because our Collections API will use a different interface * Get basic pagination working * Get params working * Rename to import.meta.fetchContent * Upgrade to fdir
2021-04-12chore fix lint reduce errors generated (#83)Gravatar duncanhealy 2-682/+231
* add dep domhandler imported in in src/build/static * lint and jsDoc error * move domhandler to devDep * chore: add package lock * escape string jsDoc * chore: add astro dep in until prism import is refactored * chore: add snowpack example package lock
2021-04-12Add back in astro as a dependency of the snowpack example (#81)Gravatar Matthew Phillips 2-204/+378
Removing the dependency breaks the site as using Markdown creates an import to a builtin Astro component. So we need astro as a dep. Not sure why it was changed anyways.
2021-04-10small size changeGravatar Fred K. Schott 1-1/+1
2021-04-10cleanup landing page, and small fixGravatar Fred K. Schott 4-27/+68
2021-04-10add counter componentGravatar Fred K. Schott 1-0/+17
2021-04-08Add support for syntax highlighting of code blocks (#65)Gravatar Matthew Phillips 2-94/+33
* Add support for syntax highlighting of code blocks * Escape usage of backtick strings * Add workspace root for snowpack * Use prismjs/components as an external module
2021-04-06Blog Support 1/3: Data fetching (#62)Gravatar Drew Powers 30-0/+2150
* Add example blog * Add author data * Improve navigation * Style nav * Add friendly error message * Throw error if import glob used for non-Markdown files * Use import.meta.collection() API instead * README fixes
2021-04-02Fix body from being scoped (#56)Gravatar Drew Powers 1-26/+13