Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vitejs/vite-ecosystem-ci
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: sveltejs/svelte-ecosystem-ci
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
Loading
Showing with 2,194 additions and 2,118 deletions.
  1. +0 −32 .eslintrc.cjs
  2. +1 −2 .github/renovate.json5
  3. +18 −5 .github/workflows/ci.yml
  4. +51 −63 .github/workflows/ecosystem-ci-from-pr.yml
  5. +28 −30 .github/workflows/ecosystem-ci-selected.yml
  6. +28 −31 .github/workflows/ecosystem-ci.yml
  7. +0 −1 .gitignore
  8. +1 −0 .npmrc
  9. +2 −2 LICENSE
  10. +5 −5 README.md
  11. +16 −0 builds/language-tools.ts
  12. +14 −0 builds/rollup-plugin-svelte.ts
  13. +23 −0 builds/sveltekit.ts
  14. +0 −14 builds/vite-plugin-react.ts
  15. +5 −7 builds/vite-plugin-svelte.ts
  16. +0 −15 builds/vite-plugin-vue.ts
  17. +8 −8 discord-webhook.ts
  18. +54 −46 ecosystem-ci.ts
  19. +42 −0 eslint.config.js
  20. +44 −28 package.json
  21. +1,544 −1,421 pnpm-lock.yaml
  22. +16 −0 tests/_carbon-components-svelte.ts
  23. +33 −0 tests/_histoire.ts
  24. +0 −11 tests/_hydrogen.ts
  25. +11 −8 tests/_selftest.ts
  26. +0 −12 tests/astro.ts
  27. +12 −0 tests/eslint-plugin-svelte.ts
  28. +0 −15 tests/histoire.ts
  29. +0 −15 tests/iles.ts
  30. +0 −13 tests/ladle.ts
  31. +13 −0 tests/language-tools.ts
  32. +0 −13 tests/laravel.ts
  33. +0 −15 tests/marko.ts
  34. +12 −0 tests/mdsvex.ts
  35. +11 −0 tests/melt-ui-preprocessor.ts
  36. +11 −0 tests/melt-ui.ts
  37. +0 −17 tests/nuxt.ts
  38. +12 −0 tests/prettier-plugin-svelte.ts
  39. +0 −16 tests/previewjs.ts
  40. +0 −12 tests/qwik.ts
  41. +0 −12 tests/rakkas.ts
  42. +11 −0 tests/rollup-plugin-svelte.ts
  43. +16 −0 tests/skeleton.ts
  44. +0 −12 tests/storybook.ts
  45. +12 −0 tests/svelte-eslint-parser.ts
  46. +11 −0 tests/svelte-loader.ts
  47. +12 −0 tests/svelte-preprocess.ts
  48. +5 −8 tests/sveltekit.ts
  49. +0 −11 tests/vite-plugin-laravel.ts
  50. +0 −16 tests/vite-plugin-react-pages.ts
  51. +0 −14 tests/vite-plugin-react-swc.ts
  52. +0 −12 tests/vite-plugin-react.ts
  53. +0 −16 tests/vite-plugin-ssr.ts
  54. +4 −8 tests/vite-plugin-svelte.ts
  55. +0 −12 tests/vite-plugin-vue.ts
  56. +0 −11 tests/vite-setup-catalogue.ts
  57. +0 −18 tests/vitepress.ts
  58. +0 −11 tests/vitest.ts
  59. +0 −11 tests/windicss.ts
  60. +5 −2 tsconfig.json
  61. +22 −7 types.d.ts
  62. +81 −80 utils.ts
32 changes: 0 additions & 32 deletions .eslintrc.cjs

This file was deleted.

