0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
Commit graph

353 commits

Author SHA1 Message Date
FredKSchott
f159c18bf5 [ci] collect stats 2022-05-06 12:02:39 +00:00
FredKSchott
3795785b2d [ci] collect stats 2022-05-05 12:06:38 +00:00
FredKSchott
8de641cb7f [ci] collect stats 2022-05-04 12:02:40 +00:00
Matthew Phillips
f76038ac7d
Telemetry (#3256)
* feat: add @astrojs/telemetry

* feat: add telemetry events, add queueing system

* feat(telemetry): record CLI events

* chore: add note

* feat: support generic TELEMETRY_DISABLED env var

* Fix test script

* shim telemetry in tests

* Shim telemetry in other commands

* Stub telemetry in the memory leak test

* Disable telemetry in smoke tests

* Adds a changeset

* Run the formatter

* few updates

* Include config keys

* Add shallow viteKeys array:
:

* Add vite keys and tests

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-03 09:07:28 -04:00
FredKSchott
4599f1fc94 [ci] collect stats 2022-05-03 12:02:13 +00:00
FredKSchott
c3f411a7f2 [ci] collect stats 2022-05-02 12:03:59 +00:00
FredKSchott
43bb1ee66b [ci] collect stats 2022-05-01 12:02:17 +00:00
FredKSchott
28bfe3daf2 [ci] collect stats 2022-04-30 12:05:15 +00:00
Juan Martín Seery
6cd9ef577e
chore: remove unintended changelogs (#3233)
* Removed unused CHANGELOGS

* Added `astro-scripts` to changeset ignore

* Reverted config.json
2022-04-29 08:41:16 -07:00
FredKSchott
eb5c9a8b14 [ci] collect stats 2022-04-29 12:02:09 +00:00
FredKSchott
e90be57c25 [ci] collect stats 2022-04-28 12:07:04 +00:00
FredKSchott
b3272f758f [ci] collect stats 2022-04-27 12:02:25 +00:00
FredKSchott
8dd16e38c1 [ci] collect stats 2022-04-26 12:07:02 +00:00
FredKSchott
3bb23ba6c3 [ci] collect stats 2022-04-25 12:07:00 +00:00
FredKSchott
205c499a3e [ci] collect stats 2022-04-24 12:01:50 +00:00
FredKSchott
0714c58aa7 [ci] collect stats 2022-04-23 12:05:20 +00:00
Fred K. Schott
bd76716c88
[ci] update lockfile (#3162)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-22 10:04:01 -04:00
FredKSchott
e632c09049 [ci] collect stats 2022-04-22 12:02:07 +00:00
FredKSchott
add650a47f [ci] collect stats 2022-04-21 12:04:14 +00:00
Fred K. Schott
00b8343844
[ci] update lockfile (#3153)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-20 09:42:31 -04:00
FredKSchott
b19628e0a7 [ci] collect stats 2022-04-20 12:02:22 +00:00
FredKSchott
c35e94f544 [ci] collect stats 2022-04-19 12:07:11 +00:00
FredKSchott
41d503c7b1 [ci] collect stats 2022-04-18 12:02:12 +00:00
FredKSchott
83db4ef5b6 [ci] collect stats 2022-04-17 12:02:05 +00:00
FredKSchott
73bf2e5923 [ci] collect stats 2022-04-16 12:02:03 +00:00
FredKSchott
fa573f0e97 [ci] collect stats 2022-04-15 12:02:12 +00:00
FredKSchott
1b6cb6cfea [ci] collect stats 2022-04-14 12:02:14 +00:00
github-actions[bot]
b23f6b1596
[ci] release (#3101)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13 08:55:32 -04:00
FredKSchott
200a01c4f8 [ci] collect stats 2022-04-13 12:03:01 +00:00
FredKSchott
f968c05489 [ci] collect stats 2022-04-12 12:03:58 +00:00
Fred K. Schott
771127ea29
remove unused renderers (#3063) 2022-04-11 11:19:41 -07:00
FredKSchott
6c6e947740 [ci] collect stats 2022-04-11 12:03:17 +00:00
Fred K. Schott
77c0be5b26
update lockfile (#3059) 2022-04-10 19:12:30 -07:00
Juan Martín Seery
982f64f69a
chore: updated esbuild (#3028)
* chore: updated esbuild

* Changeset
2022-04-10 14:33:10 -07:00
FredKSchott
ce0c54ae43 [ci] collect stats 2022-04-10 12:02:10 +00:00
FredKSchott
eb2ac8d53b [ci] collect stats 2022-04-09 12:01:54 +00:00
FredKSchott
3c5715a740 [ci] collect stats 2022-04-08 12:02:04 +00:00
FredKSchott
0b96d8d0c2 [ci] collect stats 2022-04-07 12:07:09 +00:00
FredKSchott
29792649d2 [ci] collect stats 2022-04-06 12:02:22 +00:00
FredKSchott
50bd14aca8 [ci] collect stats 2022-04-05 12:02:09 +00:00
FredKSchott
cd1c407e20 [ci] collect stats 2022-04-04 12:03:22 +00:00
FredKSchott
64869b5710 [ci] collect stats 2022-04-03 12:01:54 +00:00
Fred K. Schott
1335797903
update prettier width (#2968) 2022-04-02 14:15:41 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode (#2967) 2022-04-02 13:37:28 -06:00
Nate Moore
17c02925c5
Migrate to new config (#2962)
* wip: config migration

* fix: formatting

* refactor: projectRoot -> root

* refactor: pageUrlFormat -> format

* refactor: buildOptions.site -> site

* refactor: public -> publicDir

* refactor: dist -> outDir

* refactor: styleOptions -> style

* fix: some dist tests -> outDir

* refactor: remove legacyBuild (with TODOs)

* refactor: more legacyBuild cleanup

* refactor: server host and port

* fix: remove experimentalStaticBuild CLI flag

* refactor: src -> srcDir

* refactor: devOptions.trailing -> trailing

* refactor: remove sitemap + related flags

* refactor: experimentalSSR -> experimental.ssr

* fix: last devOptions

* refactor: drafts -> markdown.drafts

* fix: TS error on port as const

* refactor: remove pages

* refactor: more --project-root updates

* refactor: markdownOptions -> markdown

* fix: remaining type errors

* feat: update AstroUserConfig

* refactor: update CLI flag mapper + server mapper

* fix: loadFixture projectRoot

* fix: merge CLI flags before validating / transforming

* wip: attempt to fix bad createRouteManifest config

* refactor: combine config.base and config.site

* fix: skip route manifest test for now

* fix: site and base handling

* refactor: update failing config testes

* fix: build failure

* feat: update config types with migration help

* chore: update types

* fix(deno): update deno fixture

* chore: remove config migration logic

* chore: remove logLevel

* chore: clean-up config types

* chore: update config warning

* chore: add changeset

* Sitemap Integration (#2965)

* feat: add sitemap filter config option

* feat: add canonicalURL sitemap config option

* docs: update sitemap README

* fix: update for new config

* fix: filter not being applied

* chore: changeset

Co-authored-by: bholmesdev <hey@bholmes.dev>

* fred pass

* fix: Astro.resolve typo

* fix: public => publicDir

Co-authored-by: bholmesdev <hey@bholmes.dev>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-02 12:29:59 -06:00
FredKSchott
42760e07ca [ci] collect stats 2022-04-02 12:01:59 +00:00
FredKSchott
2886cc2e71 [ci] collect stats 2022-04-01 12:04:05 +00:00
FredKSchott
25c1abff10 [ci] collect stats 2022-03-31 12:02:15 +00:00
FredKSchott
364ece8776 [ci] collect stats 2022-03-30 12:02:44 +00:00
FredKSchott
f89dc5c04a [ci] collect stats 2022-03-29 12:06:44 +00:00
FredKSchott
c40813e932 [ci] collect stats 2022-03-28 12:02:06 +00:00
FredKSchott
cc5631bdea [ci] collect stats 2022-03-27 12:01:57 +00:00
FredKSchott
4a995817f1 [ci] collect stats 2022-03-26 12:03:39 +00:00
FredKSchott
d7111ba388 [ci] collect stats 2022-03-25 12:02:11 +00:00
FredKSchott
003df32122 [ci] collect stats 2022-03-24 12:02:03 +00:00
FredKSchott
715fab4faf [ci] collect stats 2022-03-23 12:06:45 +00:00
FredKSchott
930dc75c13 [ci] collect stats 2022-03-22 12:02:05 +00:00
FredKSchott
3a7f992c29 [ci] collect stats 2022-03-21 12:06:38 +00:00
FredKSchott
2a8580c251 [ci] format 2022-03-19 17:34:21 +00:00
Nate Moore
9219d5e1c0
Release bot (#2836)
* fix(ci): improve release-bot message by dynamically generating packageMap

* fix(ci): update changeset to refresh lockfile after version
2022-03-19 10:33:24 -07:00
FredKSchott
0a498d7289 [ci] collect stats 2022-03-19 12:02:55 +00:00
Fred K. Schott
6386c14d00
Astro Integration System (#2820)
* update examples

* add initial integrations

* update tests

* update astro

* update ci

* get final tests working

* update injectelement todo

* update ben code review

* respond to final code review feedback
2022-03-18 15:35:45 -07:00
FredKSchott
0af017b9fc [ci] collect stats 2022-03-18 12:01:52 +00:00
FredKSchott
f6709d7259 [ci] collect stats 2022-03-17 12:02:08 +00:00
FredKSchott
0a330fdc9a [ci] collect stats 2022-03-16 12:02:01 +00:00
github-actions[bot]
2b89613539
[ci] release (#2808)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 19:40:27 -05:00
Nate Moore
9e59ec921f
Disable sourcemaps for build (#2806)
* fix: disable sourcemaps for build

* chore: add changeset
2022-03-15 19:25:24 -05:00
FredKSchott
0e4662df01 [ci] collect stats 2022-03-15 12:02:12 +00:00
FredKSchott
77e5733deb [ci] collect stats 2022-03-14 12:01:47 +00:00
FredKSchott
df4ebd479e [ci] collect stats 2022-03-13 12:01:50 +00:00
FredKSchott
659ef9bd93 [ci] collect stats 2022-03-12 12:01:40 +00:00
Fred K. Schott
1634172ff9
[ci] update lockfile (#2763)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-11 16:38:28 -06:00
FredKSchott
ba68daa235 [ci] collect stats 2022-03-11 12:02:13 +00:00
Fred K. Schott
79fc320480
update deps: esbuild, typescript (#2750)
* update dep: typescript

* update dep: esbuild

* update types

* update types

* update dep: es-module-lexer

* update tests
2022-03-10 09:55:40 -06:00
Nate Moore
567008cfc1
chore(ci): remove second smoke test with --experimental-static-build flag (#2748) 2022-03-10 09:23:54 -06:00
FredKSchott
7c064f8f4f [ci] collect stats 2022-03-10 12:02:05 +00:00
Nate Moore
72c2c86e9d
merge next into main (#2705)
* Unflag the static build (#2652)

* Unflag the static build

* Only set legacyBuild to false if experimentalSSR is true

* Use legacy build when we have to

* Put a few more tests into legacy mode

* Last two

* Make astro-basic use the legacy build

* Adds a changeset

* Mark the lit test as legacy

* Update yarn lock

* Update based on feedback

* Add --legacy-build flag

* Move astro-basic test to use static build (#2682)

* Move some tests over to the static build (#2677)

* Move some tests over to the static build

* Fix assets tests

* Fix the assets tests

* Fix for the client:only components

* Moves asset tests to the static build

* Move postcss test over to static build

* Bring back legacy build for astro-basic test

* Move astro-basic test to use static build

* Migrate more tests to the static build (#2693)

* fix: disable HMR during build (#2684)

* Migrate more tests to the static build

* Only prepend links in non-legacy mode

* Add the 0-css tests

* Convert all CSS tests to the static build

* Migrate Astro global tests

* Remove .only

* Fix static build tests

* Migrate a few more

* More tests

* Move the lit test back to legacy

* Increase the test timeout

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

* Improve `head` injection behavior (#2436)

* feat: add renderHead util to server

* feat: remove `layouts` from config, Vite plugin

* fix: improve head injection during rendering

* chore: update compiler

* fix: do not escape links

* chore: enter `pre` mode

* Replace `send` with `sirv` (#2713)

* remove send

* Create thick-ravens-chew.md

* I feel like I'm going to screw something up

* working finally!

* rewrite req.url

* Add tiny bit of doc

* Update .gitignore

Co-authored-by: Evan Boehs <evan@boehs.org>

* Move remaining tests to the static build (#2712)

* Move lit test to the static build

* Migrate astro-env plugin to work in the static build

* Do not remove vite:define

* Adds a changeset

* Add a warning when passing the --experimental-static-build flag (#2718)

* Add a warning when passing the --experimental-static-build flag

* Disable the lint warning

* [ci] release (next) (#2721)

* [ci] release (next)

* chore: update changeset

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>

* 404 page (#2719)

* Fix: build to 404.html in the static build

* Adds a changeset

* fix pnpm install missing peer deps

* fix svelte version in workspace

* fix lockfile

* fix(webapi): add dev script

* improve preview reliability (#2739)

* improve preview reliability - fix broken tests

* shamefully hoist to unblock

* remove lit from test running

* chore: update lockfile

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Evan Boehs <evan@boehs.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-09 15:44:26 -06:00
FredKSchott
e27865d2af [ci] collect stats 2022-03-09 12:01:58 +00:00
Fred K. Schott
240d88aefe
fix format (#2736) 2022-03-08 15:20:04 -08:00
Ben Holmes
0ae96bb749
Fix/2177/log missing local network ip (#2732)
* feat: show "localhost" for local network IPs

* refactor: remove timestamps from addr logs

* fix: hide timestamp on null types

* feat: add emoji OS helper

* feat: make logs 100% nicer

* refactor: extract isLocalHost to util

* feat: update preview logs to match

* chore: add changeset

* fix: pull pkg version from package.json

* refactor: remove 👉 guys

* fix: devStart return type

* feat: inject process.env.PACKAGE_VERSION at build time

* feat: update unit test for hostname checks

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-08 17:11:18 -05:00
Nate Moore
d08ddaf5b9
Move from yarn to pnpm (#2455)
* chore: `yarn` => `pnpm`

* docs: `yarn` => `pnpm`

* chore(ci): yarn => pnpm

* chore(ci): update pnpm cache path

* fix: add missing deps

* fix: add missing deps

* test: add package.json to all test fixtures

* chore: improve hoisting behavior

* chore: move turbo into package.json

* chore: update npmrc

* fix: add missing `debug` dependency

* chore: remove prepare script

* test: fix new tests

* fix: fully resolve renderer paths and `astro/internal` path

* chore: update lockfile

* chore: remove log

* fix: resolve renderers in vite-plugin-jsx

* fix: prefer public-hoist-pattern to shamefully-hoist

* chore: ignore @babel/core peer warning

* chore: update dependencies

* test: add autoprefixer as explicit dep

* chore: update `.npmrc` file in examples

* chore: update dependencies

* fix: resolve renderer dependencies in static build

* fix: static build renderer resolution

* chore: fix smoke tests

* chore: hoist autoprefixer

* chore: update lockfile

* attempt: use full file:// path on Windows

* attempt: use astro/internal

* attempt: optimize astro/internal

* attempt: expose ./internal.js

* chore: add missing package.json files

* attempt: resolve astro/internal path

* chore: tidy package.json

* chore: update lockfile

* chore: update deps

* chore: update deps

* chore: yarn -> pnpm

* attempt: explicit /@fs urls

* attempt: explicit /@fs urls

* chore: update all examples for pnpm

* chore: fix hoisting for with-vite-plugin-pwa

* chore(ci): fix sharp install

* chore: update with-vite-plugin-pwa example

* fix: pin vite-plugin-pwa to 0.11.11

* fix: add workbox-window to vite-plugin-pwa deps

* refactor: use pnpm update --recursive

Co-authored-by: JuanM04 <me@juanm04.com>

* chore: yarn => pnpm

* chore: yarn => pnpm

* fix: update smoke test to skip examples which don't work in static build

* update lockfile

* chore: update .npmrc files

* chore: update lockfile

* fix: smoke script

* chore: update .npmrc file

* fix: return to shamefully-hoist (shamefully)

* chore: update lockfile

* fix(smoke): ignore scripts for smoke tests

* fix: update example to disable renderers

* chore: bump version

* chore(ci): fix smoke tests

* attempt: disable --frozen-lockfile for smoke tests

* chore: update smoke test

* chore: fix rebase issue

* chore: update lockfile

* fix: smoke tests

* fix(ci): run external smoke tests first

* fix(ci): run syntax

* chore: update lockfile

* fix(ci): ensure submodules are up-to-date

* fix(ci): ensure submodules are up-to-date

* chore: update lockfile

* chore: update for webapi

* chore: silence node:* warnings

* chore: update deps

* fix(ci): persist generated webapi assets

* fix(ci): webapi build script

* chore(ci): remove custom node caching

* chore: keep turbo.json

* chore: update turbo, ignore create-astro

* chore: update deps

* fix(ci): test command

* chore(ci): update test script

Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-08 15:46:11 -06:00
natemoo-re
2f7a4f8eae [ci] yarn format 2022-03-08 16:49:21 +00:00
Nate Moore
068b8ee996
fix(ci): update notify script (#2730) 2022-03-08 10:48:12 -06:00
FredKSchott
42aae7a1c5 [ci] collect stats 2022-03-08 12:02:10 +00:00
Nate Moore
f18ee36dc0
Add @astrojs/webapi package (#2729)
* chore: add @astrojs/webapi

* chore: update package.json

* fix: update file case

* fix: remove lowercase file

* chore: update tests to use mocha

* chore: update LICENSE
2022-03-07 15:36:22 -06:00
FredKSchott
b1af0c0d2b [ci] collect stats 2022-03-07 12:02:23 +00:00
FredKSchott
dbeaf4e13c [ci] collect stats 2022-03-06 12:02:03 +00:00
FredKSchott
f656552ad7 [ci] collect stats 2022-03-05 12:02:03 +00:00
FredKSchott
3cd50d463a [ci] collect stats 2022-03-04 12:02:16 +00:00
FredKSchott
fd6c459d34 [ci] collect stats 2022-03-03 12:08:00 +00:00
Nate Moore
2482fe70b9
Refactor smoke tests to use submodules (#2702)
* chore: delete inlined repos

* refactor: move smoke tests to submodules

* chore: remove smoke sync action

* chore: update ci to fetch submodules for smoke test only

* chore: fix ci script

* feat: delete inlined smoke tests

* fix: update lockfile to exclude smoke tests

* chore(ci): ensure smoke tests can pass in CI
2022-03-02 16:08:42 -06:00
FredKSchott
16f80b1ca1 [ci] collect stats 2022-03-02 12:07:08 +00:00
Fred K. Schott
9ec8980bd2
fix failing format command in CI (#2696)
* fix failing format command in CI

* adds a check to formatting to ci

* ignore the prettier plugin for now

* update smoke to remove prettier plugin
2022-03-01 11:59:06 -08:00
FredKSchott
59a11a58d8 [ci] collect stats 2022-03-01 12:06:48 +00:00
FredKSchott
2221ed53f5 [ci] collect stats 2022-03-01 05:45:19 +00:00
Fred K. Schott
918f1ea4f7
Make smoke tests more deterministic (#2618)
* sync first remote smoke tests

* update smoke test scripts
2022-02-28 21:38:17 -08:00
FredKSchott
04ea9a4aa4 [ci] collect stats 2022-02-28 12:02:13 +00:00
FredKSchott
8343ff6fb5 [ci] collect stats 2022-02-27 12:02:17 +00:00
FredKSchott
f560292d82 [ci] collect stats 2022-02-26 12:02:13 +00:00
FredKSchott
7680fd5118 [ci] collect stats 2022-02-25 12:02:02 +00:00