From c664cd2a357d649a86710a7bd9b71ccc79ff6f64 Mon Sep 17 00:00:00 2001 From: Ni55aN Date: Fri, 27 Dec 2024 14:56:43 +0200 Subject: [PATCH] ci: use react-vite --- .github/workflows/daily.yml | 2 +- .github/workflows/regression.yml | 1 + src/commands/init/index.ts | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 674aed7..df7a0b3 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -26,7 +26,7 @@ jobs: version: [18,17,16] uses: ./.github/workflows/regression.yml with: - name: react + name: react-vite version: ${{ matrix.version }} node: 18 diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 53e05ae..8b527d1 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -29,6 +29,7 @@ on: description: Stack options: - react + - react-vite - vue - angular - svelte diff --git a/src/commands/init/index.ts b/src/commands/init/index.ts index 781e3bf..47e9742 100644 --- a/src/commands/init/index.ts +++ b/src/commands/init/index.ts @@ -2,6 +2,7 @@ import { App } from 'rete-kit' export const targets: { stack: App.AppStack, versions: number[] }[] = [ { stack: 'react', versions: [16, 17, 18] }, + { stack: 'react-vite', versions: [16, 17, 18] }, { stack: 'vue', versions: [2, 3] }, { stack: 'angular', versions: [12, 13, 14, 15, 16, 17, 18] }, { stack: 'svelte', versions: [3, 4] }, @@ -21,7 +22,7 @@ export const fixtures = targets export function getFeatures({ stack, version }: Pick<(typeof fixtures)[0], 'stack' | 'version'>, next: boolean) { return [ stack === 'angular' && new App.Features.Angular(version as 12 | 13 | 14 | 15 | 16 | 17 | 18, next), - stack === 'react' && new App.Features.React(version, stack, next), + ['react', 'react-vite'].includes(stack) && new App.Features.React(version, stack, next), stack === 'vue' && new App.Features.Vue(version as 2 | 3, next), stack === 'svelte' && new App.Features.Svelte(version as 3 | 4, next), stack === 'lit-vite' && new App.Features.Lit(version as 3, next),