Commit graph

1220 commits

Author SHA1 Message Date
Nate Moore
25cc9218f8
fix(#2987): relative config handling with --config flag (#3001)
* fix(#2987): relative config handling with `--config` flag

* test: fix tests

* fix: improve config test for failure case

* fix: test on windows?

* fix: test on windows?
2022-04-06 16:37:49 -05:00
matthewp
340cc1c8e4 [ci] format 2022-04-06 20:22:36 +00:00
Matthew Phillips
c6f8bce7c3
Fix Netlify adapter and dynamic routes (#3011)
* Fix Netlify adapter and dynamic routes

* Changeset
2022-04-06 16:21:46 -04:00
Juan Martín Seery
8bd49c9536
fix(integrations): astro:build:done dir now matches SSR client output (#3008)
* `dir` now matches client output

* Updated integrations

* Changeset
2022-04-06 16:20:58 -04:00
Ryan Carniato
13b782f421
fix: Nested hydration with Solid (#3003)
* fix: solid nested hydration

* Create ten-rice-unite.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-06 14:42:01 -05:00
natemoo-re
debdf11b19 [ci] format 2022-04-06 17:19:49 +00:00
Peter Singh
d0777ad3af
Astro add docs (#2958)
* So This works 😎

* need to add to the cli next

* Renamed Files and Export
Applied creditation to where I found the
'inspiration' for this application.

* applied `astro docs` to cli

* Trying to add to CLI,
Not working 🤷‍♂️

* Converted into async method,

* 🎆🎆 It works!!! 🥳🎉🥳

Embarrasing as it is I totally missed the part where logic was to be in.

* Moved `docs` cmd to `supportedCommands`

* refactor: cleanup docs command

* chore: add changeset

* chore: rename browser to open

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-06 12:19:05 -05:00
Juan Martín Seery
b5ed099eaf
fix: @astrojs/vercel bug fixes (#3000)
* Fixed outDir

* Updated server out

* changeset

* Renamed out to tmp
2022-04-06 14:15:46 -03:00
matthewp
e8aaedcac8 [ci] format 2022-04-06 17:08:05 +00:00
github-actions[bot]
013150e2de
[ci] release (beta) (#3005)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 13:06:36 -04:00
Matthew Phillips
68e1e2dd31
Fixes dynamic API routes in SSR (#3006)
* Fixes dynamic API routes in SSR

* Adds a changeset
2022-04-06 13:01:22 -04:00
tony-sull
3bf5d84016 [ci] format 2022-04-06 15:34:09 +00:00
Tony Sullivan
9724d844b3
fix(#2981): keeps astro preview server alive (#3004)
* fix(#2981): keeps  server alive

* chore: adding changeset

* keep alive until the 'close' or 'error' event fires
2022-04-06 15:33:07 +00:00
Nate Moore
ba90ef53d3
Update readme.md 2022-04-06 10:27:16 -05:00
matthewp
cf92954e5a [ci] format 2022-04-05 19:29:23 +00:00
github-actions[bot]
48d01049b0
[ci] release (beta) (#2997)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-05 15:28:29 -04:00
Ben Holmes
77aa3a5c50
Docs: netlify adapter site requirement (#2996)
* feat: human-readable error on bad site or base

* fix: human-readable error should have 1 config option

* docs: update README

* chore: changeset

* docs: mention localhost for testing via netlify CLI
2022-04-05 11:25:48 -04:00
FredKSchott
b3f55f235a [ci] format 2022-04-05 01:08:00 +00:00
github-actions[bot]
4e021f70e1
[ci] release (beta) (#2992)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 18:07:09 -07:00
FredKSchott
a85ea0772c [ci] format 2022-04-05 01:02:20 +00:00
Fred K. Schott
8425347cd5
fix markdown mode default (#2991)
* fix markdown mode default

* Update config.ts
2022-04-04 18:01:31 -07:00
FredKSchott
c51ce91365 [ci] format 2022-04-04 22:21:00 +00:00
github-actions[bot]
ac34a5a03a
[ci] release (beta) (#2989)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 15:19:57 -07:00
Erika
1bc73c86fd
Add missing entry in files field in package.json (#2988) 2022-04-04 12:07:57 -07:00
natemoo-re
6c0c0679d8 [ci] format 2022-04-04 16:36:30 +00:00
github-actions[bot]
a68885c0d6
[ci] release (beta) (#2986)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 11:35:25 -05:00
Princesseuh
9e01f4475c [ci] format 2022-04-04 16:27:03 +00:00
Erika
47e0539cce
Add JSX definitions to main repo (#2985) 2022-04-04 12:26:15 -04:00
FredKSchott
c2ed6fe360 [ci] format 2022-04-04 06:26:31 +00:00
github-actions[bot]
2552db0d09
[ci] release (#2975)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-03 23:25:00 -07:00
Fred K. Schott
efc63bfd0f fix outdir default type docs 2022-04-03 23:19:27 -07:00
Nate Moore
3f0bc5af57
fix: edge case with slotted children (#2978) 2022-04-03 23:18:07 -07:00
Tony Sullivan
dff89a0fa3 Merge branch 'main' of github.com:withastro/astro 2022-04-03 20:42:41 +02:00
Juan Martín Seery
824458790a
fix(cli): prevent CLI from hanging (#2974)
* fix(cli): prevent hanging CLI

* Changeset
2022-04-03 14:32:39 -03:00
Juan Martín Seery
ad3c391696
fix(markdown): escape when mode == 'md' (#2971)
* Fix rehype escape

* Changeset
2022-04-03 14:32:12 -03:00
Tony Sullivan
75919537be
Fixing the new config defaults (docs only) (#2973)
* updating the default listed in config jsdocs

* chore: adding changeset

* outDir had the wrong default listed as well

* chore: updating changeset description
2022-04-03 17:05:30 +00:00
JuanM04
bf2199e1df
New astro config 2022-04-02 18:59:03 -03:00
JuanM04
ccce433994
Formatted 2022-04-02 18:56:13 -03:00
JuanM04
a377ac1efc
Merge branch 'main' into feat/vercel-adapter 2022-04-02 18:53:00 -03:00
Fred K. Schott
1335797903
update prettier width (#2968) 2022-04-02 14:15:41 -06:00
FredKSchott
d63213f119 [ci] format 2022-04-02 19:50:17 +00:00
github-actions[bot]
7fe149ae43
[ci] release (#2969)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:49:27 -06:00
Fred K. Schott
e425f896b6 Revert "[ci] release (#2925)"
This reverts commit 48c9b142cc.
2022-04-02 13:46:25 -06:00
FredKSchott
d047baad11 [ci] format 2022-04-02 19:41:44 +00:00
github-actions[bot]
48c9b142cc
[ci] release (#2925)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:40:46 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode (#2967) 2022-04-02 13:37:28 -06:00
FredKSchott
bae719505d [ci] format 2022-04-02 18:30:48 +00:00
Nate Moore
17c02925c5
Migrate to new config (#2962)
* wip: config migration

* fix: formatting

* refactor: projectRoot -> root

* refactor: pageUrlFormat -> format

* refactor: buildOptions.site -> site

* refactor: public -> publicDir

* refactor: dist -> outDir

* refactor: styleOptions -> style

* fix: some dist tests -> outDir

* refactor: remove legacyBuild (with TODOs)

* refactor: more legacyBuild cleanup

* refactor: server host and port

* fix: remove experimentalStaticBuild CLI flag

* refactor: src -> srcDir

* refactor: devOptions.trailing -> trailing

* refactor: remove sitemap + related flags

* refactor: experimentalSSR -> experimental.ssr

* fix: last devOptions

* refactor: drafts -> markdown.drafts

* fix: TS error on port as const

* refactor: remove pages

* refactor: more --project-root updates

* refactor: markdownOptions -> markdown

* fix: remaining type errors

* feat: update AstroUserConfig

* refactor: update CLI flag mapper + server mapper

* fix: loadFixture projectRoot

* fix: merge CLI flags before validating / transforming

* wip: attempt to fix bad createRouteManifest config

* refactor: combine config.base and config.site

* fix: skip route manifest test for now

* fix: site and base handling

* refactor: update failing config testes

* fix: build failure

* feat: update config types with migration help

* chore: update types

* fix(deno): update deno fixture

* chore: remove config migration logic

* chore: remove logLevel

* chore: clean-up config types

* chore: update config warning

* chore: add changeset

* Sitemap Integration (#2965)

* feat: add sitemap filter config option

* feat: add canonicalURL sitemap config option

* docs: update sitemap README

* fix: update for new config

* fix: filter not being applied

* chore: changeset

Co-authored-by: bholmesdev <hey@bholmes.dev>

* fred pass

* fix: Astro.resolve typo

* fix: public => publicDir

Co-authored-by: bholmesdev <hey@bholmes.dev>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-02 12:29:59 -06:00
natemoo-re
76f6643ddd [ci] format 2022-04-02 17:35:42 +00:00
Nate Moore
d55658f061
Implement new default script behavior, style is:global (#2961)
* feat: implement RFC0016

* chore: update to latest compiler

* chore: update compiler

* test: fix script tests

* test: update public tests

* feat: throw a warning when referencing scripts in `public/` without `is:inline`
2022-04-02 12:34:25 -05:00