Skip to content

Commit 0c80722

Browse files
Update to vite / ts
1 parent 565cf14 commit 0c80722

33 files changed

+5573
-32081
lines changed

.babelrc

-10
This file was deleted.

.gitignore

+19-35
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,25 @@
22
logs
33
*.log
44
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
59

6-
# Runtime data
7-
pids
8-
*.pid
9-
*.seed
10-
11-
# Directory for instrumented libs generated by jscoverage/JSCover
12-
lib-cov
13-
14-
# Coverage directory used by tools like istanbul
15-
coverage
16-
17-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18-
.grunt
19-
20-
# node-waf configuration
21-
.lock-wscript
22-
23-
# Compiled binary addons (http://nodejs.org/api/addons.html)
24-
build/Release
25-
26-
# Dependency directory
27-
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
2810
node_modules
29-
30-
# Optional npm cache directory
31-
.npm
32-
33-
# Optional REPL history
34-
.node_repl_history
35-
36-
lib
37-
www/bundle.js
38-
www/*.svg
39-
build
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
4019
.DS_Store
41-
.eslintcache
42-
.idea
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
.vercel
26+
coverage

.npmignore

-16
This file was deleted.

.vercelignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__tests__
2+
.vscode
3+
jest.config.cjs
4+
README.md

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>React Reader - powered by epub.js</title>
8+
</head>
9+
<body class="min-h-screen bg-stone-100">
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

jest.config.cjs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'jsdom',
5+
};

0 commit comments

Comments
 (0)