Commit graph

129 commits

Author SHA1 Message Date
Matthew Phillips
dd40617038
Resolve renderers relative to the projectRoot (#1659) 2021-10-26 11:25:24 -04:00
Matthew Phillips
aa0590afdf
Upgrade compiler version (#1655)
Fixes docs and blog examples
2021-10-25 16:18:24 -04:00
Drew Powers
07f786096d
Add CSS injection, fix portfolio example (#1648)
* 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
7f95d706e9
Add support for markdown plugins (#1650) 2021-10-25 09:40:07 -04:00
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
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
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
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
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
Matthew Phillips
560721cbaa [next] blog example fully working (#1610) 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
2ac2559b5d Gets lit hydration working (#1595) 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
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
3cd5a7f53f [next] support Astro.slots API (#1516) 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
64eb61e13a Apply changes from #1387 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
2c6451ffa2 Clean up astro deps (#1411) 2021-10-22 16:25:36 -06:00
Drew Powers
71e721c520 Fix npm install (#1407) 2021-10-22 16:25:36 -06:00
Drew Powers
7fb6e9d2ab Improve testing suite 2021-10-22 16:25:36 -06:00
Fred K. Schott
e8bc289c70 Fred fixes part 2 2021-10-22 16:25:36 -06:00
Nate Moore
1581095d72 Add Markdown support 2021-10-22 16:25:36 -06:00
Drew Powers
6e5ede2175 Fix runtime, improve code frame 2021-10-22 16:25:36 -06:00
Drew Powers
7296e0b0a2 Update compiler, improve tests 2021-10-22 16:25:36 -06:00
Drew Powers
ec6dbab103 More test improvements 2021-10-22 16:25:36 -06:00
Nate Moore
d8cd8a46ee Update tests 2021-10-22 16:25:35 -06:00
Drew Powers
ddca8c4dea Move Astro to Vite 2021-10-22 16:25:35 -06:00
Matthew Phillips
dbd2f5076b
Adds the astro check command (#1410)
* Adds the `astro check` command.

This adds `astro check`, which runs type checking (and general error
    checking) on Astro projects.

* print the number of errors found

* Adds a changeset

* Add cli docs

* Upgrade the language server version

* Prevent linting the console.logs
2021-10-11 08:12:15 -04:00
Matthew Phillips
82672e5c47
Updated srcset checking (#1462)
* Updated srcset checking

Improved functionality of `srcset` checking as original failed when URL contained a comma ( `,` ).
Utilised function from [srcset-parse](https://github.com/molefrog/srcset-parse) as couldn't find a way to integrate the package.
Added test to current assets test rather than create a separate one.

* Use srcset-parse

Co-authored-by: Coel May <82788995+coelmay@users.noreply.github.com>
2021-09-30 09:58:20 -04:00
Michael Stramel
806dcd8d8d
Update lit version to v2 (#1445)
* Update lit version to v2

* Create weak-sheep-clap.md

* Re-assign window.global to window to retain existing functionality
2021-09-28 14:59:28 -04:00
Fred K. Schott
291f2ef537
fix bad benchmark (#1383) 2021-09-16 13:06:43 -07:00
Caleb Jasik
9cf2df81db
Improve stats logging to use pretty-bytes so that 20B doesn't get output as 0kB, which is accurate, but confusing (#1329) 2021-09-14 16:50:00 -07:00
Matthew Phillips
2f349cbabf
Add a new lockfile (#1356) 2021-09-13 11:11:35 -07:00
Fred K. Schott
dcf94bc352 update lockfile 2021-09-09 10:53:17 -07:00
Caleb Jasik
494f577089 Update yarn.lock with @octokit dep updates\n\n --frozen-lockfile was complaining that the lockfile needed updates. 2021-09-05 10:29:55 -05:00
Fred K. Schott
e282e8e4ac
Add new <Code> component, to succeed <Prism> (#1208)
* add code component

* Update packages/astro/components/Debug.astro

Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>

* Update packages/astro/components/Debug.astro

Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>

* fix format in debug component

* remove Debug changes

* add wrap support

* add props docs

* update default theme

Co-authored-by: Peter Singh <drgaud@hotmail.com>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-09-03 11:06:25 -07:00
Fred K. Schott
f14762bd12
wip (#1284) 2021-08-31 19:50:25 -07:00
Okiki
b7ada11ddb WIP update examples/docs/ 2021-08-26 12:15:33 -07:00
Fred K. Schott
ff92be637f
add "astro preview" command (#1226)
* add "astro preview" command

* Update green-buttons-reflect.md

* Update cli-reference.md
2021-08-26 12:08:52 -07:00