summaryrefslogtreecommitdiff
path: root/src/frontend/render (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-04-30Migrate to `yarn` monorepo (#157)Gravatar Nate Moore 6-264/+0
* 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-30Fix Svelte bundled behavior (#151)Gravatar Nate Moore 1-1/+1
* 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-30fix: typoGravatar Nate Moore 1-1/+1
2021-04-29fix: @vue/server-renderer tree-shaking (#148)Gravatar Nate Moore 1-0/+3
2021-04-28Fix: plain string children bug (#138)Gravatar Nate Moore 1-4/+9
* fix: string children bug * test: add string children test * test: add other child test scenarios
2021-04-19Fix visible components (#112)Gravatar Matthew Phillips 1-2/+2
* Fix visible components The wrapper component is grabbed with querySelector, so no need for `.item()` call which was throwing. * Add back in display contents
2021-04-15[ci] npm run formatGravatar natemoo-re 6-32/+32
2021-04-15Support children inside of components (#72)Gravatar Nate Moore 6-27/+120
* 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-12Renaming to import.meta.fetchContent (#70)Gravatar Drew Powers 1-1/+2
* 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-09Improve renderer types (#69)Gravatar Matthew Phillips 5-8/+10
* Improve renderer types Looking at the render code I noticed that the Component rendering is not typed. This adds that, might help prevent a bug in the future. * Create the supported renderer type
2021-04-02Add type declarations (#59)Gravatar Drew Powers 5-26/+17
2021-04-02Fix React import (#55)Gravatar Drew Powers 3-5/+5
* Fix React import * Change default export * Fix :visible dynamic component * Use colon to alias vue createElement Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-04-02Get CSS Modules working in Vue (#53)Gravatar Drew Powers 5-10/+10
2021-04-01Annoying Lint PR #2 (#47)Gravatar Drew Powers 1-2/+3
2021-03-31Implement fallback capability (#44)Gravatar Matthew Phillips 1-1/+1
* Implement fallback capability This makes it possible for a dynamic component to render fallback content on the server. The mechanism is a special `static` prop passed to the component. If `static` is true then the component knows it can render static content. Putting aside the word `static`, is this the right approach? I think giving components the flexibility to make the decision themselves *is* the right approach. However in this case we have a special property that is passed in non-explicitly. I think we have to do it this way because if the caller passes in a prop it will get serialized and appear on the client. By making this something we *add* during rendering, it only happens on the server (and only when using `:load`). Assuming this is the right approach, is `static` the right name for this prop? Other candidates: * `server` That's all I have! * Use `import.meta.env.astro` to tell if running in SSR mode. * Run formatter
2021-03-30Resolve component URLs during compilation (#40)Gravatar Matthew Phillips 1-1/+1
Previously dynamic component URLs were being resolved client-side in a weird way that only worked during dev. This change makes them handle during compilation, so it works in both (and improves readability of the dynamic import output).
2021-03-26New hydration methods (#29)Gravatar Nate Moore 5-96/+149
* WIP: new hydration methods * refactor: genericize load/idle/visible renderers * fix: do not pass "data-astro-id" to component * docs: add hydration section to README * docs: update README Co-authored-by: Nate Moore <nate@skypack.dev>
2021-03-25First pass at the build (#27)Gravatar Matthew Phillips 1-3/+6
This updates `astro build` to do a production build. It works! No optimizations yet.
2021-03-24Redesign pages, remove layout nesting (#24)Gravatar Fred K. Schott 1-7/+1
* wip * new svelte-style prop declaration is working * got it working! * revert h changes * format * style lang update
2021-03-23Add support for React components. (#18)Gravatar Matthew Phillips 1-0/+28
* Add support for React components. This adds support for react components via a new `extensions` config in astro.config.mjs. In the future we can extend this to do things like look at the import statements, as Snowpack does. * Fix the tests
2021-03-16Annoying Lint PR™ (#3)Gravatar Drew Powers 3-20/+20
* Add Prettier + ESLint * Format files
2021-03-15initial commitGravatar Matthew Phillips 3-0/+90