summaryrefslogtreecommitdiff
path: root/scripts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-11-21Update all dependencies (#9138)Gravatar Bjorn Lu 1-4/+4
Co-authored-by: delucis <delucis@users.noreply.github.com>
2023-11-09Content Collection cache (experimental) (#8854)Gravatar Nate Moore 1-1/+1
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-08-24Update breaking dependencies (#8201)Gravatar Bjorn Lu 1-5/+5
2023-08-23Update non-major dependencies (#8199)Gravatar Bjorn Lu 1-2/+2
2023-08-08feat: remove webapi in favor of a smaller polyfill (#7840)Gravatar Erika 3-9/+2
* feat: remove webapi in favor of a smaller polyfill * test: remove old test * test: 🤦‍♀️ * chore: changeset
2023-08-08Remove support for Node 16 (#7780)Gravatar Erika 2-2/+2
2023-08-04chore: fix issue in the check.js script (#7965)Gravatar Emanuele Stoppa 1-26/+29
2023-07-18nit: use `node:` prefix everywhere (#7692)Gravatar Erika 6-13/+12
* nit: use `node:` prefix everywhere * nit: fs/promises too * test: workaround issue in node builtin detection
2023-06-21Update safe dependencies (#7430)Gravatar Bjorn Lu 1-4/+4
2023-06-20Fix up `pnpm dev` (#7424)Gravatar Ben Holmes 1-1/+3
* feat: use persistent per turbo recs * feat: preserve types yay * fix: *actually* solve problem * fix: type failures from content types template * fix: bad JS doc comments * fix: bad src/content/template path * chore: changeset --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-12Update example dependencies versions with a script (#7367)Gravatar Bjorn Lu 1-0/+74
2023-06-06Fix nested astro-island hydration race condition (#7197)Gravatar Bjorn Lu 1-0/+1
2023-06-02Run example check in parallel with 5 at most (#7275)Gravatar Bjorn Lu 2-5/+14
2023-05-17Implement custom client directives (#7074)Gravatar Bjorn Lu 1-4/+34
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-04-28chore: cleanup root and scripts dependencies (#6871)Gravatar Han Yeong-woo 1-1/+3
2023-03-20[ci] formatGravatar bholmesdev 1-1/+1
2023-03-20fix: refactor esbuild setup to support watch (#6608)Gravatar Nate Moore 1-7/+14
2023-03-20feat(all): Migrate to TypeScript 5.0 (#6579)Gravatar Erika 1-1/+1
2023-03-07[ci] release (#6432)create-astro@3.1.0astro@2.1.0@astrojs/webapi@2.1.0@astrojs/vue@2.1.0@astrojs/vercel@3.2.0@astrojs/turbolinks@0.2.0@astrojs/telemetry@2.1.0@astrojs/tailwind@3.1.0@astrojs/svelte@2.1.0@astrojs/solid-js@2.1.0@astrojs/sitemap@1.2.0@astrojs/rss@2.2.0@astrojs/react@2.1.0@astrojs/prism@2.1.0@astrojs/prefetch@0.2.0@astrojs/preact@2.1.0@astrojs/partytown@1.1.0@astrojs/node@5.1.0@astrojs/netlify@2.2.0@astrojs/mdx@0.18.0@astrojs/markdown-remark@2.1.0@astrojs/markdoc@0.0.1@astrojs/lit@1.3.0@astrojs/image@0.16.0@astrojs/deno@4.1.0@astrojs/cloudflare@6.2.0@astrojs/alpinejs@0.2.0Gravatar Houston (Bot) 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-07Implement RFC "A core story for images" (#6344)Gravatar Erika 2-1/+17
* feat(assets): Add Vite plugin * feat(images): Set up Image component * fix(types): Attempt to fix type generation * Revert "fix(types): Attempt to fix type generation" This reverts commit 063aa276e2f30f928a108a930f603a234e22ff11. * fix(image): Fix image types causing build to fail * feat(image): Implement client side part * feat(services): Allow arbitrary transforms parameters * fix(image): Fix paths and types * config(types): Update config types to provide completions for available services * feat(image): Add serving in dev * feat(image): Improve type error messages * refactor(image): Move sharp's parseParams to baseService * refactor(image): Skip work in dev for remote servies * feat(image): Add support for remote images * feat(image): Add squoosh service * chore: update export map * refactor(image): Abstract attributes handling by services * config(vercel): Remove test image service * feat(image): Support for relative images in Markdown (WIP) * feat(images): Add support for relative images in Markdown * feat(image): Update with RFC feedback * fix(image): Fix alt error on getImage * feat(image): Add support for assets validation through content collections * feat(image): Remove validateTransform * feat(image): Move to assets folder * fix(image): Fix package exports * feat(image): Add static imports references to virtual moduel * fix(image): Fix images from content collections not working when embedded * chore: lockfile * fix(markdown): Fix type * fix(images): Flag enhanced images behing an experimental flag * config(example): Update images example conifg * fix(image): Fix types * fix(image): Fix asset type for strict, allow arbritary input and output formats * chore: fix example check * feat(image): Emit assets for ESM imported images * Add initial core image tests (#6381) * feat(images): Make frontmatter extraction more generic than images for future * feat(image): Add support for building * fix(image): Fix types * fix(images): Fix compatibility with image integration * feat(images): Cuter generation stats * fix(images): Globals are unsafe, it turns out * fix(images): Only generate images if flag is enabled * fix(images): Only create `addStaticImage` in build * feat(images): Add SSR endpoint * fix(images): Only inject route in SSR * Add tests for SSR * Remove console.log * Updated lockfile * rename to satisfy the link gods * skip build tests for now * fix(images): Fix WASM files not being copied in dev * feat(images): Add quality presets * fix build tests running * Remove console.log * Add tests for getImage * Test local services * Test the content collections API * Add tests for quality * Skipping content collections test * feat(image): Add support for `~/assets` alias * test(image): Add tests for aliases in dev * Fix windows + content collections * test(image): Add tests for aliased images and images in Markdown * Fix markdown images being built * Should be posix join * Use the optimized image * fix test * Fixes windows smoke * fix(image): Nits * feat(images): Add automatic update for `env.d.ts` when experimental images are enabled * fix(images): Revert env.d.ts change if the user opted-out of the experimental image support * chore: remove bad image example project * feat(image): Rename `experimental.images` to `experimental.assets` * fix(images): Remove unused code in MDX integration * chore: Remove unrelated change * fix(images): Remove export from astro/components * Fix, esm import on Win * test(images): Add test for format * fix(images): Add `client-image.d.ts` to export map * chore: changeset * fix(images): Adjust with feedback, no more automatic refine, asset() -> image() * fix(images): Fix types * fix(images): Remove unnecessary spread * fix(images): Better types for parseUrl and transform * fix(images): Fix types * fix(images): Adjust from feedback * fix(images): Pass width and height through getHTMLAttributes even if they're not added by the uesr * fix(images): Recusirsively extract frontmatter assets * fix(images): Use a reduce instead * feat(images): Add support for data: URIs * chore: changeset * docs(images): Misc docs fixes * Update .changeset/gold-rocks-cry.md Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update .changeset/gold-rocks-cry.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/assets/services/service.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/assets/services/service.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/assets/services/service.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/assets/types.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/assets/types.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> --------- Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Matthew Phillips <matthew@matthewphillips.info> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-06Update compilation target for Node 16 (#6213)Gravatar Erika 1-3/+3
* config(esbuild): Update esbuild target to node16 * config(package): Update root package.json node engine * config(tsconfig): Update all the tsconfigs module and targets * chore: changeset * chore: remove unneeded file
2023-03-06[ci] release (#6414)astro@2.0.18@astrojs/webapi@2.0.3Gravatar Houston (Bot) 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-04Remove unused benchmarks (#6396)Gravatar Bjorn Lu 4-96/+0
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-02-27[ci] release (#6359)create-astro@3.0.4astro@2.0.16@astrojs/webapi@2.0.2@astrojs/telemetry@2.0.1@astrojs/lit@1.2.1Gravatar Houston (Bot) 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-17[ci] release (#6279)astro@2.0.14@astrojs/webapi@2.0.1@astrojs/deno@4.0.2Gravatar Houston (Bot) 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-06Refactor `create-astro` (#6082)Gravatar Nate Moore 1-1/+3
* refactor: new version of create-astro * chore: update README * fix(create-astro): update project name logic * test(create-astro): fix test on windows * test(create-astro): fix test on windows * test(create-astro): remove unused import * chore: remove log * chore: increase test timeout * fix: message when skipping * fix: message for env.d.ts file * fix: always hard exit * fix: return from next-steps * chore: add message * refactor dependencies, bundle create-astro * chore: disable create-astro typings * chore: switch to arg * chore: update message * fix: split typescript into two steps, fix context test * chore: update wording * chore: update wording * Update packages/create-astro/src/actions/dependencies.ts Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> * refactor: move tests back to mocha/chai * chore: update cli-kit * update test script * chore: add comment about setStdout * chore: update cli-kit * Update packages/create-astro/src/messages.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/create-astro/src/messages.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: update lockfile * fix(create-astro): support scoped package names, improve project-name tests * better git initialization * update cli-kit --------- Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-24[ci] release (#5948)create-astro@2.0.0astro@2.0.0@astrojs/webapi@2.0.0@astrojs/vue@2.0.0@astrojs/vercel@3.0.0@astrojs/telemetry@2.0.0@astrojs/tailwind@3.0.0@astrojs/svelte@2.0.0@astrojs/solid-js@2.0.0@astrojs/rss@2.1.0@astrojs/react@2.0.0@astrojs/prism@2.0.0@astrojs/preact@2.0.0@astrojs/partytown@1.0.3@astrojs/node@5.0.0@astrojs/netlify@2.0.0@astrojs/mdx@0.15.0@astrojs/markdown-remark@2.0.0@astrojs/lit@1.1.0@astrojs/image@0.13.0@astrojs/deno@4.0.0@astrojs/cloudflare@6.0.0Gravatar Houston (Bot) 2-1/+18
* [ci] release * Update changelogs (#5955) * [ci] release * Wrap astro 2.0 beta logs in `<details>` * Add link to docs upgrade guide * First pass cleaning up 2.0 release notes * mdx changes from Sarah * combine 5584 and 5842 in deno, image, netlify * markdown/remark incl (5684 & 5769) to match mdx * Tweak markdown/remark formatting * Format astro-prism * Format astro-rss * Format create-astro * Format cloudflare * Format lit * Format partytown * Format node * Format preact * Format react * Format solid * Format svelte * Format tailwind * Format vercel * Format vue * Format telemetry * Format webapi * Format scripts * Reinstate h3s for headings Co-authored-by: Ben Holmes <hey@bholmes.dev> * Reformat mdx * astro & markdown/remark: Combine #5679 & #5684 changelogs Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Ben Holmes <hey@bholmes.dev> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-23[ci] release (beta) (#5911)create-astro@2.0.0-beta.1astro@2.0.0-beta.4@astrojs/webapi@2.0.0-beta.1@astrojs/tailwind@3.0.0-beta.2@astrojs/svelte@2.0.0-beta.3@astrojs/partytown@1.0.3-beta.1@astrojs/netlify@2.0.0-beta.4@astrojs/image@0.12.2-beta.1Gravatar Houston (Bot) 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-12[ci] formatGravatar natemoo-re 1-8/+10
2023-01-12Fix announcements CI actions when 2000+ characters (#5844)Gravatar Nate Moore 1-6/+45
* fix(ci): handle announcements >= 2000 characters * chore: support multiple branches Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12[ci] release (beta) (#5792)create-astro@2.0.0-beta.0astro@2.0.0-beta.2@astrojs/webapi@2.0.0-beta.0@astrojs/vue@2.0.0-beta.1@astrojs/vercel@3.0.0-beta.1@astrojs/telemetry@2.0.0-beta.0@astrojs/tailwind@3.0.0-beta.1@astrojs/svelte@2.0.0-beta.1@astrojs/solid-js@2.0.0-beta.0@astrojs/react@2.0.0-beta.0@astrojs/prism@2.0.0-beta.0@astrojs/preact@2.0.0-beta.0@astrojs/partytown@1.0.3-beta.0@astrojs/node@5.0.0-beta.1@astrojs/netlify@2.0.0-beta.2@astrojs/mdx@1.0.0-beta.2@astrojs/markdown-remark@2.0.0-beta.2@astrojs/lit@1.0.2-beta.0@astrojs/image@1.0.0-beta.2@astrojs/deno@4.0.0-beta.2@astrojs/cloudflare@6.0.0-beta.1Gravatar Fred K. Bot 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-06Remove proload for config loading (#5778)Gravatar Bjorn Lu 1-2/+8
* Refactor resolve and load config * Add changeset * Update name * Remove unnecessary node_env handling * Fix test * Update comment
2022-12-06Update esbuild dependency (#5534)Gravatar Bjorn Lu 1-1/+1
2022-10-31[ci] release (#5239)Gravatar Fred K. Bot 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-12Run astro check on all examples in CI (#5022)Gravatar Erika 2-0/+87
* 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-09-28Remove shamefully-hoist (#4842)Gravatar Bjorn Lu 1-1/+1
2022-09-27[ci] release (#4846)create-astro@1.1.0astro@1.3.1@astrojs/webapi@1.1.0@astrojs/vercel@2.0.1@astrojs/mdx@0.11.2@astrojs/image@0.8.0Gravatar Fred K. Bot 2-1/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-22`create-astro`: always create `tsconfig.json` (#4810)Gravatar Michael Rienstra 1-2/+2
* `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-08-09Astro 1.0.0 (#4214)Gravatar Nate Moore 2-1/+8
* 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-07-08Add editor integrations to language integrations (#3864)Gravatar Erika 1-2/+10
2022-06-29[ci] release (#3759)astro@1.0.0-beta.59@astrojs/telemetry@0.2.2@astrojs/preact@0.3.0Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28chore: escape template literals in prebuild script (#3745)Gravatar Nate Moore 1-2/+5
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-28[ci] release (#3733)astro@1.0.0-beta.58@astrojs/telemetry@0.2.0@astrojs/tailwind@0.2.2@astrojs/sitemap@0.2.3@astrojs/prefetch@0.0.2@astrojs/netlify@0.4.7@astrojs/deno@0.1.7Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28Fix: prevent sourcemap warnings in monorepo "dev" mode (#3744)Gravatar Ben Holmes 1-2/+1
* fix: avoid esbuild sourcemaps in astro-scripts dev * chore: changeset
2022-06-28[ci] update lockfile (#3740)Gravatar Fred K. Bot 1-2/+2
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-27[ci] collect statsGravatar FredKSchott 1-0/+1
2022-06-26[ci] collect statsGravatar FredKSchott 1-0/+1
2022-06-25[ci] collect statsGravatar FredKSchott 1-0/+1
2022-06-24[ci] collect statsGravatar FredKSchott 1-0/+1
2022-06-23[ci] collect statsGravatar FredKSchott 1-0/+1