0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

494 commits

Author SHA1 Message Date
Matthew Phillips
0b16b2ddd0
Make doctype be case insensitive (#419)
* Make doctype be case insensitive

Fixes #413

* Make doctype completely case insensitive

* Make check for style scoping doctype override be case insensitive

* Check for doctype in the right place
2021-06-14 12:00:51 -04:00
github-actions[bot]
0ef0c99b10
Version Packages (#418)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-14 08:43:03 -04:00
matthewp
a5d6e434ab [ci] yarn format 2021-06-14 12:36:32 +00:00
Matthew Phillips
271cfe6ce3
Improved JSX framework detection (#382)
* Improved JSX framework detection

This improves the JSX detection and adds a bunch of test. The following is improved:

* If an error throws because of a coding mistake, those errors will be reported.
* We properly detect class components for both Preact and React. We don't have to "try to render" these.

It's still possible that error messages might be obscured in this scenario:

A Preact function component that uses hooks (or another preact specific feature) that has a coding mistake. The React renderer might throw when it uses the Preact hook. That error will be reported rather than the real coding mistake.

This is because we can't distinguish between errors that are due to the wrong framework and errors that the user caused.

I might reach out to the Preact community and see if they can think of a better solution to this problem. This will come up when other JSX based frameworks have renderers. I still think that having multiple frameworks in the same project is a feature worth trying to preserve.

* Move try/catch into the __astro_component
2021-06-14 08:35:25 -04:00
Fred K. Schott
ab2972be83
add engines for esm support (#415) 2021-06-14 08:20:14 -04:00
Fred K. Schott
c74ba4bece
Update PULL_REQUEST_TEMPLATE.md 2021-06-13 15:53:41 -07:00
Fred K. Schott
9a3a7bc7e7
Delete ---framework---library-support.md 2021-06-13 15:51:21 -07:00
FredKSchott
fbe1493c1b [ci] yarn format 2021-06-13 22:44:26 +00:00
Fred K. Schott
2794765080 Update issue templates 2021-06-13 15:43:19 -07:00
Fred K. Schott
559c384987
Delete ---astro---your-favorite-tool.md 2021-06-13 15:22:02 -07:00
FredKSchott
82f5c48925 [ci] yarn format 2021-06-13 22:20:48 +00:00
Fred K. Schott
32161c3d7d Update issue templates 2021-06-13 15:19:38 -07:00
FredKSchott
a7de693652 [ci] yarn format 2021-06-13 22:18:11 +00:00
Fred K. Schott
aff84c1484 Update issue templates 2021-06-13 15:17:02 -07:00
FredKSchott
9a6cf9a9c4 [ci] yarn format 2021-06-13 22:04:02 +00:00
Fred K. Schott
962e7288e8 Update issue templates 2021-06-13 15:02:54 -07:00
FredKSchott
4d6946bdfb [ci] yarn format 2021-06-13 21:49:42 +00:00
Fred K. Schott
e1dd7848b9 Update issue templates 2021-06-13 14:48:43 -07:00
Fred K. Schott
2b91619fa5
Create config.yml 2021-06-13 14:40:22 -07:00
Fred K. Schott
37200eba7c
Update README.md 2021-06-13 14:30:39 -07:00
github-actions[bot]
416e8484b5
Version Packages (#402)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-12 11:36:31 -07:00
Drew Powers
c374a549b5
Allow createCollection() to fetch remote data (#400)
* Allow createCollection() to fetch remote data

Fixes #378

* Update docs

* revert isomorphic-fetch, see if ci passes

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-06-11 18:31:36 -07:00
duncanhealy
2d7abd3ab4
config: add snowpack workspace root to starter (#399) 2021-06-12 00:05:53 +01:00
Drew Powers
9d3cd49410
Improve templates test (#377) 2021-06-11 15:07:30 -06:00
matthewp
e7b5ad362c [ci] yarn format 2021-06-11 20:34:45 +00:00
Kitto Khrangtong
7d719ff75d
Create initial docs site (#389)
* create initial docs site

* change copy for title and header to say Astro Docs

* create initial docs site

* remove text merge changes

* change workspaceRoot and remove yarn.lock from docs-www

* add docs-www to workspace

Co-authored-by: Kitto Khrangtong <kitto@queensboro.com>
2021-06-11 16:33:36 -04:00
duncanhealy
8d72862a98
update node min version to 14.15.1 for codesandbox (#395) 2021-06-11 16:29:31 -04:00
github-actions[bot]
e7eab4e9d9
Version Packages (#386)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-11 16:24:07 -04:00
matthewp
68c6bc7d76 [ci] yarn format 2021-06-11 19:56:31 +00:00
Laura Caroline
348d829e94
Fix/issue #385 (#392)
* Apply favicon to the docs template

* Fix Sidebar category headers aren't clickable

Fixes #385

* Improve Docs example documentation

* Fix Documentation List on getting started page
2021-06-11 15:55:13 -04:00
Drew Powers
fb02a482c3
Fix baseUrl passed to Snowpack (#391) 2021-06-11 11:36:41 -06:00
Drew Powers
61b5590b95
Pass Astro site to snowpack baseUrl (#384) 2021-06-11 10:57:32 -06:00
github-actions[bot]
6eacdbae42
Version Packages (#381)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-11 09:15:16 -04:00
matthewp
86694cb8b8 [ci] yarn format 2021-06-11 13:04:33 +00:00
Matthew Phillips
1bab906539
Remove second snowpack instance (#368)
* Remove second snowpack instance

* Document import.meta.env.SSR

* Remove unnecessary Promise.all
2021-06-11 09:03:22 -04:00
Matthew Phillips
ce9336115e
Document the minimum node version (#379)
* Document the minimum node version

* Adds the changeset
2021-06-11 09:03:06 -04:00
matthewp
cc5d000fdc [ci] yarn format 2021-06-10 18:11:17 +00:00
Matthew Phillips
afa09ee9dc
Add HMR port script when needed (#375)
* Always add HMR port script when HMR is enabled

* Add it only if there are client side components

* Fix the test

* Add a test where HMR port not set

* Upgrade snowpack version

* Fix snowpack semver
2021-06-10 14:10:15 -04:00
Drew Powers
a660e49f80
Add integration test for templates (#372) 2021-06-10 10:30:48 -06:00
Fred K. Schott
047b0fcc6c
Update syntax.md 2021-06-09 14:15:46 -07:00
Kevin (Kun) "Kassimo" Qian
5fbc1cb641
nit: ask user to modify devOptions.port when addr in use for dev (#347)
* nit: ask user to modify devOptions.port when addr in use for dev

* unnecessary import of red

* changeset
2021-06-09 16:48:25 -04:00
Christian Kaisermann
26853fd2ec
docs: fix browserlists link (#351)
* docs: fix browserlists link

* Update styling.md
2021-06-09 16:39:52 -04:00
Jeff
74d67b52c1
Fix broken link in README (#359)
The link to the "Partial Hydration" section from "Markdown" was missing a hyphen. Since I was changing it, I also moved it to the list of link reference definitions at the bottom.
2021-06-09 16:37:59 -04:00
Christopher Harrison
cbd5e1d259
Update vs code link (#366)
I think this is the link you wanted for the extension
2021-06-09 16:10:06 -04:00
Matthew Phillips
7d5e007bf7
Update contributing.md 2021-06-09 15:39:19 -04:00
Fred K. Schott
614b8b9a17
Update contributing.md 2021-06-09 12:35:28 -07:00
Fred K. Schott
1a77d4fe46 put vercel.json in right place 2021-06-08 20:02:43 -07:00
Fred K. Schott
a5ca75f9a7 add link to blog post on homepage 2021-06-08 17:11:30 -07:00
Fred K. Schott
266cd3961a test to trigger CI build 2021-06-08 17:01:00 -07:00
Fred K. Schott
348e2166f2 add github star to blog post 2021-06-08 16:44:56 -07:00