Commit graph

115 commits

Author SHA1 Message Date
Matthew Phillips
a0639b34f0 Use Vite fork 2021-10-18 14:53:07 -04:00
Drew Powers
8145dc042c
Restructure (#1569) 2021-10-15 18:28:04 -06:00
Drew Powers
986f028714 Chore: Enable more tests with new compiler changes (#1558) 2021-10-15 14:11:39 -06:00
Nate Moore
19d45496e7 [next] Update renderers (#1509)
* chore: update vite

* fix(renderers): point renderers to resolved server/client entrypoints
2021-10-15 14:10:26 -06:00
Matthew Phillips
5fbd05be15 Implements top-level Astro + Astro.resolve (#1556)
* Implements top-level Astro + Astro.resolve

* Fix linting
2021-10-15 14:08:43 -06:00
Matthew Phillips
f199c69eab Brings back astro-dynamic tests (#1548) 2021-10-15 14:08:07 -06:00
Matthew Phillips
b418ae31b8 Move hydration to the compiler (#1547)
* Move hydration to the compiler

* Move extracting url, export to util fn
2021-10-15 14:07:31 -06:00
Fred K. Schott
215f46aa01 [next] Fix Astro.fetchContent (#1480)
* fix Astro.fetchContent

* fix(fetchContent): cast type

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-10-15 14:06:30 -06:00
Matthew Phillips
dc7260bea2 [next] support Astro.slots API (#1516) 2021-10-15 14:05:34 -06:00
Matthew Phillips
d7152acb85 Enables most slot tests (#1494)
* Enables most slot tests

* Use spreadAttributes
2021-10-15 14:00:38 -06:00
Matthew Phillips
21294f7e0b Apply changes from #1387 2021-10-15 13:59:44 -06:00
Drew Powers
d818c9bb92 Fix CI release on merge to next (#1427) 2021-10-15 13:59:30 -06:00
Drew Powers
b99eacfa54 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-15 13:58:29 -06:00
Nate Moore
73eb8edfe3 feat: update compiler (#1421) 2021-10-15 13:57:24 -06:00
Drew Powers
ccf3b22069 Clean up astro deps (#1411) 2021-10-15 13:56:24 -06:00
Drew Powers
68749c7df2 Fix npm install (#1407) 2021-10-15 13:53:04 -06:00
Drew Powers
5f6eaf24fe Improve testing suite 2021-10-15 13:53:04 -06:00
Fred K. Schott
34e016aeb3 Fred fixes part 2 2021-10-15 13:53:03 -06:00
Nate Moore
2cf885ee73 Add Markdown support 2021-10-15 13:50:06 -06:00
Drew Powers
561fecd03b Fix runtime, improve code frame 2021-10-15 13:43:49 -06:00
Drew Powers
bf38f9ea93 Update compiler, improve tests 2021-10-15 13:43:49 -06:00
Drew Powers
7ae9a09186 More test improvements 2021-10-15 13:43:48 -06:00
Nate Moore
c6a5b518ab Update tests 2021-10-15 13:43:47 -06:00
Drew Powers
7eaf14ce15 Move Astro to Vite 2021-10-15 13:34:53 -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
Fred K. Schott
6ec7968d12
refactor bin entrypoint, add stackblitz support (#1029) 2021-08-05 11:24:36 -07:00
Bartek Igielski
a1491cc659
Fix Vue components nesting and add tests (#924)
* Allow @vue/server-renderer to be processed

* Bump @vue/server-renderer version

* Create twenty-coats-talk.md

* Bump Vue packages version to get ESM builds

* Add Vue components tests

* Create shaggy-pugs-raise.md

* Delete shaggy-pugs-raise.md
2021-07-30 08:33:31 -04:00
Fred K. Schott
6eeafac715
Add algolia-powered search bar to docs site (#917)
* add search bar

* replace cmd+k with slash hotkey

* update api key

* add localhost support for search
2021-07-29 13:31:41 -07:00
Caleb Jasik
72898e3cd6
Add yarn lint:a11y to the docs project (#804) 2021-07-28 17:00:00 -04:00
Matthew Phillips
0d061265b2 Move the rest of the Markdown missing dependencies 2021-07-28 15:56:07 -04:00