Skip to content

Commit 686c3dd

Browse files
authored
Move to Vite (#1)
* Move to Vite * Setup ESLint and Vitest * Add build check GH Action * Test route processor
1 parent fb80429 commit 686c3dd

14 files changed

+2333
-578
lines changed

.eslintrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended"
5+
],
6+
"rules": {
7+
"indent": ["error", 2],
8+
"quotes": ["error", "single"],
9+
"semi": ["error", "always"],
10+
"no-empty": "off",
11+
"no-cond-assign": ["error", "always"]
12+
}
13+
}

.github/workflows/build-check.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test and Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
checks: write
10+
contents: write
11+
12+
jobs:
13+
run-tests:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: '18.x'
25+
26+
- name: Install pnpm
27+
run: npm install -g pnpm
28+
29+
- name: Cache dependencies
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.pnpm-store
33+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
34+
restore-keys: |
35+
${{ runner.os }}-pnpm-
36+
37+
- name: Install dependencies
38+
run: pnpm install
39+
40+
- name: Run tests
41+
run: pnpm test
42+
43+
- name: Build project
44+
run: pnpm build

.gitignore

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1-
\dist
2-
\node_modules
3-
.DS_Store
4-
.thumbs.db
5-
6-
# Log files
1+
# Logs
2+
logs
3+
*.log
74
npm-debug.log*
85
yarn-debug.log*
96
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
1014

1115
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
1218
.idea
19+
.DS_Store
1320
*.suo
1421
*.ntvs*
1522
*.njsproj
1623
*.sln
24+
*.sw?

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Xkonti
3+
Copyright (c) 2022 Beniamin Dudek
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)