Commit graph

3862 commits

Author SHA1 Message Date
Bjorn Lu
a38a568299
Fix incorrect css test (#4451) 2022-08-24 22:11:42 +08:00
Moritz Stückler
c960f602da
feat: add screenshots to official theme readme files (#4442)
* feat: add screenshot to basic example

* feat: add screenshot to blog examples

* feat: add screenshots to docs example

* feat: add screenshot to portfolio example
2022-08-24 10:01:01 -04:00
Bjorn Lu
1daaaf3d71
Remove debugger statements (#4449) 2022-08-24 09:58:28 -04:00
Bjorn Lu
85646918ac
Refactor CSS preprocess and HMR (#4422) 2022-08-24 21:06:48 +08:00
matthewp
ea4d68c0b0 [ci] format 2022-08-23 19:58:11 +00:00
hippotastic
57fafc7c01
Add tests: Special chars in component import paths (#4263)
* Add tests: Special chars in component import paths

* Fix ESLint warnings, add Windows dev exclusion

* Crude fix

* chore: update compiler

* chore: bump compiler

* fix: remove decodeURI

* Fix tests and skip them for now

Co-authored-by: Princesseuh <princssdev@gmail.com>
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-23 15:55:03 -04:00
Fred K. Bot
65885e2066
[ci] update lockfile (#4434)
* [ci] update lockfile

* Pin rollup to ~2.77.0

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2022-08-23 15:49:43 -04:00
Fred K. Bot
5427e89491
[ci] release (#4431)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-23 15:27:10 -04:00
bholmesdev
1f702ce011 [ci] format 2022-08-23 18:09:01 +00:00
Ben Holmes
df4e999284
Add logs for long-running integration hooks (#4445)
* feat: basic logging for long astro:build:done hooks

* feat: add long time msg to all build hooks

* feat: use logger for long time msg

* chore: changeset
2022-08-23 14:07:09 -04:00
matthewp
77f9afa44a [ci] format 2022-08-23 17:28:38 +00:00
Matthew Phillips
27ac6a03a1
Use CSS depth to sort CSS in production (#4446)
* Use CSS depth to sort CSS in production

* Adds a changeset
2022-08-23 13:26:49 -04:00
Ben Holmes
adb2079796
Fix MDX style imports when layout is not applied (#4443)
* fix: add "astro.needsHeadRendering" to MDX

* test: style imports in pages without layout

* chore: changeset
2022-08-23 13:25:35 -04:00
Erika
ca0c7e8b83
Allow string as a valid value for the target attribute (#4441) 2022-08-23 11:39:02 -03:00
Bjorn Lu
baa2ddd010
Warn hydration directive for Astro components in JSX (#4330)
* Warn hydration directive for Astro components in JSX

* Add changeset

* Better comment
2022-08-23 10:38:31 -04:00
Ben Holmes
dc42f2c00f
Fix astro add @example-org/integration (#4430)
* fix: parse third-party org names

* chore: changeset
2022-08-23 10:09:39 -04:00
matthewp
bc5cb85232 [ci] format 2022-08-23 12:50:09 +00:00
Matthew Phillips
f40065f510
Ensure index pages are generated on paginated results (#4426)
* Ensure index pages are generated on paginated results

* Changeset
2022-08-23 08:47:20 -04:00
Kiril Shevchuk
8164fa6f1a
Fix invalid hook usage for exports (#4385)
* Add proper support functional components exports

* Add changeset

* Add support for `export default X`
2022-08-23 08:46:51 -04:00
Cameron McEfee
b2e976f39c
fix (core): allow falsy values in astro config integrations arrays (#4427)
* allow falsy values in astro config integrations arrays

* add changeset
2022-08-23 08:23:08 -04:00
Ben Holmes
a2414bf59e
Improve MDX glob perf - move Layout to async import (#4428)
* fix: move layout to async import

* chore: changeset

* docs: clarify async import
2022-08-22 18:18:30 -04:00
Fred K. Bot
c8d0fa4c4e
[ci] release (#4425)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 16:53:44 -04:00
matthewp
a20e811795 [ci] format 2022-08-22 19:49:45 +00:00
Fred K. Bot
457e559cd5
[ci] release (#4363)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 15:46:46 -04:00
Tony Sullivan
579e2daf8d
[@astrojs/image] Handle query params in remote image URLs during SSG builds (#4338)
* fix: SSG builds should remove query params when building local image files

* chore: add changeset

* handling an edge case related to stripping extensions from a filename
2022-08-22 19:45:34 +00:00
tony-sull
2c40fba0c8 [ci] format 2022-08-22 19:15:35 +00:00
Tony Sullivan
c4af8723bd
[@astrojs/image] adds a logger to the the image integration (#4342)
* WIP: adding a console logger that respect vite.logLevel

* adds an optional prefix for messages

* remove temporary debug log

* typo fix

* cleaning up log syntax

* fixing logger whitespace

* adding README docs

* test: disable integration logging in tests

* chore: add changeset
2022-08-22 19:13:19 +00:00
Nu11Terminator
4ac2718883
fix: vercel static export path (#4370)
This enables the use of `{ output: static, adapter: vercelStaticAdapter}`

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-22 14:50:15 -04:00
Rui Saraiva
be2774b357
chore(basics): update README folder structure (#4417) 2022-08-22 14:26:44 -04:00
Fred K. Schott
7310e8a178
add an alpine integration and update example (#4406) 2022-08-22 14:25:57 -04:00
Fred K. Schott
a70f69a06c
refactor the JSX plugin to improve performance (#4405) 2022-08-22 14:25:09 -04:00
sergix
dd52b2192d
Include note about Tailwind per-component errors using '@apply' (#4353)
* add: @apply exceptions for component frameworks

Some frameworks, specifically Vue, will not recognize global @layer directives in a global stylesheet because of how Vue's build system works. Instead, prefer to add a plugin to your Tailwind config. #2660, #3073

* Update README.md

* Update README.md
2022-08-22 14:18:17 -04:00
EBits00
8f20b18875
Updated Express code to serve assets (#4402)
Assets where not served so the style was not applied, fixed this by adding the line app.use(express.static('dist/client/'))
2022-08-22 12:33:54 -04:00
Maik Jablonski
8264f85f1d
Running Astro as SSG on Vercel without adapter (#4299)
Fixes the 404 handling.
2022-08-22 11:47:14 -04:00
Ben Holmes
7820096e1b
fix: correctly add react-dom alias to Vercel edge (#4421)
* fix: correctly add react-dom alias to vercel edge

* chore: changeset
2022-08-22 11:46:02 -04:00
Bjorn Lu
39088e11db
Bump Vite to 3.0.9 (#4415) 2022-08-22 10:58:50 -04:00
matthewp
0402eb0972 [ci] format 2022-08-22 14:41:22 +00:00
Matthew Phillips
5e82f6c245
Fix race condition with directive definitions (#4375) 2022-08-22 10:39:16 -04:00
Eldemarkki
439f1d1c0d
Fix typo in stricter tsconfig (#4394) 2022-08-20 20:45:23 +08:00
Vincent Uden
2615042923
Fix typo in the docs example (#4382) 2022-08-19 16:06:53 +08:00
Bjorn Lu
77b068086d
Preserve all error stack lines (#4364) 2022-08-18 14:36:31 +08:00
Nate Moore
41b81d0d7e
Switch examples favicon to use svg (#4331)
* chore(examples): switch favicon to svg

* chore: astro.svg => favicon.svg

* Update examples/basics/README.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-08-17 15:19:04 -05:00
tony-sull
1beb3f9747 [ci] format 2022-08-17 19:38:50 +00:00
Tony Sullivan
1c6895884c
Testing perf improvements for e2e tests (#4354)
* WIP: testing fixes to share the dev server in e2e test suites

* temp: testing multiple workers

* Revert "temp: testing multiple workers"

This reverts commit 9c7bc9d93c9c3f6dd62e3732f878f2d86016b213.
2022-08-17 19:37:10 +00:00
Chris Swithinbank
beed20be4a
Provide correct MIME type for dynamic endpoint routes in dev (#4356) 2022-08-17 20:07:14 +02:00
Bjorn Lu
500332a426
Refactor static build config merge (#4344) 2022-08-17 23:24:14 +08:00
Caleb
675b6d47f4
Fix example blog post markdown-style-guide.md image extension (#4360) 2022-08-17 16:11:09 +08:00
Joseph Lozano
aa5118e854
Fallback to undefined rather than false when resolving CLI flags (#4362) 2022-08-17 15:47:38 +08:00
Fred K. Bot
1de82f0f78
[ci] release (#4333)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-16 10:14:44 -04:00
Patrick Smith
45fdbc4650
Don’t use Buffer.byteLength() as Deno can’t use it (#4324)
* Don’t use Buffer.byteLength() as Deno can’t use it

* Add changeset

* Add tests for Markdown & MDX with Deno

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-16 10:08:40 -04:00