Commit graph

1530 commits

Author SHA1 Message Date
Nate Moore
09bc35e803 [next] Fix <Markdown> component (#1631)
* fix: cleanup issues with <Markdown> component

* fix: fix `content` usage with Markdown
2021-10-22 16:25:38 -06:00
Nate Moore
4647c998ea feat: fix Debug component (#1633) 2021-10-22 16:25:38 -06:00
Nate Moore
b5226e68dd fix: define:vars scoping for styles (#1632) 2021-10-22 16:25:38 -06:00
Jonathan Neal
d9caef63d8 Add class:list directive (#1612)
* Add support for class:list directive

The `class:list` directive serializes an expression of css class names. For React components, `className:list` is also supported.

* Remove `className` support and React tests

* Add tests for the absence of omitted classes
2021-10-22 16:25:38 -06:00
Matthew Phillips
b0e407dc4b [next] docs example fully working (#1627)
* [next] docs example fully working

* Upgrade compiler to unlock docs
2021-10-22 16:25:38 -06:00
Drew Powers
2c15795607 Minor change to jsxTransformOptions, update Renderer API docs (#1630) 2021-10-22 16:25:38 -06:00
Drew Powers
b0ef391e57 Remove cheerio scanning from build stats (#1629) 2021-10-22 16:25:38 -06:00
Drew Powers
4c9d3cf3d9 Fix changesets (#1628) 2021-10-22 16:25:38 -06:00
Drew Powers
330620e1b3 Update renderer API for Vite (#1623)
* Update renderer API for Vite

* Fix lit-element tests

* Clean up comments

* Throw friendly error if renderer provides viteConfig in a bad format
2021-10-22 16:25:38 -06:00
Drew Powers
4b25d5592a Move Sass to deps (#1622) 2021-10-22 16:25:38 -06:00
Fred K. Schott
dff64574c4 fix issues in blog-multiple-authors (#1621) 2021-10-22 16:25:38 -06:00
Drew Powers
d1a73e4c38 [next] Add CSS preprocessing (#1589)
* Add concept for style support in Astro

* Update style preprocessor to use new compiler

* fix: massage preprocessStyle type

* fix: @astrojs/compiler types

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-10-22 16:25:38 -06:00
Nate Moore
51e5a45ec5 [next] fix .tsx handling (#1620)
* fix: support tsx in JSX plugin

* fix: preserve JSX via esbuild, only use Babel for JSX compilation

* fix: handle upcoming Vite API for `ssr` flag
2021-10-22 16:25:38 -06:00
Nate Moore
2c36d0a427 feat: add fragment support to vite-plugin-astro (#1600) 2021-10-22 16:25:37 -06:00
Matthew Phillips
dfe23864e0 [next] Upgrade compiler (#1619)
* [next] Upgrade compiler

* Upgrade to latest compiler

* Fix the path to global css

* Removed debugger
2021-10-22 16:25:37 -06:00
Fred K. Schott
5da14ca8ed comment style fixes (#1614) 2021-10-22 16:25:37 -06:00
Drew Powers
90b9c6e086 Remove numbered comments (#1611)
* Chore: remove numbered comments

* Clean up block comments
2021-10-22 16:25:37 -06:00
AsyncBanana
18222cf61b Add environment variables docs (Closes #873) (#1587)
* Added environment variables docs (Closes #873)

* Fixed prefix
2021-10-22 16:25:37 -06:00
Matthew Phillips
560721cbaa [next] blog example fully working (#1610) 2021-10-22 16:25:37 -06:00
Drew Powers
bbf93de41e Fix build order (#1609)
* Bugfix: restore build to get all paths earlier, when build. Same as main.

* Also re-add timings
2021-10-22 16:25:37 -06:00
Drew Powers
e1b52506f7 Bugfix: fix getStaticPaths() cache miss (#1602) 2021-10-22 16:25:37 -06:00
Matthew Phillips
d1f42353e8 Scoped styles with markdown (#1599) 2021-10-22 16:25:37 -06:00
Matthew Phillips
b695c8aa15 Add Prism syntax highlighting (#1598) 2021-10-22 16:25:37 -06:00
Drew Powers
a1c594fc95 Update Vite to latest (#1597) 2021-10-22 16:25:37 -06:00
Matthew Phillips
94a513adc6 Gets Astro.fetchContent compilation to work (#1596)
* Gets Astro.fetchContent compilation to work

This fixes Astro.fetchContent so that we handle esbuild transforming the
name of the nested Astro call.

* Remove debugging

* Update the tests

* Remove another debugger
2021-10-22 16:25:37 -06:00
Matthew Phillips
2ac2559b5d Gets lit hydration working (#1595) 2021-10-22 16:25:37 -06:00
Matthew Phillips
f881a03961 Markdown compilation (#1593)
* Markdown compilation

* remove debugger
2021-10-22 16:25:37 -06:00
Matthew Phillips
dd147c390a Update files config 2021-10-22 16:25:37 -06:00
Matthew Phillips
38e731adbe Use Vite fork (#1585)
* Use Vite fork

* Fix linting

* Move Vite to vendor/ and add a license

* Fix linting

* Include the dist folder
2021-10-22 16:25:37 -06:00
Matthew Phillips
34a257376e Upgrade to @astrojs/compiler 0.2.0 (#1584) 2021-10-22 16:25:37 -06:00
Drew Powers
cd76229ed7 Restructure (#1569) 2021-10-22 16:25:36 -06:00
Nate Moore
62106902bb [Next] fetch support (#1563)
* fix: polyfill fetch in every ssr scenario

* test(fetch): update fetch tests

* docs: update data fetching guide to remove caveats about `fetch` and isomorphic usage

* refactor: update regex for clarity
2021-10-22 16:25:36 -06:00
Drew Powers
7749e18066 Chore: Enable more tests with new compiler changes (#1558) 2021-10-22 16:25:36 -06:00
Nate Moore
a38460ca62 [next] Update renderers (#1509)
* chore: update vite

* fix(renderers): point renderers to resolved server/client entrypoints
2021-10-22 16:25:36 -06:00
Matthew Phillips
c269f7b687 Implements top-level Astro + Astro.resolve (#1556)
* Implements top-level Astro + Astro.resolve

* Fix linting
2021-10-22 16:25:36 -06:00
Matthew Phillips
72b66ddb75 Brings back astro-dynamic tests (#1548) 2021-10-22 16:25:36 -06:00
Matthew Phillips
35741b6033 Move hydration to the compiler (#1547)
* Move hydration to the compiler

* Move extracting url, export to util fn
2021-10-22 16:25:36 -06:00
Fred K. Schott
e342273d85 [next] Fix Astro.fetchContent (#1480)
* fix Astro.fetchContent

* fix(fetchContent): cast type

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-10-22 16:25:36 -06:00
Matthew Phillips
835903226d [next] Support for custom elements (#1528)
* [next] Support for custom elements

* Fix eslint errors

* eslint again
2021-10-22 16:25:36 -06:00
Matthew Phillips
3cd5a7f53f [next] support Astro.slots API (#1516) 2021-10-22 16:25:36 -06:00
Matthew Phillips
1bd3cf8f4d Add hydration to Solid renderer (#1479) (#1495)
* feat: add hydration to Solid renderer

* fix: intersection observer, move script to the end

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
2021-10-22 16:25:36 -06:00
Matthew Phillips
935831c79c Enables most slot tests (#1494)
* Enables most slot tests

* Use spreadAttributes
2021-10-22 16:25:36 -06:00
Matthew Phillips
c766c6b9f6 Add back in support for children (#1486)
* Add back in support for children

* Be more careful
2021-10-22 16:25:36 -06:00
Matthew Phillips
64eb61e13a Apply changes from #1387 2021-10-22 16:25:36 -06:00
Pranav Karawale
d2bcbbca34 Fix logger locale parsing (#1439)
* fix(logger): locale parsing
* Fixed issue of compiler crash when "c" locale was encountered
* Return default locale if parsed locale is less than 2 chars long

* chore: add changeset
2021-10-22 16:25:36 -06:00
Drew Powers
d77dfe0326 Fix CI release on merge to next (#1427) 2021-10-22 16:25:36 -06:00
Drew Powers
17a0c5bf75 Try mocha/chai test runners (#1418)
* Try mocha/chai test runners

* Disable failing smoke test for now

Will revert when next can build docs

* Enable mocha in parallel mode

* Remove warning

* Update docs

* Fix Windows bug

* Fix internal imports

* Fix styles
2021-10-22 16:25:36 -06:00
Nate Moore
81a472e1c9 feat: update compiler (#1421) 2021-10-22 16:25:36 -06:00
Drew Powers
26240770a7 Use new renderers (#1412) 2021-10-22 16:25:36 -06:00
Drew Powers
2c6451ffa2 Clean up astro deps (#1411) 2021-10-22 16:25:36 -06:00