astro/packages/astro/test
Nate Moore 643c880f28
Renderer plugins (#231)
* 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-26 13:30:22 -05:00
..
benchmark [ci] yarn format 2021-05-26 15:33:35 +00:00
fixtures Renderer plugins (#231) 2021-05-26 13:30:22 -05:00
.eslintrc.cjs Chore: fix lint rules, add more error handling for unexpected cases (#177) 2021-05-06 14:57:14 -04:00
astro-basic.test.js [wip] Fix CI (#202) 2021-05-12 12:06:16 -06:00
astro-children.test.js Renderer plugins (#231) 2021-05-26 13:30:22 -05:00
astro-collection.test.js Fix Windows tests (#212) 2021-05-14 12:03:41 -04:00
astro-css-bundling.test.js Bugfix: random CSS ordering (#232) 2021-05-24 10:57:35 -06:00
astro-doctype.test.js [wip] Fix CI (#202) 2021-05-12 12:06:16 -06:00
astro-dynamic.test.js Renderer plugins (#231) 2021-05-26 13:30:22 -05:00
astro-expr.test.js [wip] Fix CI (#202) 2021-05-12 12:06:16 -06:00
astro-fallback.test.js [wip] Fix CI (#202) 2021-05-12 12:06:16 -06:00
astro-global.test.js [wip] Fix CI (#202) 2021-05-12 12:06:16 -06:00
astro-markdown.test.js [ci] yarn format 2021-05-17 14:30:21 +00:00
astro-rss.test.js Fix Windows tests (#212) 2021-05-14 12:03:41 -04:00
astro-scoped-styles.test.js Bugfix: scoped styles (#178) 2021-05-06 15:39:34 -06:00
astro-search.test.js Migrate to yarn monorepo (#157) 2021-04-30 16:33:35 -05:00
astro-sitemap.test.js Add CSS bundling (#172) 2021-05-06 10:38:53 -06:00
astro-styles-ssr.test.js Add scoped styles test (#223) 2021-05-21 12:45:49 -06:00
config-path.test.js Format (#167) 2021-05-03 12:26:10 -06:00
config-port.test.js Fix Windows tests (#212) 2021-05-14 12:03:41 -04:00
helpers.js Add benchmarking for dev and build (#240) 2021-05-26 11:31:53 -04:00
plain-markdown.test.js [ci] yarn format 2021-05-17 14:30:21 +00:00
react-component.test.js [wip] Fix CI (#202) 2021-05-12 12:06:16 -06:00
snowpack-integration.test.js Fix markdown syntax issues (#234) 2021-05-24 16:00:34 -04:00
test-utils.js Format (#167) 2021-05-03 12:26:10 -06:00