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

427 commits

Author SHA1 Message Date
Bjorn Lu
49ab4f231c
Remove proload for config loading (#5778)
* Refactor resolve and load config

* Add changeset

* Update name

* Remove unnecessary node_env handling

* Fix test

* Update comment
2023-01-06 12:49:18 -05:00
Bjorn Lu
fabd9124bd
Update esbuild dependency (#5534) 2022-12-06 22:11:59 +08:00
Fred K. Bot
5016166acf
[ci] release (#5239)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-31 10:21:09 -04:00
Erika
f604ef6c69
Run astro check on all examples in CI (#5022)
* Run astro check on all examples in CI

* Output stderr

* Build Astro before running checks

* Making things faster + colors

* Fix errors inside examples

* Add congrats message

* Revert unentional change to tsconfigs

* Remove more unneeded changes
2022-10-12 09:48:29 -03:00
Bjorn Lu
812658ad2a
Remove shamefully-hoist (#4842) 2022-09-28 23:13:33 +08:00
Fred K. Bot
077134ae2c
[ci] release (#4846)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-27 12:12:44 -04:00
Michael Rienstra
7481ffda02
create-astro: always create tsconfig.json (#4810)
* `create-astro`: always create `tsconfig.json`

Currently, we only make sure `tsconfig.json` exists when `strict` or `strictest` is selected. Both `default` & `optout` are intended to correspond to `base` -- and will do so for all [23 official templates](https://github.com/withastro/astro/tree/main/examples), but not necessarily for third-party templates.

The [example command for installing a third-party template](https://github.com/withastro/astro/blob/a800bf7/packages/create-astro/README.md?plain=1#L31-L35) is (rather conveniently for the sake of this PR!) an example of a template without a `tsconfig.json` file, and installing it with the `default` ("Relaxed") Typescript option results in no `tsconfig.json` file, rather than a `tsconfig.json` file containing `{ "extends": "astro/tsconfigs/base" }` as would be expected.

This PR addresses this scenario. 

It also explicitly sets the `tsconfig.json` file to `{ "extends": "astro/tsconfigs/base" }` when `default` (which I renamed to `base`, still presented to the user as "Relaxed") or `optout` is selected (`optout` has always printed a warning about the importance of `tsconfig.json` & `src/env.d.ts` but otherwise behaved identically to `default`). This is necessary in two scenarios:

1. When the `tsconfig.json` file was created by this script.
2. When it either didn't already include `"extends"`, or it extended a different config by default. For example, some third-party templates might default to `strict`, in which case I'm guessing we'd want to respect the user's choice and change that to `base`.

* update `del` 6.1.1 --> 7.0.0

* test: prevent excess writes
(without this it triggers many times)

* test: create-astro typescript prompt

* changeset

* fix: recursive `mkdirSync`

* test: longer timeout for `windows-latest` OS
(see if this fixes failing tests)

* better glob path creation, don't hardcode `/`

* test: longer timeout for windows-latest OS
(since I'm about to trigger another CI run by pushing a commit, might as well try this too)

* create-astro test: show last CLI output on timeout

* drop variable timeout
Typescript tests are slower than directory tests, but they are all usually less than 5000 ms. Less complexity, easier to maintain.

* DRY new error output

* Update lockfile

* Sync lockfile with main

* Update lockfile

Co-authored-by: Princesseuh <princssdev@gmail.com>
2022-09-22 14:37:01 -04:00
Nate Moore
9f067dca27
Astro 1.0.0 (#4214)
* chore: remove changesets patch

* chore: add changesets

* chore: version packages

* chore: normalize formatting

* chore: update lockfile

* chore: fix codeblocks

* Update packages/astro/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* chore: fixup code samples

* chore: move v0.25 message out of note

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-09 11:10:25 -05:00
Erika
f9ed77bb0d
Add editor integrations to language integrations (#3864) 2022-07-08 17:47:01 -04:00
Fred K. Bot
38f2fd7723
[ci] release (#3759)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-29 17:11:48 -05:00
Nate Moore
199fd91e8f
chore: escape template literals in prebuild script (#3745)
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-28 10:54:59 -05:00
Fred K. Bot
a59a27eb0c
[ci] release (#3733)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 15:11:59 +00:00
Ben Holmes
fb9ef4019b
Fix: prevent sourcemap warnings in monorepo "dev" mode (#3744)
* fix: avoid esbuild sourcemaps in astro-scripts dev

* chore: changeset
2022-06-28 10:20:21 -04:00
Fred K. Bot
768c8ed21d
[ci] update lockfile (#3740)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-28 08:33:13 -05:00
FredKSchott
a930aad5a7 [ci] collect stats 2022-06-27 12:02:16 +00:00
FredKSchott
ec3c4a30d2 [ci] collect stats 2022-06-26 12:02:11 +00:00
FredKSchott
8002271b81 [ci] collect stats 2022-06-25 12:02:10 +00:00
FredKSchott
3e6ed5d1bc [ci] collect stats 2022-06-24 12:02:05 +00:00
FredKSchott
aa883a50c8 [ci] collect stats 2022-06-23 12:02:10 +00:00
FredKSchott
49029b480d [ci] collect stats 2022-06-22 12:02:27 +00:00
FredKSchott
411af7ae4b [ci] collect stats 2022-06-21 12:02:12 +00:00
FredKSchott
6523591a8a [ci] collect stats 2022-06-20 12:02:03 +00:00
FredKSchott
925c567090 [ci] collect stats 2022-06-19 12:01:56 +00:00
FredKSchott
61a11d409c [ci] collect stats 2022-06-18 12:02:48 +00:00
FredKSchott
1a2f321e34 [ci] collect stats 2022-06-17 12:02:14 +00:00
matthewp
f6cdf1202e [ci] format 2022-06-16 13:55:54 +00:00
Matthew Phillips
4916b733c2
Inline hydration directive scripts (#3605)
* Inline hydration scripts

* Adds a changeset

* Update directiveAstroKeys type
2022-06-16 09:54:09 -04:00
FredKSchott
816e963509 [ci] collect stats 2022-06-16 12:02:22 +00:00
matthewp
f1f207839a [ci] format 2022-06-15 12:52:13 +00:00
Matthew Phillips
fc52321a88
Consolidate hydration scripts into just one (#3571)
* Remove redundant hydration scripts

* Prebuild the island JS

* Fix build

* Updates to tests

* Update more references

* Custom element test now has two classic scripts

* Account for non-default exports

* Restructure hydration directives

* Move nested logic into the island component

* Remove try/catch
2022-06-15 08:50:05 -04:00
FredKSchott
a7637e6b26 [ci] collect stats 2022-06-15 12:02:09 +00:00
FredKSchott
8ca284b080 [ci] collect stats 2022-06-14 12:02:18 +00:00
FredKSchott
2a798cc926 [ci] collect stats 2022-06-13 12:02:21 +00:00
FredKSchott
934f7e14ad [ci] collect stats 2022-06-12 12:02:14 +00:00
FredKSchott
a093c1fb82 [ci] collect stats 2022-06-11 12:02:44 +00:00
FredKSchott
70dc09bff3 [ci] collect stats 2022-06-10 12:02:36 +00:00
FredKSchott
0e5bb2949b [ci] collect stats 2022-06-09 12:02:31 +00:00
FredKSchott
16cf649e0a [ci] collect stats 2022-06-08 12:02:13 +00:00
FredKSchott
ab11179ba7 [ci] collect stats 2022-06-07 12:02:02 +00:00
FredKSchott
574f47e885 [ci] collect stats 2022-06-06 12:02:10 +00:00
FredKSchott
1bdc3cbf63 [ci] collect stats 2022-06-05 12:02:51 +00:00
FredKSchott
98e2b53ddc [ci] collect stats 2022-06-04 12:01:48 +00:00
FredKSchott
d2bfb754c0 [ci] collect stats 2022-06-03 12:02:15 +00:00
FredKSchott
45ae85c32f [ci] collect stats 2022-06-02 12:02:28 +00:00
Fred K. Schott
cfb85ee10e
[ci] update lockfile (#3495)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-01 10:39:32 -05:00
FredKSchott
9a98f6a332 [ci] collect stats 2022-06-01 12:02:47 +00:00
Fred K. Schott
c9d8b10a85
[ci] update lockfile (#3448)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-31 11:46:13 -05:00
FredKSchott
71af9c8dca [ci] collect stats 2022-05-31 12:02:27 +00:00
FredKSchott
1bf42a93a1 [ci] collect stats 2022-05-30 12:02:24 +00:00
FredKSchott
c81ef49b83 [ci] collect stats 2022-05-29 12:02:05 +00:00
FredKSchott
1a6b2113ef [ci] collect stats 2022-05-28 12:02:07 +00:00
FredKSchott
a95b1a5029 [ci] collect stats 2022-05-27 12:02:18 +00:00
FredKSchott
c4658ba857 [ci] collect stats 2022-05-26 12:02:06 +00:00
FredKSchott
c5563fa6c3 [ci] collect stats 2022-05-25 12:02:16 +00:00
FredKSchott
af179c0d89 [ci] collect stats 2022-05-24 12:02:33 +00:00
github-actions[bot]
8eec97fdd1
[ci] release (#3409)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-23 13:26:07 -04:00
FredKSchott
c8174a079a [ci] collect stats 2022-05-23 12:02:31 +00:00
FredKSchott
3aa1f7a003 [ci] collect stats 2022-05-22 12:02:34 +00:00
FredKSchott
51e80d55d3 [ci] collect stats 2022-05-21 12:02:20 +00:00
FredKSchott
3b60169c75 [ci] collect stats 2022-05-20 12:02:23 +00:00
FredKSchott
f0aea84920 [ci] collect stats 2022-05-19 12:02:27 +00:00
FredKSchott
eea2d89c0d [ci] collect stats 2022-05-18 12:02:20 +00:00
FredKSchott
5a81ef460f [ci] collect stats 2022-05-17 12:02:23 +00:00
FredKSchott
21d9d360ec [ci] collect stats 2022-05-16 12:06:47 +00:00
FredKSchott
65b448b409 [ci] collect stats 2022-05-15 12:02:04 +00:00
FredKSchott
f609b5e9f2 [ci] collect stats 2022-05-14 12:01:57 +00:00
FredKSchott
c02542eeaa [ci] collect stats 2022-05-13 12:01:56 +00:00
Fred K. Schott
7cd4b1bc12
[ci] update lockfile (#3287)
* [ci] update lockfile

* chore: fix lockfile

* fix: pin turbo

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-12 11:42:34 -05:00
FredKSchott
2fed346a00 [ci] collect stats 2022-05-12 12:02:06 +00:00
FredKSchott
71f852cad9 [ci] collect stats 2022-05-11 12:04:20 +00:00
FredKSchott
1acbcaba9e [ci] collect stats 2022-05-10 12:02:57 +00:00
FredKSchott
63308c38cb [ci] collect stats 2022-05-09 12:02:29 +00:00
FredKSchott
0b35b3e13d [ci] collect stats 2022-05-08 12:02:02 +00:00
FredKSchott
f0bca24dec [ci] collect stats 2022-05-07 12:02:03 +00:00
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