summaryrefslogtreecommitdiff
path: root/scripts/cmd (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-02-24Replace globby/fast-glob/tiny-glob with tinyglobby (#13299)Gravatar Bjorn Lu 3-5/+13
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com> Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-01-08Fix biome correctness checks (#12929)Gravatar Bjorn Lu 1-1/+0
2024-12-11[ci] formatGravatar Florian Lefebvre 1-1/+0
2024-11-27Merge branch 'main' into nextGravatar Emanuele Stoppa 1-3/+3
2024-11-26chore: fix linting warnings (#12526)Gravatar Emanuele Stoppa 1-3/+3
2024-11-21[ci] release (beta) (#12430)astro@5.0.0-beta.9@astrojs/vue@5.0.0-beta.2@astrojs/svelte@6.0.2-beta.0@astrojs/solid-js@4.4.4-beta.0@astrojs/react@3.6.3-beta.0@astrojs/preact@3.5.4-beta.0Gravatar Houston (Bot) 1-1/+1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-15Merge branch 'main' into nextGravatar bluwy 1-0/+10
2024-10-15Use real filesystem for unit testing (#12172)Gravatar Bjorn Lu 1-0/+10
2024-08-20feat: remove the squoosh image service (#11770)Gravatar Erika 1-13/+2
* feat: remove the squoosh image service * fix: build * chore: changeset
2024-08-20Remove unused code in internal scripts (#11769)Gravatar Bjorn Lu 4-129/+42
2024-08-14Use node parseArgs instead of yargs-parser and arg (#11645)Gravatar Bjorn Lu 2-32/+35
* wip * done * Add changeset * Format * Update * Fix houston * Fix test * Fix test
2024-05-01Fix typos (#10923)Gravatar Viktor Szépe 1-1/+1
2024-04-20Update major deps (#10823)Gravatar Bjorn Lu 1-1/+1
2024-04-10feat(i18n): manual routing (#10193)Gravatar Emanuele Stoppa 1-1/+1
* feat(i18n): manual routing * one more function * different typing * tests * fix merge * throw error for missing middleware * rename function * fix conflicts * lock file update * fix options, error thrown and added tests * rebase * add tests * docs * lock file black magic * increase timeout? * fix regression * merge conflict * add changeset * chore: apply suggestions * apply suggestion * Update .changeset/little-hornets-give.md Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> * chore: address feedback * fix regression of last commit * update name * add comments * fix regression * remove unused code * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: update reference * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: improve types * fix regression in tests * apply Sarah's suggestion --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-03-07[ci] formatGravatar Nate Moore 1-13/+16
2024-03-07Adds `create-astro` fallback values for package versions (#10255)Gravatar Nate Moore 1-4/+47
* fix(create-astro): add fallback when registry fails to return the current package version * feat(create-astro): inline most current package versions as fallback * test(create-astro): update typescript tests to check for undefined * test(create-astro): properly reset fixtures * refactor: read dependencies from workspace root * refactor: error on missing values
2024-02-14feat(audits): Add initial perf audits (#10015)Gravatar Erika 1-10/+32
* feat(audits): Add initial perf audits * feat(audits): Setup dev astro-island * fix(audits): Don't take scroll into account when getting an element's position * nit: lint * Fix tests * chore: changeset * maybe: Move this.hydrator outside the perf check * Update packages/astro/e2e/dev-toolbar.test.js Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * address feedback * address feedback --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-12ci: increase node timeout (#10089)Gravatar Emanuele Stoppa 1-1/+1
2024-02-08test: increase timeout (#10054)Gravatar Erika 1-1/+1
2024-02-01Exit code 1 if node:test fail (#9928)Gravatar Bjorn Lu 1-0/+5
2024-01-25chore(@astrojs/node): use Node.js for testing (#9758)Gravatar Emanuele Stoppa 1-0/+17
* chore(@astrojs/node): use Node.js for testing * revert file * address feedback * feedback * Run tests in a single process (#9823) * Run tests in a single process * Make test less flaky * chore: remove module --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-12Use node:test and node:assert/strict (#9649)Gravatar Bjorn Lu 1-0/+51
2023-12-27Enable source map on dev builds (#9465)Gravatar Luiz Ferraz 1-0/+1
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-27[ci] formatGravatar Houston (Bot) 1-1/+1
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-08Remove support for Node 16 (#7780)Gravatar Erika 1-1/+1
2023-07-18nit: use `node:` prefix everywhere (#7692)Gravatar Erika 3-6/+6
* nit: use `node:` prefix everywhere * nit: fs/promises too * test: workaround issue in node builtin detection
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-06Fix nested astro-island hydration race condition (#7197)Gravatar Bjorn Lu 1-0/+1
2023-05-17Implement custom client directives (#7074)Gravatar Bjorn Lu 1-4/+34
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
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-07Implement RFC "A core story for images" (#6344)Gravatar Erika 1-1/+16
* 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-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>
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-07-08Add editor integrations to language integrations (#3864)Gravatar Erika 1-2/+10
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-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-16[ci] formatGravatar matthewp 2-4/+4
2022-06-16Inline hydration directive scripts (#3605)Gravatar Matthew Phillips 2-1/+25
* Inline hydration scripts * Adds a changeset * Update directiveAstroKeys type
2022-06-15[ci] formatGravatar matthewp 1-3/+3
2022-06-15Consolidate hydration scripts into just one (#3571)Gravatar Matthew Phillips 1-0/+52
* 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-04-02update prettier width (#2968)Gravatar Fred K. Schott 2-4/+16
2022-03-18Astro Integration System (#2820)Gravatar Fred K. Schott 1-2/+1
* 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-15Disable sourcemaps for build (#2806)Gravatar Nate Moore 1-0/+1
* fix: disable sourcemaps for build * chore: add changeset
2022-03-08fix format (#2736)Gravatar Fred K. Schott 1-1/+1
2022-03-08Fix/2177/log missing local network ip (#2732)Gravatar Ben Holmes 1-1/+3
* 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>
2021-12-22Use accessible indentation (#2253)Gravatar Jonathan Neal 2-115/+115
2021-12-16Support Node v14.15+ (#2202)Gravatar Jonathan Neal 1-3/+1
* Support Node v14.15+ * changeset * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * ES2020 * update yarn.lock Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>