Commit graph

1544 commits

Author SHA1 Message Date
Nate Moore
b04d478b52
chore: update compiler to latest () 2021-10-26 19:18:57 -05:00
Nate Moore
8f699e5a42
fix: scope define:vars to :root for <style global> () 2021-10-26 16:36:53 -05:00
Nate Moore
55c8453fd2
fix: dedupe hashes for identical islands () 2021-10-26 13:00:55 -05:00
Drew Powers
c85c7e2188
Template fixes () 2021-10-26 09:57:17 -06:00
Matthew Phillips
dd40617038
Resolve renderers relative to the projectRoot () 2021-10-26 11:25:24 -04:00
Matthew Phillips
aa0590afdf
Upgrade compiler version ()
Fixes docs and blog examples
2021-10-25 16:18:24 -04:00
Matthew Phillips
0430c0e1d2
Fixes external HMR () 2021-10-25 15:23:39 -04:00
Drew Powers
07f786096d
Add CSS injection, fix portfolio example ()
* Fix portfolio example

* Add .pcss extension

* Update load ssr opts

* Update packages/astro/src/runtime/server/index.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-10-25 13:05:27 -06:00
Matthew Phillips
1103cb1f9d Prevent passing class to Vue components 2021-10-25 14:07:00 -04:00
Matthew Phillips
303f32fda0 Prevent passing to Svelte components 2021-10-25 14:01:38 -04:00
Matthew Phillips
190e03b5ce
Fix broken next release () 2021-10-25 12:55:26 -04:00
Matthew Phillips
7f95d706e9
Add support for markdown plugins () 2021-10-25 09:40:07 -04:00
Matthew Phillips
8206421ffa Fixes solid ()
* Fixes solid

* Rename the test

* Rebase with next

* Skip solid test for now
2021-10-22 16:25:38 -06:00
Nate Moore
06562af124 [next] Fix <Code> component ()
* fix: enable Code component

* test: update expect to chai format
2021-10-22 16:25:38 -06:00
Nate Moore
09bc35e803 [next] Fix <Markdown> component ()
* 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 () 2021-10-22 16:25:38 -06:00
Nate Moore
b5226e68dd fix: define:vars scoping for styles () 2021-10-22 16:25:38 -06:00
Jonathan Neal
d9caef63d8 Add class:list directive ()
* 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 ()
* [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 () 2021-10-22 16:25:38 -06:00
Drew Powers
b0ef391e57 Remove cheerio scanning from build stats () 2021-10-22 16:25:38 -06:00
Drew Powers
4c9d3cf3d9 Fix changesets () 2021-10-22 16:25:38 -06:00
Drew Powers
330620e1b3 Update renderer API for Vite ()
* 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 () 2021-10-22 16:25:38 -06:00
Fred K. Schott
dff64574c4 fix issues in blog-multiple-authors () 2021-10-22 16:25:38 -06:00
Drew Powers
d1a73e4c38 [next] Add CSS preprocessing ()
* 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 ()
* 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 () 2021-10-22 16:25:37 -06:00
Matthew Phillips
dfe23864e0 [next] Upgrade compiler ()
* [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 () 2021-10-22 16:25:37 -06:00
Drew Powers
90b9c6e086 Remove numbered comments ()
* Chore: remove numbered comments

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

* Fixed prefix
2021-10-22 16:25:37 -06:00
Matthew Phillips
560721cbaa [next] blog example fully working () 2021-10-22 16:25:37 -06:00
Drew Powers
bbf93de41e Fix build order ()
* 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 () 2021-10-22 16:25:37 -06:00
Matthew Phillips
d1f42353e8 Scoped styles with markdown () 2021-10-22 16:25:37 -06:00
Matthew Phillips
b695c8aa15 Add Prism syntax highlighting () 2021-10-22 16:25:37 -06:00
Drew Powers
a1c594fc95 Update Vite to latest () 2021-10-22 16:25:37 -06:00
Matthew Phillips
94a513adc6 Gets Astro.fetchContent compilation to work ()
* 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 () 2021-10-22 16:25:37 -06:00
Matthew Phillips
f881a03961 Markdown compilation ()
* 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 ()
* 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 () 2021-10-22 16:25:37 -06:00
Drew Powers
cd76229ed7 Restructure () 2021-10-22 16:25:36 -06:00
Nate Moore
62106902bb [Next] fetch support ()
* 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 () 2021-10-22 16:25:36 -06:00
Nate Moore
a38460ca62 [next] Update renderers ()
* 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 ()
* Implements top-level Astro + Astro.resolve

* Fix linting
2021-10-22 16:25:36 -06:00
Matthew Phillips
72b66ddb75 Brings back astro-dynamic tests () 2021-10-22 16:25:36 -06:00