Skip to content

Commit b4e468f

Browse files
committed
Changes:
* removed prettier and eslint in favor of deno2 tools * update SCSS sources with latest recommended syntax * removed SCSS compile script in favor of sass CLI * updated tests
1 parent 40ea038 commit b4e468f

Some content is hidden

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

56 files changed

+2875
-2912
lines changed

Diff for: .eslintrc.cjs

-199
This file was deleted.

Diff for: .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 eslint prettier vitest vite
23+
run: npx -p dependency-version-badge update-badge typescript vitest vite
2424

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

Diff for: .github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: ci
2-
on: push
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- src
8+
39
jobs:
410
test:
511
runs-on: ubuntu-20.04

Diff for: .github/workflows/codeql.yml

+6
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ name: "CodeQL"
1414
on:
1515
push:
1616
branches: [ main ]
17+
paths:
18+
- src
19+
- .github/workflows/codeql.yml
1720
pull_request:
1821
# The branches below must be a subset of the branches above
1922
branches: [ main ]
23+
paths:
24+
- src
25+
- .github/workflows/codeql.yml
2026

2127
jobs:
2228
analyze:

Diff for: .lgtm.yml

-9
This file was deleted.

Diff for: .npmignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ node_modules
55
experiments
66
docs
77
coverage
8-
test/__screenshots__
8+
test
9+
src
10+
compile.cjs
11+
tsconfig.json
12+
.stylelintrc.json
13+
vite.config.mts
14+
vitest.config.mts
15+
vitest.config-ui.mts

Diff for: .prettierrc.json

-15
This file was deleted.

Diff for: README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +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.6.2-brightgreen)](https://www.typescriptlang.org/)
8-
[![eslint version](https://img.shields.io/badge/eslint-8.57.1-brightgreen)](https://github.com/eslint)
9-
[![prettier version](https://img.shields.io/badge/prettier-3.3.3-brightgreen)](https://prettier.io/)
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)
7+
[![typescript version](https://img.shields.io/badge/typescript-5.6.3-brightgreen)](https://www.typescriptlang.org/)
8+
[![vitest version](https://img.shields.io/badge/vitest-2.1.4-brightgreen)](https://vitest.dev/)
9+
[![vite version](https://img.shields.io/badge/vite-5.4.10-brightgreen)](https://github.com/vitejs)
1210

13-
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).
11+
The feature rich **ColorPicker** component for the modern web, sourced with TypeScript, Vitest 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).
1412

1513
**ColorPicker** can use existing colour palettes or generate custom ones via DATA API configuration. If you want to play, check out [this codepen](https://codepen.io/thednp/pen/WNdRWPN) I've setup for you. Have fun!
1614

@@ -25,7 +23,7 @@ The feature rich **ColorPicker** component for the modern web, sourced with Type
2523
- Supports keyboard and touch events
2624
- Automatic repositioning of the popup dropdown on show / window scroll
2725
- SCSS sources with minimal style required
28-
- Cypress tested
26+
- Vitest tested
2927
- Right To Left Languages Supported
3028
- light footprint, `10kb` in size when minified and gZipped
3129

Diff for: compile.cjs

-51
This file was deleted.

Diff for: dist/css/color-picker.css

+3-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/css/color-picker.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)