Skip to content

Commit 60bca50

Browse files
committed
Changes
* replace cypress with vitest * update deps
1 parent 01012f9 commit 60bca50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3776
-16006
lines changed

.github/workflows/badges.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v3
2121

2222
- name: Update version badges 🏷
23-
run: npx -p dependency-version-badge update-badge typescript cypress eslint prettier vite
23+
run: npx -p dependency-version-badge update-badge typescript eslint prettier vitest vite
2424

2525
- name: Commit any changed files 💾
2626
uses: stefanzweifel/git-auto-commit-action@v4

.github/workflows/ci.yml

+19-18
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,41 @@ jobs:
88
- name: Checkout
99
uses: actions/checkout@v4
1010

11-
# - name: Install pnpm
12-
# uses: pnpm/action-setup@v3
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v3
1313

1414
- name: Setup Node
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: 20
18-
# cache: pnpm
18+
cache: pnpm
1919

2020
- name: Install
21-
run: npm install
22-
- name: Install Cypress
23-
run: npx cypress install
21+
run: pnpm install --no-frozen-lockfile
22+
23+
- name: Install Playwright
24+
run: pnpm exec playwright install
2425

25-
- name: Lint TS
26-
run: npm run lint:ts
27-
- name: Lint CSS
28-
run: npm run lint:css
29-
- name: Check TS
30-
run: npm run check:ts
26+
- name: Lint
27+
run: pnpm lint
3128

3229
- name: Build JS
33-
run: npm run build-vite
30+
run: pnpm build
31+
3432
- name: Build CSS
35-
run: npm run compile-scss
33+
run: pnpm compile-scss
34+
3635
- name: Copy CSS
37-
run: npm run copy-css-cp
36+
run: pnpm copy-css-cp
37+
3838
- name: Copy JS
39-
run: npm run docs
39+
run: pnpm docs
4040

4141
- name: Clean coverage
42-
run: npm run clean-coverage
42+
run: pnpm clean-coverage
43+
4344
- name: Run tests
44-
run: npx cypress run
45+
run: pnpm test
4546

4647
- name: Upload coverage report on to coveralls.io...
4748
uses: coverallsapp/github-action@master

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@
33
node_modules
44
experiments
55
coverage
6-
cypress/videos
7-
cypress/screenshots
8-
cypress/downloads
9-
cypress/coverage
10-
cypress/instrumented
6+
test/__screenshots__

.npmignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,4 @@ node_modules
55
experiments
66
docs
77
coverage
8-
cypress/videos
9-
cypress/screenshots
10-
cypress/coverage
11-
cypress/downloads
12-
cypress/instrumented
8+
test/__screenshots__

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
[![ci](https://github.com/thednp/color-picker/actions/workflows/ci.yml/badge.svg)](https://github.com/thednp/color-picker/actions/workflows/ci.yml)
55
[![jsDeliver](https://img.shields.io/jsdelivr/npm/hw/@thednp/color-picker)](https://www.jsdelivr.com/package/npm/@thednp/color-picker)
66
[![NPM Version](https://img.shields.io/npm/v/@thednp/color-picker.svg)](https://www.npmjs.com/package/@thednp/color-picker)
7-
[![typescript version](https://img.shields.io/badge/typescript-5.5.4-brightgreen)](https://www.typescriptlang.org/)
8-
[![eslint version](https://img.shields.io/badge/eslint-8.57.0-brightgreen)](https://github.com/eslint)
7+
[![typescript version](https://img.shields.io/badge/typescript-5.6.2-brightgreen)](https://www.typescriptlang.org/)
8+
[![eslint version](https://img.shields.io/badge/eslint-8.57.1-brightgreen)](https://github.com/eslint)
99
[![prettier version](https://img.shields.io/badge/prettier-3.3.3-brightgreen)](https://prettier.io/)
10-
[![cypress version](https://img.shields.io/badge/cypress-13.13.2-brightgreen)](https://cypress.io/)
11-
[![vite version](https://img.shields.io/badge/vite-5.4.0-brightgreen)](https://github.com/vitejs)
10+
[![vitest version](https://img.shields.io/badge/vitest-2.1.1-brightgreen)](https://vitest.dev/)
11+
[![vite version](https://img.shields.io/badge/vite-5.4.6-brightgreen)](https://github.com/vitejs)
1212

1313
The feature rich **ColorPicker** component for the modern web, sourced with TypeScript, Cypress tested, WAI-ARIA compliant and lots of goodies. In addition, it features its own version of [TinyColor](https://github.com/bgrins/TinyColor) called simply [Color](http://github.com/thednp/color).
1414

cypress.config.ts

-30
This file was deleted.

cypress/e2e/color-palette.cy.ts

-128
This file was deleted.

0 commit comments

Comments
 (0)