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
Rafid Muhymin Wafi
bbff0a8a2b
Fiixed netlify and sentry urls ( #1505 )
2021-10-09 17:19:52 -05:00
matthewp
fb0ec06239
[ci] yarn format
2021-10-05 16:22:58 +00:00
Ryan Carniato
f8d1a35ace
Add hydration to Solid renderer ( #1479 )
...
* feat: add hydration to Solid renderer
* fix: intersection observer, move script to the end
2021-10-05 12:20:51 -04:00
github-actions[bot]
b5f1bd46ff
Version Packages ( #1472 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-01 13:36:02 -04:00
Merrick Christensen
0eeb25348e
switch from rm to unlink in order to preserve node 12 compatability in astro-create ( #1468 )
...
* switch from rm to unlink in order to preserve node 12 compatability in astro-create
* add changeset
2021-10-01 13:18:40 -04:00
Matthew Phillips
756e3769d3
Support PureComponent in the react renderer ( #1467 )
...
* Support PureComponent in the react renderer
* Adds a changeset
2021-10-01 11:25:17 -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
Joshua Byrd
ee27583111
Do we really need a massive 5MB+ banner that takes multiple seconds to load when people open the readme? ( #1459 )
...
* 5MB PNG > 789K JPG
* Different RAW address
* Revert "Different RAW address"
This reverts commit db47b99211
.
2021-09-30 00:28:53 -07:00
github-actions[bot]
b78a58ed33
Version Packages ( #1451 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-28 15:34:16 -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
github-actions[bot]
bf6357a233
Version Packages ( #1442 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-28 09:10:41 -04:00
AsyncBanana
3083563506
Fixed props shadowing ( #1433 )
...
* Fixed props shadowing
* Added changeset
* Added prop shadowing test
2021-09-27 11:52:57 -04:00
tony-sull
f061a2b54f
[ci] yarn format
2021-09-24 15:59:26 +00:00
Tero Lindeman
0fca1fbcab
Write pages serially and close file handle ( #1395 )
2021-09-24 17:58:08 +02:00
Drew Powers
939d5c3ae6
Add sponsorship logos ( #1371 )
2021-09-16 22:24:27 -06:00
FredKSchott
d895d3c079
[ci] yarn format
2021-09-16 20:07:52 +00:00
Fred K. Schott
291f2ef537
fix bad benchmark ( #1383 )
2021-09-16 13:06:43 -07:00
github-actions[bot]
ad2962fdac
Version Packages ( #1377 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-15 12:36:26 -04:00
Fred K. Schott
3a0dcbe9b1
Update stats.ts ( #1376 )
2021-09-15 08:53:26 -07:00
Jonathan Neal
98d785af1d
Expose slots to components ( #1368 )
...
* Expose slots to components via Astro.slots
* test: Add Astro.slots API tests
* docs: Document Astro.slots API
* docs: Duplicate Astro.slots documentation to other api-reference markdown
* Update proposal to use booleans, based upon RFC feedback
* update implementation & tests based on request
* changeset
2021-09-15 11:27:59 -04:00
FredKSchott
6623950fbc
[ci] yarn format
2021-09-15 00:24:07 +00:00
github-actions[bot]
3d9b665265
Version Packages ( #1358 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-14 17:22:50 -07:00
kelvinsjk
09b2f0e470
Fix passing Markdown content through props ( #1259 ) ( #1343 )
...
Co-authored-by: Kelvin Soh <kelvinsoh@pop-os.localdomain>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-09-14 17:03:45 -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
FredKSchott
6ac2568ae3
[ci] yarn format
2021-09-14 23:49:37 +00:00
(none)
d771dad669
Merge "Remove check for referenced files" ( #1196 )
...
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-09-14 16:47:54 -07:00
Drew Powers
97d37f8f49
Docs: Add READMEs for renderers ( #1351 )
...
* Add README stub for renderers
* Add renderer READMEs
2021-09-14 16:26:23 -07:00
FredKSchott
b5623ada16
[ci] yarn format
2021-09-13 18:12:51 +00:00
Bartek Igielski
dd92871fd7
Prevent removing CSS preloads during bundling ( #1326 )
...
* Prevent removing nodes, becasue styles preloading was detected earlier
* Add separate deduping for preloads and cover it with tests.
* Create quiet-horses-turn.md
* Test merging preload tags
2021-09-10 11:17:17 -06:00
github-actions[bot]
2847ff5382
Version Packages ( #1344 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-09 10:57:16 -07:00
Fred K. Schott
b03f877102
Revert "Version Packages ( #1303 )"
...
This reverts commit 1a88cfde7d
.
2021-09-09 10:53:52 -07:00
github-actions[bot]
1a88cfde7d
Version Packages ( #1303 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-09 10:41:31 -07:00
jasikpark
6fc8202e60
[ci] yarn format
2021-09-07 20:23:50 +00:00
Caleb Jasik
00fd7ca4dc
Fix parsing of an empty literal <pre></pre>
in markdown source ( #1332 )
2021-09-07 15:22:23 -05:00
FredKSchott
b4d1c9bc64
[ci] yarn format
2021-09-06 08:25:23 +00:00
Fred K. Schott
6dc05575a6
scale back the examples page
2021-09-06 01:21:55 -07:00
aFuzzyBear
d321d8366b
Adds examples page
2021-09-06 01:21:39 -07:00
FredKSchott
e516f9c953
[ci] yarn format
2021-09-03 18:07:39 +00: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
tony-sull
231020368e
[ci] yarn format
2021-09-03 17:48:25 +00:00
Fred K. Schott
3b4bbdc98d
Format config errors for humans ( #1298 )
...
* format config errors
* fix bad root
2021-09-03 17:47:12 +00:00
Fred K. Schott
ac2c00e99b
fix astro esm-cjs entrypoint ( #1300 )
2021-09-03 17:46:36 +00:00
Caleb Jasik
7cb31c6e01
Import unified types as unified since there is no default export for 'unified'. ( #1296 )
2021-09-03 10:42:20 -07:00
Mani Gandham
7f6c35f636
skip 404.html pages in sitemap generation ( #1287 )
...
* skip 404.html pages in sitemap generation
* update path check for 404
2021-09-01 15:02:11 -07:00
github-actions[bot]
a923268da2
Version Packages ( #1271 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-09-01 15:58:14 -04:00
Matthew Phillips
231964f084
Add interfaces for built-in components ( #1292 )
...
* Add interfaces for built-in components
* Adds a changeset
2021-09-01 15:49:01 -04:00
Mikkel Tønder
11a6f884be
create-astro: Format console logs and fix message about default renderers ( #1257 )
...
* create-astro: Format console logs and fix message about default renderers
Format the console log statements so the code is easier to read
Add a check to see if the renderers array is empty and only show the message about using the templates default renderers if it isn't
* Add changeset
2021-08-30 14:20:41 -07:00
Fred K. Schott
210fdad42e
fix bad README removal
2021-08-27 11:46:41 -07:00
github-actions[bot]
8d22e4eefe
Version Packages ( #1252 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-27 14:15:29 -04:00
Matthew Phillips
290f203279
Fix knownEntrypoint warning for Fix __astro_hoisted_scripts.js ( #1251 )
...
* Add new internal module to the knownEntrypoints
* Adds a changeset
2021-08-27 13:49:08 -04:00
github-actions[bot]
3bb97ea328
Version Packages ( #1246 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-27 10:46:14 -04:00
matthewp
cd684eb95e
[ci] yarn format
2021-08-27 14:45:59 +00:00
Jonathan Neal
5d2ea57841
Remove unused namespace redirection from the astro parser ( #1245 )
...
* nit: remove unused namespace checking from astro parser
* test: add tests for namespaced attributes, including one removed attribute
* add changeset
2021-08-27 10:43:58 -04:00
matthewp
5cc7947a58
[ci] yarn format
2021-08-27 14:13:41 +00:00
Matthew Phillips
788c769d78
Implementation of hoisted scripts ( #1178 )
...
* Implementation of hoisted scripts
* Use the facade id
* Adds docs on hoisted scripts
* Don't try to run rollup if there are no hoisted scripts
* Handle scripts possibly being undefined (client:only)
* Get rid of changes to the portfolio example
* Adds a changeset
* Remove a todo
* Fix lint errors
* Rename TransformResult property to hoistedScripts
* Move Hoisted Scripts docs to astro-components page
* Fixes lint errors
* Fix path join for windows
2021-08-27 10:12:27 -04:00
Fred K. Schott
fdd701dd88
Merge branch 'okikio/main' ( #1111 )
2021-08-26 15:04:44 -07:00
github-actions[bot]
84c18d3030
Version Packages ( #1239 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-26 15:20:38 -04: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
github-actions[bot]
c83d481733
Version Packages ( #1228 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-26 12:56:36 -04:00
Mark Howard
ba4eefdd09
updated comment 'threw' to 'through' ( #1235 )
2021-08-25 22:24:31 -05:00
Fred K. Schott
affcd04f0f
stop building, bundling, and transforming public/ files ( #1210 )
...
* stop bundling public/ files
* update www and examples
2021-08-25 11:51:04 -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
github-actions[bot]
a4a7685be1
Version Packages ( #1217 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-24 16:11:51 -04:00
matthewp
749617b2fb
[ci] yarn format
2021-08-24 19:51:59 +00:00
Mihkel Eidast
44fb8ebcc4
Fix linter errors and warnings ( #1218 )
...
* fix lint issues, enable lint in ci
* add changeset
2021-08-24 15:50:24 -04:00
Matthew Phillips
9482fadeb8
Fix resolution of Astro.resolve in nested components ( #1213 )
...
* Fix resolution of Astro.resolve in nested components
Components were previously tested, however nested folders were not.
* Adds a changeset
2021-08-24 13:38:07 -04:00
github-actions[bot]
582220c8a1
Version Packages ( #1206 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-23 14:18:18 -07:00
FredKSchott
69272dc8d1
[ci] yarn format
2021-08-23 21:08:16 +00: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
efb41f22c3
Add Astro <Debug/>
component ( #675 )
...
* Initial MVP Debug component
* Document the prettifying of the input
* Just make `<Debug/>` a wrapper around `<Prism/>` lol
* feat: add details/summary debug component
* chore: remove Props (unused)
* fix: prefer `div` to semantic elements
* chore: format
* fix: prop-drill `class` into components
* fix: ensure `astro/components` are evaluated lazily
* feat(debug): export debug component from `astro/debug`
* fix: minimal example local snowpack config
* docs: add debugging docs
* chore: add changeset
* docs: update debug docs
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-08-23 16:43:22 -04:00
github-actions[bot]
3963cef963
Version Packages ( #1181 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-23 15:59:55 -04:00
Fred K. Schott
166c9ed6bd
fix issue with multiple getStaticPaths calls during build ( #1194 )
2021-08-23 15:44:49 -04:00
Fred K. Schott
c06da5dd78
Add trailingSlash & pageDirectoryUrl config options ( #1197 )
2021-08-23 12:05:01 -07:00
Tushar Sadhwani
bebe6a425c
Remove whitespace ( #1176 )
2021-08-20 11:05:22 -07:00
Fred K. Schott
29b7e746e6
add a real-world check for ESM<>CJS named export support ( #1175 )
2021-08-20 11:04:55 -07:00
Tony Sullivan
1e0e2f41cd
including the language-
class on Prism's <pre>
element ( #1180 )
...
* including the `language-` class on Prism's `<pre>` element
* adding changeset
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-08-20 11:01:42 -07:00
github-actions[bot]
0c314791c4
Version Packages ( #1163 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-19 18:03:07 -06:00
Jonathan Neal
e66872125d
add dev script, switch documentation from advising start to dev script ( #1141 )
2021-08-18 22:07:08 -07:00
Drew Powers
ece0953aed
Fix :global() scoping ( #1162 )
...
* Fix :global() scoping
#1155
* Improve :global() scoping rules further
2021-08-18 20:46:47 -06:00
github-actions[bot]
986bed8ca4
Version Packages ( #1150 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-18 09:24:09 -07:00
Fred K. Schott
c4e9ce3b14
fix too strict "relative link" errors in docs website ( #1149 )
2021-08-18 09:05:50 -07:00
github-actions[bot]
66a6c5b06f
Version Packages (next) ( #1129 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-17 22:34:47 -07:00
matthewp
71eca0e338
[ci] yarn format
2021-08-17 17:46:25 +00:00
Tony Sullivan
1971ab3c60
Add support for client:only
hydrator ( #935 )
...
* Adding support for client:only hydration
* Adding documentation for client:only
* Adding changeset
* Updating the test to use a browser-only API
* Adding a browser-specific import script, this reproduces the issue where client:only imports must be removed
* typo fix
* removing mispelled test component
* WIP: delaying inclusion of component imports until the hydration method is known
* WIP: tweaking the test to use window instead of document
* When only one renderer is included, use that for client:only hydration
* temporary test script snuck into the last commit
* WIP: adding check for a client:only renderer hint
* refactor: Remove client:only components instead of delaying all component import statements
* Updating the changeset and docs for the renderer hint
* refactor: pull client:only render matching out to it's own function
* Updating renderer hinting to match full name, with shorthand for internal renderers
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-08-17 13:44:56 -04:00
Drew Powers
1f13e40316
Fix body scoping ( #1130 )
...
Fixes #1074
2021-08-16 17:47:09 -06:00
matthewp
24a40bee63
[ci] yarn format
2021-08-16 20:44:46 +00:00
Matthew Phillips
78b5bde14c
Astro.resolve ( #1085 )
...
* add: Astro.resolve
* Add docs and tests for Astro.resolve
* Add warnings when using string literals
* Prevent windows errors
* Adds a changeset
* Use the astro logger to log the warning
* Use the .js extension
* Dont warn for data urls
* Rename nonRelative and better match
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-08-16 16:43:06 -04:00
Jonathan Neal
d68ac85e7f
Add minimal template ( #1090 )
2021-08-15 14:13:58 -05:00
Jonathan Neal
0a04c69dbb
Fix left curly bracket formatting ( #1094 )
...
* Fix curly braces
* Add tests
* chore: formatting
* sstyle: update fix to be more explicit and ireduce chance of false positive
* style: use suggestions
Co-authored-by: mmarkelov <maks-markel@mail.ru>
2021-08-12 09:51:37 -07:00
github-actions[bot]
43e17e59da
Version Packages (next) ( #1092 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-12 01:39:34 -07:00
Fred K. Schott
dcb97b0223
make routing fixes from discord feedback ( #1091 )
2021-08-12 01:35:28 -07:00
github-actions[bot]
2b41db1531
Version Packages (next) ( #1089 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 16:30:24 -07:00
Fred K. Schott
a201dde5aa
Revert "Add PORT env var to be used ( #952 )"
...
This reverts commit 939b9d01a4
.
2021-08-11 16:23:20 -07:00
github-actions[bot]
10d6fa4bca
Version Packages (next) ( #1087 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:50:14 -07:00
FredKSchott
b63960f514
[ci] yarn format
2021-08-11 22:05:17 +00:00
Fred K. Schott
0f0cc2b9d8
Add file-based routing /w dynamic paths ( #1010 )
...
* wip: add file-based routing
* add pagination tests and nested pagination support
2021-08-11 15:04:09 -07:00
github-actions[bot]
b54c01bf66
Version Packages ( #1064 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:01:00 -07:00
Michael Stramel
939b9d01a4
Add PORT env var to be used ( #952 )
...
* Add PORT env var to be used
* Format
* Create few-carpets-sing.md
* Update few-carpets-sing.md
2021-08-11 14:57:05 -07:00