Commit graph

120 commits

Author SHA1 Message Date
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
Robin Métral
397d8f3d84
Upgrade unified deps and improve unified plugins types (#1200)
* Upgrade @astrojs/markdown-support deps and update types

* Add changeset

* Update changeset

* Switch astro-markdown-plugins example to use rehype-autolink-headings

Usage of remark-autolink-headings is discouraged in favor of the rehype counterpart: https://github.com/remarkjs/remark-autolink-headings\#remark-autolink-headings

* Add stricter types for unified plugins

This includes a few suggestions from a code review:
- use vfile.toString instead of vfile.value.toString
- refactor plugins to follow unified best practices instead of returning functions that return a plugin
- use any instead of any[] for plugin options types

* Narrow down types to more specific hast or mdast typings
2021-08-25 08:17:45 -04:00
Fred K. Schott
3ab89e04da update deps 2021-08-23 14:47:18 -07:00
Fred K. Schott
f9cd031033
Add zod schema validation (#1198)
* add zod schema validation

* update pageUrlFormat config name

* add trailing slash support to config
2021-08-23 14:07:03 -07:00
Caleb Jasik
2fd004dcd9
Add a titleClosure to the HeadSEO.astro component (#1140)
* Testing out adding a `titleClosure` to the `HeadSEO.astro` component

I think the api needs a bit of improvement, but the basic idea is you can pass this in to a published astro component for specifying how you want it to format your title!

* Refactor to make it pretty

* Rename the `titleClosure()` prop to `formatTitle()` to be more clear

* Use title, with site title as the fallback (#1143)

See og:title guidance (https://developers.facebook.com/docs/sharing/webmasters/)

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-08-23 15:08:20 -05:00
Fred K. Schott
348b252a51 exit prerelease mode 2021-08-18 09:09:27 -07:00
Oleg
537e348b3e
docs: fix select language in Safari (#1127) (#1128)
* docs: fix select language in Safari (#1127)

* docs: fix select language top position

* docs: fix select language position
2021-08-17 22:03:13 -07:00
Fred K. Schott
dcb97b0223
make routing fixes from discord feedback (#1091) 2021-08-12 01:35:28 -07:00
Nate Moore
86c47296b4 fix: language server 2021-08-11 15:35:32 -05:00
Bartek Igielski
1339d5e36b
Bump Vue version to latest stable (#1075)
* Bump Vue version to latest stable

* Create wild-suits-raise.md
2021-08-10 09:02:24 -04:00