Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include missing versions of react and angular #1

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"devDependencies": {
"@types/tinycolor2": "^1.4.3",
"nodemon": "^2.0.20",
"rete-kit": "^1.0.0",
"rete-kit": "^1.5.0",
"typescript": "^4.9.5"
},
"peerDependencies": {
"rete-kit": "^1.0.0"
"rete-kit": "^1.5.0"
},
"dependencies": {
"@playwright/test": "^1.37.1",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

import { createCommand } from 'commander'

Check warning on line 3 in src/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

Run autofix to sort these imports!
import execa from 'execa'
import chalk from 'chalk'
import fs from 'fs'
Expand All @@ -14,9 +14,9 @@
program.version(require('../package.json').version)

const targets: { stack: App.AppStack, versions: number[] }[] = [
{ stack: 'react', versions: [16, 18] },
{ stack: 'react', versions: [16, 17, 18] },
{ stack: 'vue', versions: [2, 3] },
{ stack: 'angular', versions: [12, 14, 16] },
{ stack: 'angular', versions: [12, 13, 14, 15, 16, 17] },
{ stack: 'svelte', versions: [3, 4] }
]
const stackNames = targets.map(t => t.stack)
Expand Down Expand Up @@ -45,7 +45,7 @@
]
}


Check warning on line 48 in src/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

More than 1 blank line not allowed
program
.command('init')
.description(`Initialize testing tool`)
Expand All @@ -53,8 +53,8 @@
.option('-n --next')
.option('-s --stack <stack>', `Stacks to test, comma-separated (${stackNames.join(',')})`)
.option('-sv --stack-versions <stack-version>', `Versions to test, comma-separated`)
.action(async (options: { depsAlias: string, stack?: string, stackVersions?: string, next?: boolean }) => {

Check warning on line 56 in src/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

Async arrow function has too many statements (16). Maximum allowed is 12
if (!process.version.startsWith('v16')) console.info(chalk.yellow('---\nWe recommend using Node.js 16 to avoid any potential issues\n---'))

Check warning on line 57 in src/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

This line has a length of 143. Maximum allowed is 120

const next = options.next || false
const cwd = process.cwd()
Expand Down Expand Up @@ -94,7 +94,7 @@
.option('-s --stack <stack>', `Stacks to test, comma-separated (${stackNames.join(',')})`)
.option('-sv --stack-versions <stack-version>', `Versions to test, comma-separated`)
.option('-p --project <project>', `Project (${projects.map(p => p.name)})`)
.action(async (options: { updateSnapshots?: boolean, stack?: string, stackVersions?: string, project?: string, grep?: string }) => {

Check warning on line 97 in src/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

This line has a length of 134. Maximum allowed is 120

Check warning on line 97 in src/index.ts

View workflow job for this annotation

GitHub Actions / ci / ci

Async arrow function has too many statements (14). Maximum allowed is 12
const stacks = options.stack ? options.stack.split(',') : null
const stackVersions = options.stackVersions ? options.stackVersions.split(',') : null

Expand Down
Loading