Skip to content

Commit f5fc1e6

Browse files
committed
refactor(dev): update dev tooling and bundling
1 parent 55f716e commit f5fc1e6

18 files changed

+3811
-14128
lines changed

.github/workflows/unit.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,46 @@
1-
name: Unit Tests (Vitest)
2-
1+
name: Unit Tests
32
on:
43
push:
54
branches:
65
- main
6+
paths:
7+
- src/**
78
pull_request:
89
types: [opened, synchronize, reopened]
9-
1010
jobs:
11-
build:
11+
tests:
1212
runs-on: ubuntu-latest
13+
name: Tests
1314
if: |
1415
(
1516
!contains(github.event.head_commit.message, '[skip ci]') &&
1617
!contains(github.event.head_commit.message, 'version bump')
1718
)
1819
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-node@v1
20+
- name: Checkout repository
21+
uses: actions/checkout@v3
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v2
2124
with:
22-
node-version: '18'
25+
version: 8.11
26+
- name: Install Node
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 20
30+
cache: 'pnpm'
2331
registry-url: 'https://registry.npmjs.org'
24-
- uses: szenius/[email protected]
32+
- name: Install dependencies
33+
run: pnpm install
34+
- name: Set Timezone
35+
uses: szenius/[email protected]
2536
with:
2637
timezoneLinux: "America/Los_Angeles"
2738
timezoneMacos: "America/Los_Angeles"
2839
timezoneWindows: "Pacific Standard Time"
29-
- run: npm i
30-
- run: npm test
31-
32-
- uses: actions/upload-artifact@v2
40+
- name: Run tests
41+
run: pnpm test
42+
- name: Upload artifacts
43+
uses: actions/upload-artifact@v2
3344
if: failure()
3445
with:
3546
name: unit-tests

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
.vercel
2323
/node_modules
2424
/dist
25+
.package-lock.json
2526

2627
# testing
2728
coverage

.husky/post-merge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ check() {
99
echo "$changes" | grep --quiet "$1" && eval "$2"
1010
}
1111

12-
check package.json "npm install"
12+
check package.json "pnpm install"

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
. "$(dirname "$0")/_/husky.sh"
44

5-
npx lint-staged
5+
pnpm dlx lint-staged

.lintstagedrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"./src/**/*.{test.js,js,json,svelte}": [
2+
"./src/**/*.{test.js,js,ts,json,svelte}": [
3+
"svelte-check --tsconfig ./tsconfig.json",
34
"eslint -c ./.eslintrc.json --fix",
45
"prettier --write"
56
]

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/cae0ce6e92634878b6e1a587146d
77
## Install
88

99
```bash
10-
yarn add -D @svelte-plugins/datepicker
10+
# npm
11+
> npm install svelte @svelte-plugins/datepicker
1112

12-
# or with NPM
13+
# pnpm
14+
> pnpm install svelte @svelte-plugins/datepicker
1315

14-
npm i -D @svelte-plugins/datepicker
16+
# yarn
17+
> yarn add svelte @svelte-plugins/datepicker
1518
```
1619

1720
## Using the DatePicker component

babel.config.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/package-lock.json

Lines changed: 17 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)