Commit graph

1745 commits

Author SHA1 Message Date
Jonathan Neal
e0c3318c09
Update Astro docs to use v0.21 (#1738)
* update docs site to leverage astro v0.21

* fix resolutions

* fix docsearch import

* Resolve `@docsearch/react` is a cross-execution-context-friendly way

* chore: update astro version

* fix: remove line highlighting syntax

* fix: braces inside of attr string

* Match current astro version

* Trim leading newline in MainLayout.astro template

* Move card grid styles into Layout

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-11-11 12:09:48 -05:00
matthewp
7bb768ddab [ci] yarn format 2021-11-11 16:56:59 +00: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
matthewp
8e3fd04dbd [ci] yarn format 2021-11-11 13:45:37 +00: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
FredKSchott
437203b74f [ci] collect stats 2021-11-11 12:05:24 +00:00
natemoo-re
bb1fa3e897 [ci] yarn format 2021-11-10 23:35:37 +00:00
Nate Moore
7eaabbb0e1
Markdown bug bash! (#1789) 2021-11-10 17:34:31 -06:00
jasikpark
4eaef602ac [ci] yarn format 2021-11-10 20:09:08 +00:00
Steve Murphy
3956bab271
Update deploy.md (#1781)
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-11-10 14:07:58 -06:00
Jonathan Neal
48bad7bdc0
Update www site (#1775)
* Remove snowpack.config.js

* Update reference to global.scss

* Add support for local fonts, otherwise load only woff2 fonts

* Update reference to error.scss

* Update reference to blog.scss

* Change `config.js` to `config.ts` with Vite change

Co-authored-by: jasikpark <calebjasik@jasik.xyz>
2021-11-10 14:46:18 -05:00
Yash
8d7ddeaa1b
docs: fix playbook anchor in governance.md (#1784) 2021-11-10 12:07:20 -06:00
Caleb Jasik
6e3b11ec22
Add theme-color meta tag to sites (#1777)
This both lets browsers reflect this color + provides Discord embeds a nice accent color
2021-11-10 18:15:51 +01:00
natemoo-re
27200e379f [ci] yarn format 2021-11-10 15:26:28 +00:00
Konstantinos Kostarellis
bb4de70294
fixes links in german docs + adds a german translation for installation.md (#1756)
* fixes links in german docs

* Adds german translation of installation.md

* Thnx for proofreading / correctinos

- agree upon informal version looking good so far
- next: fixing a few minor ones

Co-authored-by: Kim Schneider <web@schneider.kim>

* Finalizes the switch to informal german + some minor fixes

* applies changes from commit da8d4fdea0

Co-authored-by: Konstantinos Kostarellis <Konstantinos.Kostarellis@gmail.com>
Co-authored-by: Kim Schneider <web@schneider.kim>
2021-11-10 09:25:14 -06:00
FredKSchott
00eaca8896 [ci] collect stats 2021-11-10 12:05:30 +00:00
natemoo-re
f17892747e [ci] yarn format 2021-11-09 19:00:13 +00: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
jonathantneal
69092fec06 [ci] yarn format 2021-11-09 17:59:06 +00:00
Jonathan Neal
ba38147ccc
Support tsconfig.json & jsconfig.json aliases (#1747)
* Resolve paths from tsconfig or jsconfig

https://code.visualstudio.com/docs/languages/jsconfig
https://nextjs.org/docs/advanced-features/module-path-aliases

* edit: rename plugin to `@astrojs/vite-plugin-tsconfig-alias`

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* edit: switch from `ps` to `path.posix`

* edit: move sanitization of paths to loop

* edit: rename `resolveConfigPaths` to `configAliasVitePlugin`

* edit: update implementation based on feedback

* prettier

* edit: rename `matchTailingAsterisk` to `matchTrailingAsterisk`

* edit: cleanup with comments

* edit: spellcheck `condition` to `conditionally`

* edit: refactor based on feedback

* edit: Update README.md

* edit: cleanup baseUrl transformation and add explainer comments

* edit: cleanup resolutions and add commenting

* yarn lint

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-11-09 12:57:43 -05:00
Yoshiaki Togami
7acf762c12
Fix/check content type (#1754)
* test: add test case

* fix: add type guard insted of content.trim().length > 0

* test: fix test
2021-11-09 11:46:01 -06:00
Drew Powers
f22a5c45d8
Enable tests (#1773) 2021-11-09 10:06:25 -07:00
hayley
db215b902a
Update installation.md (#1776)
fix typo
2021-11-09 09:41:30 -07:00
Nate Moore
5caf276fb8
chore: update compiler (#1770) 2021-11-08 16:30:46 -06:00
Drew Powers
fd0e9ce605
fix: Improve Vite config merging (#1768)
#1755
2021-11-08 14:43:10 -07: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
Yoshiaki Togami
e8d63372ad
chore: fix link (#1758) 2021-11-08 10:26:20 -07:00
Rafid Muhymin Wafi
da8d4fdea0
added -- to pnpm create (#1760) 2021-11-08 10:23:38 -07:00
Konstantinos Kostarellis
aed5fa0303
minor adjustments for astro@next (#1763)
Co-authored-by: Konstantinos Kostarellis <Konstantinos.Kostarellis@gmail.com>
2021-11-08 10:23:12 -07:00
FredKSchott
7760870b2f [ci] collect stats 2021-11-08 12:05:13 +00:00
Jonathan Neal
18172a6750
Support PUBLIC_ environment variables (#1750)
* Support PUBLIC_ environment variables

* Remove unnecessary Test component
2021-11-08 06:28:15 -05: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
Nate Moore
80b9b86210
Update assets (#1761)
* chore: update assets

* chore: update icon-32 to be square
2021-11-07 11:59:02 -06:00
FredKSchott
87a8950765 [ci] collect stats 2021-11-07 12:09:03 +00:00
FredKSchott
d084faf05b [ci] collect stats 2021-11-06 12:07:14 +00:00
Sarah Rainsberger
8b54242a46
Adding CodeSandbox config file to all the "next" examples (#1744)
* Create sandbox.config.json specifying port 3000

* Update sandbox.config.json

* Create sandbox.config.json for blog example

* Create sandbox.config.json for multiple authors blog

* added sandbox config to portfolios

* [ci] yarn format

* added sandbox.config.json to more frameworks examples

* [ci] yarn format

Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2021-11-05 10:41:37 -05:00
Drew Powers
ecfc298506
fix: Vite URL bug (#1746) 2021-11-05 09:26:20 -06:00
FredKSchott
1a48bb73df [ci] collect stats 2021-11-05 12:05:37 +00:00
drwpow
9b7fe54a5c [ci] yarn format 2021-11-04 20:02:45 +00: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
FredKSchott
2c5e67bb44 [ci] collect stats 2021-11-04 12:05:19 +00:00
matthewp
ed3cfe230b [ci] yarn format 2021-11-03 16:29:53 +00:00
Rafid Muhymin Wafi
16e3aa8ee0
children error fix (#1734) 2021-11-03 12:28:41 -04:00
Jonathan Neal
0a9dfa01fb
restore astro typings (#1733) 2021-11-03 10:03:18 -04:00
FredKSchott
9344500376 [ci] collect stats 2021-11-03 12:05:02 +00: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
natemoo-re
c6ee6a5555 [ci] yarn format 2021-11-02 21:21:54 +00: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