3 changes: 1 addition & 2 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "schedule:weekly", "group:allNonMajor"],
"labels": ["dependencies"],
"ignorePaths": [],
"pin": false,
"rangeStrategy": "bump",
"node": false,
"packageRules": [
{
"depTypeList": ["peerDependencies", "engines"],
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
name: CI

env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144
# configure corepack to be strict but not download newer versions or change anything
COREPACK_DEFAULT_TO_LATEST: 0
COREPACK_ENABLE_AUTO_PIN: 0
COREPACK_ENABLE_STRICT: 1
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'

on:
push:
branches:
@@ -13,15 +24,15 @@ jobs:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
@@ -30,6 +41,8 @@ jobs:
run: pnpm format
- name: lint
run: pnpm run lint
- name: typecheck
run: pnpm run typecheck
- name: audit
if: (${{ success() }} || ${{ failure() }})
run: pnpm audit
114 changes: 51 additions & 63 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# integration tests for vite ecosystem - run from pr comments
name: vite-ecosystem-ci-from-pr
# integration tests for svelte ecosystem - run from pr comments
name: svelte-ecosystem-ci-from-pr

env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144
# configure corepack to be strict but not download newer versions or change anything
COREPACK_DEFAULT_TO_LATEST: 0
COREPACK_ENABLE_AUTO_PIN: 0
COREPACK_ENABLE_STRICT: 1
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'

on:
workflow_dispatch:
@@ -14,55 +20,46 @@ on:
required: true
type: string
branchName:
description: "vite branch to use"
description: "svelte branch to use"
required: true
type: string
default: "main"
repo:
description: "vite repository to use"
description: "svelte repository to use"
required: true
type: string
default: "vitejs/vite"
default: "sveltejs/svelte"
suite:
description: "testsuite to run. runs all testsuits when `-`."
required: false
type: choice
options:
- "-"
- astro
- histoire
- iles
- ladle
- laravel
- marko
- nuxt
- previewjs
- qwik
- rakkas
# - storybook # disabled until test is updated, see https://github.com/vitejs/vite-ecosystem-ci/issues/130
- eslint-plugin-svelte
- language-tools
- mdsvex
- melt-ui
- melt-ui-preprocessor
- prettier-plugin-svelte
- rollup-plugin-svelte
- skeleton
- svelte-eslint-parser
- svelte-loader
- svelte-preprocess
- sveltekit
- vite-plugin-ssr
- vite-plugin-react
- vite-plugin-react-pages
- vite-plugin-react-swc
- vite-plugin-svelte
- vite-plugin-vue
- vite-setup-catalogue
- vitepress
- vitest
- windicss
jobs:
init:
runs-on: ubuntu-latest
outputs:
comment-id: ${{ steps.create-comment.outputs.result }}
steps:
- id: generate-token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 #v1.9.0
with:
app_id: ${{ secrets.PR_GITHUB_APP_ID }}
private_key: ${{ secrets.PR_GITHUB_APP_PRIVATE_KEY }}
repository: "${{ github.repository_owner }}/vite"
app_id: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_ID }}
private_key: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY }}
repository: "${{ github.repository_owner }}/svelte"
- id: create-comment
uses: actions/github-script@v6
with:
@@ -75,7 +72,7 @@ jobs:
const { data: comment } = await github.rest.issues.createComment({
issue_number: context.payload.inputs.prNumber,
owner: context.repo.owner,
repo: 'vite',
repo: 'svelte',
body: `⏳ Triggered ecosystem CI: ${urlLink}`
})
return comment.id
@@ -86,11 +83,11 @@ jobs:
needs: init
if: "inputs.suite != '-'"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: denoland/setup-deno@v1
node-version: 22
- uses: denoland/setup-deno@11b63cf76cfcafb4e43f97b6cad24d8e8438f62d #v1.5.2
with:
deno-version: v1.x
continue-on-error: true
@@ -111,35 +108,26 @@ jobs:
strategy:
matrix:
suite:
- astro
- histoire
- iles
- ladle
- laravel
- marko
- nuxt
- previewjs
- qwik
- rakkas
# - storybook # disabled until test is updated, see https://github.com/vitejs/vite-ecosystem-ci/issues/130
- eslint-plugin-svelte
- language-tools
- mdsvex
- melt-ui
- melt-ui-preprocessor
- prettier-plugin-svelte
- rollup-plugin-svelte
- skeleton
- svelte-eslint-parser
- svelte-loader
- svelte-preprocess
- sveltekit
- vite-plugin-ssr
- vite-plugin-react
- vite-plugin-react-pages
- vite-plugin-react-swc
- vite-plugin-svelte
- vite-plugin-vue
- vite-setup-catalogue
- vitepress
- vitest
- windicss
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: denoland/setup-deno@v1
node-version: 22
- uses: denoland/setup-deno@11b63cf76cfcafb4e43f97b6cad24d8e8438f62d #v1.5.2
with:
deno-version: v1.x
continue-on-error: true
@@ -158,11 +146,11 @@ jobs:
if: always()
steps:
- id: generate-token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 #v1.9.0
with:
app_id: ${{ secrets.PR_GITHUB_APP_ID }}
private_key: ${{ secrets.PR_GITHUB_APP_PRIVATE_KEY }}
repository: "${{ github.repository_owner }}/vite"
app_id: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_ID }}
private_key: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY }}
repository: "${{ github.repository_owner }}/svelte"
- uses: actions/github-script@v6
with:
github-token: ${{ steps.generate-token.outputs.token }}
@@ -207,7 +195,7 @@ jobs:
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: 'vite',
repo: 'svelte',
comment_id: ${{ needs.init.outputs.comment-id }},
body
})
58 changes: 28 additions & 30 deletions .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
# integration tests for vite ecosystem - single run of selected testsuite
name: vite-ecosystem-ci-selected
# integration tests for svelte ecosystem - single run of selected testsuite
name: svelte-ecosystem-ci-selected

env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144
# configure corepack to be strict but not download newer versions or change anything
COREPACK_DEFAULT_TO_LATEST: 0
COREPACK_ENABLE_AUTO_PIN: 0
COREPACK_ENABLE_STRICT: 1
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'

on:
workflow_dispatch:
inputs:
refType:
description: "type of vite ref to use"
description: "type of svelte ref to use"
required: true
type: choice
options:
@@ -20,53 +26,45 @@ on:
- release
default: "branch"
ref:
description: "vite ref to use"
description: "svelte ref to use"
required: true
type: string
default: "main"
repo:
description: "vite repository to use"
description: "svelte repository to use"
required: true
type: string
default: "vitejs/vite"
default: "sveltejs/svelte"
suite:
description: "testsuite to run"
required: true
type: choice
options:
- astro
- histoire
- iles
- ladle
- laravel
- marko
- nuxt
- previewjs
- qwik
- rakkas
# - storybook # disabled until test is updated, see https://github.com/vitejs/vite-ecosystem-ci/issues/130
- eslint-plugin-svelte
- language-tools
- mdsvex
- melt-ui
- melt-ui-preprocessor
- prettier-plugin-svelte
- rollup-plugin-svelte
- skeleton
- svelte-eslint-parser
- svelte-loader
- svelte-preprocess
- sveltekit
- vite-plugin-ssr
- vite-plugin-react
- vite-plugin-react-pages
- vite-plugin-react-swc
- vite-plugin-svelte
- vite-plugin-vue
- vite-setup-catalogue
- vitepress
- vitest
- windicss

jobs:
execute-selected-suite:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
id: setup-node
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@11b63cf76cfcafb4e43f97b6cad24d8e8438f62d #v1.5.2
with:
deno-version: v1.x
id: setup-deno
Loading