Commit graph

397 commits

Author SHA1 Message Date
github-actions[bot]
63df5fbf23
Version Packages (#1967)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-22 10:27:46 -05:00
Nate Moore
aec4e8da27
fix: client:only behavior with a single renderer (#1959) 2021-11-22 08:47:26 -05:00
Nate Moore
8775730eb9
fix: avoid infinite loops in crawlCSS (#1956) 2021-11-22 08:47:14 -05:00
github-actions[bot]
b4818701fe
Version Packages (#1928)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 13:01:50 -08:00
Fred K. Schott
e6aaeff50c
Summarize changesets for 0.21 release (#1934)
* summarize changsets

* exit prerelease mode

* add back missing readme

* add back missing lit renderer
2021-11-19 12:57:17 -08:00
Matthew Phillips
a0d4d99a9a
Allow links/images to be loaded from browser /src (#1932)
* Allow links/images to be loaded from browser /src

* Adds a changeset

* typo
2021-11-19 15:25:05 -05:00
Nate Moore
abef02e516
Migrate www to new Markdown + Components format (#1925)
* chore: migrate `www` to new Markdown + Components format

* feat: expose `<Content />` component to `Astro.fetchContent`

* fix: Layout component bug

* chore: update all www posts
2021-11-19 13:49:03 -06:00
github-actions[bot]
3f76849a0b
Version Packages (next) (#1923)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 14:12:11 -05:00
Matthew Phillips
8733599e61
Add vite back as a dependency (#1921)
* Add vite back as a dep

* Adds a changeset
2021-11-19 14:07:45 -05:00
Matthew Phillips
2e0c790b3a
Add polyfill scripts to result.scripts (#1920)
* Add polyfill scripts to result.scripts

* These scripts are bundled together now

* Adds changeset
2021-11-19 14:06:05 -05:00
github-actions[bot]
285622b8ae
Version Packages (next) (#1916)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 12:49:37 -05:00
Matthew Phillips
00d2b62595
Adding a changeset for package.json bump (#1913)
* Adding a changeset

* Add changeset for remark plugin
2021-11-19 12:46:15 -05:00
github-actions[bot]
bb90ff60c8
Version Packages (next) (#1907)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 11:22:19 -05:00
Matthew Phillips
c76821687d
Remove further dependence on vite package (#1906)
* Remove further dependence on vite package

* Adds a changeset

* Add graymatter as a regular dep
2021-11-19 11:15:39 -05:00
github-actions[bot]
05a2c48449
Version Packages (next) (#1904)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 10:39:05 -05:00
Matthew Phillips
3b511059b9
Remove OSX \x00 workaround (#1901)
* Remove OSX \x00 workaround

* Adds a changeset
2021-11-19 10:23:21 -05:00
Matthew Phillips
41c6a772a2
Resolve vite client modules to vendored vite (#1903)
* Resolve vite client modules to vendored vite

* Adds a changeset
2021-11-19 10:23:04 -05:00
github-actions[bot]
a43410b68e
Version Packages (next) (#1881)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-19 01:21:00 -08:00
Fred K. Schott
c82ceff7eb fix #1778 2021-11-18 22:21:58 -08:00
Drew Powers
8986d33bfc
Improve error messages (#1875)
* Fix error handling in correct scope

Also improve Vite IDs for better module graph lookups

* Improve code frame

* Add changeset

* maybeLoc can be undefined

* Add tests

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-11-18 17:42:07 -07:00
Matthew Phillips
53d9cf5ec6
Dev server routing tests (and fixes) (#1879)
* Dev server routing tests (and fixes)

* Adding a changeset

* Bump the style-ssr test timeout
2021-11-18 11:13:54 -05:00
github-actions[bot]
eb4d5f1d8f
Version Packages (next) (#1873)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-17 16:25:02 -08:00
Fred K. Schott
c2668afed0
add create-astro to build:all (#1872)
* add create-astro to build:all

* mark error objects as any, instead of unknown
2021-11-17 16:22:43 -08:00
github-actions[bot]
96d5a94280
Version Packages (next) (#1863)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-17 19:05:54 -05:00
Matthew Phillips
0ce86dfdf3
Fix for built scoped Vue styles (#1868)
* Fixes #1844

* Adds a changeset

* Remove all special casing

* Add a clarifying comment
2021-11-17 15:57:47 -05:00
Fred K. Schott
6b598b2401
fix middleware order (#1865) 2021-11-17 12:40:30 -08:00
Nate Moore
dbc49ed62c
fix: HMR regression (#1858)
* fix: HMR regression

* fix: inject HMR script directly
2021-11-17 14:10:05 -06:00
Fred K. Schott
6c66d4834b
fix npm init flag handling in create-astro (#1862)
* fix npm init flag handling

* Update index.ts

* Update real-cats-act.md
2021-11-17 10:30:12 -08:00
github-actions[bot]
9f5e196019
Version Packages (next) (#1847)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-16 17:13:29 -05:00
Matthew Phillips
0f9c191010
Fix: dev server routing when not using subpath (#1846)
* Fix: dev server routing when not using subpath

* Better comment

* Adds a changeset

* Remove testing file

* Rename this.pathname to this.devRoot
2021-11-16 17:10:20 -05:00
github-actions[bot]
750c249c32
Version Packages (next) (#1796)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-16 13:06:58 -08:00
Drew Powers
3cd1458aa7
Fix Windows CSS bundling bug (#1840)
* Fix Windows CSS bundling bug

JS components’ styles accidentally left out of final build on Windows

* Review feedback
2021-11-16 13:59:41 -07:00
Nate Moore
824c1f2024
Implement client:only handling (#1716)
* WIP: improve `client:only` handling

* feat: implement `client:only` in renderer

* test: reenable client:only tests

* feat: improve SSR error messages

* fix: add `resolvePath` method to Metadata

* test: fix client-only test

* chore: fix custom-elements handling

* test: revert `custom-elements` test change

* fix: do not assign a default renderer even if there's only one configured

* chore: bump compiler

* chore: add changeset
2021-11-16 10:01:14 -06:00
Drew Powers
65216ef921
Fix PostCSS (and Autoprefixer) processing (#1837)
* Fix PostCSS processing

* Skip Windows tests

(for now)
2021-11-15 14:16:07 -07:00
Bence Molnár
4e55be9006
Use normalized path to detect layout files (#1822)
Co-authored-by: Bence Molnár <bencemol@users.noreply.github.com>
2021-11-15 12:47:39 -05:00
Drew Powers
3b8f201c4b
Update build output (#1814) 2021-11-15 10:13:35 -07:00
Matthew Phillips
fca1a99dbd
Support for using a subpath (#1801)
* Support for using a subpath

* Update the readme

* Fix the package name

* Adds a changeset

* Ensure that public/ must be loaded from the subpath

* Update preview to use the new paths

* Use exact compiler version

* Use the newest version

* Use range again

* Use newer range
2021-11-15 10:33:51 -05:00
Matthew Phillips
65d17857ce
Uncomment hoisted scripts (#1743)
* Uncomment hoisted scripts

* Get hoisted scripts to pass

* Adds a changeset
2021-11-11 14:35:46 -05:00
Matthew Phillips
b958088c3d
Add display: contents for hydrated components (#1794)
* Add display: contents for hydrated components

* Only serialize boolean attrs that are data attrs

* Adds a changeset
2021-11-11 11:55:50 -05:00
github-actions[bot]
83be55d5dd
Version Packages (next) (#1791)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-11 08:48:04 -05:00
Matthew Phillips
fd52bceea4
Build/bundle assets and CSS (#1786)
* Bundling CSS

* Current progress of building assets

* New build progress

* Its finally working

* Force css to go through the build

* Prettier filenames

* Split into separate CSS and HTML plugins

* Always have at least one input

* Bring back in sitemaps + output

* Bring back srcset support

* Bundle CSS

* Bring back minify

* Update dynamic tests

* Update remaining tests

* Linting

* Fix remaining broken test

* Use fs directly

* Adding a changeset

* Use path.posix

* Debugging windows

* More debugging

* Pass URLs into readFile

* Remove some debugging stuff

* Remove force flag from transformWithVite

* Update packages/astro/src/vite-plugin-build-css/index.ts

Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>

Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
2021-11-11 08:44:11 -05:00
Nate Moore
7eaabbb0e1
Markdown bug bash! (#1789) 2021-11-10 17:34:31 -06:00
github-actions[bot]
9763b255dd
Version Packages (next) (#1745)
* Version Packages (next)

* chore: update changelog

* chore: update CHANGELOG

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-09 12:59:13 -06:00
Nate Moore
fbae2bc52f
Improve astro.config loading (#1764)
* Revert "Revert "feat: improve `astro.config` loading by support `.cjs`, `.js`, and `.ts` files""

This reverts commit a26f7a2088.

* fix: throw when filename is specified but not found

* chore: @proload/core@0.2.1

* refactor: simplify to use Proload's filePath option

* fix: move to @proload/plugin-tsm

* Update packages/astro/src/core/config.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-11-08 14:57:31 -06:00
Nate Moore
a26f7a2088 Revert "feat: improve astro.config loading by support .cjs, .js, and .ts files"
This reverts commit 058d1a0ff7.
2021-11-07 20:28:25 -06:00
Nate Moore
058d1a0ff7 feat: improve astro.config loading by support .cjs, .js, and .ts files 2021-11-07 20:27:55 -06:00
Drew Powers
2e1bded735
Get Tailwind HMR working (first cut) (#1736)
* Get Tailwind HMR working

* PR feedback

* perf: improve HMR `head` performance

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-04 14:01:28 -06:00
github-actions[bot]
8de20f7435
Version Packages (next) (#1731)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-02 16:22:40 -05:00
Nate Moore
11ee158ad5
Update @astrojs/compiler (#1730)
* chore: update @astrojs/compiler

* fix: add Fragment handling

* chore: add changeset
2021-11-02 16:20:35 -05:00
github-actions[bot]
e0d9a7627d
Version Packages (next) (#1709)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-10-29 14:48:54 -05:00