astro/packages/integrations/image/test
Tony Sullivan fad3867adb
Adding an optional image service based on Squoosh (#4738)
* WIP: adding a service built on @squoosh/lib

* WIP: investigating memory leaks in Squoosh

* WIP: vendoring Squoosh to work with our build

* chore: a bit of cleanup and a small perf gain

* removing a few unused deps

* fix: removing temp .only() in sharp test

* hooking up the last build steps to copy over .wasm files

* removing the duplicated lib/*.wasm files

* defaulting to Sharp for the initial @next release

* make sure pnpm always runs the postbuild script

* removing a few node dependencies

* refactor: move the copy .wasm build step out of the SSR bundle

* linter fixes

* fixing lock file

* chore: add TEMP changeset

* fix built wasm location for SSG builds

* Revert "defaulting to Sharp for the initial @next release"

This reverts commit 1a8d4f7f60.

* removing sharp dependency

* Revert "fix built wasm location for SSG builds"

This reverts commit 446b80bb53.

* chore: update lockfile

* fixing up image tests for the wasm loader

* updating the README for squoosh

* parallel wasm builds

* refactor: a bit of house keeping

* perf: allow a thread for each output encoding format

* fix: dev broke with the shift to wasm workers

* adds a new `astro:build:generated` hook for SSG builds

* fix: typo + calling cleanup methods in wasm codecs

* adding @astrojs/webapi for the TransformStream polyfill

* Revert "adding @astrojs/webapi for the TransformStream polyfill"

This reverts commit 39e5b845a5.

* perf: using sharp for most of the CI tests

* chore: update lockfile

* removing hard-coded squoosh imports

* fix: adding sharp to rollup externals

* test: using dev for the squoosh tests

* fix: updating the build output dir for wasm filles in SSG builds

* updating the changeset with migration details

* Revert "adds a new `astro:build:generated` hook for SSG builds"

This reverts commit 59b5fec7be.

* nit: adding comments for the wasm file copy

* chore: fix eslint warning
2022-09-22 19:48:14 +00:00
..
fixtures Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
background-color-image-ssg.test.js [@astrojs/image] flatten background only if alpha channel isn't supported (#4800) 2022-09-20 20:25:45 +00:00
background-color-image-ssr.test.js [@astrojs/image] flatten background only if alpha channel isn't supported (#4800) 2022-09-20 20:25:45 +00:00
image-ssg.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
image-ssr-build.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
image-ssr-dev.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
no-alt-text-image-ssg.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-image-ssr.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-picture-ssg.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-picture-ssr.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
picture-ssg.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
picture-ssr-build.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
picture-ssr-dev.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
rotation.test.js [@astrojs/image] Build all optimized images to dist/assets (#4678) 2022-09-08 18:41:17 +00:00
sharp.test.js [@astrojs/image] support additional resize options (#4438) 2022-09-09 20:13:59 +00:00
squoosh-service.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
test-utils.js Adds an @astrojs/image integration for optimizing images (#3694) 2022-07-01 15:47:48 +00:00
with-mdx.test.js [@astrojs/image] Build all optimized images to dist/assets (#4678) 2022-09-08 18:41:17 +00:00