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

374 commits

Author SHA1 Message Date
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