Skip to content

Commit 92119af

Browse files
committed
feat: pntools
0 parents  commit 92119af

70 files changed

Lines changed: 11298 additions & 0 deletions

Some content is hidden

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

.eslintrc.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
env: { browser: true, es2020: true },
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:react-hooks/recommended',
7+
],
8+
parser: '@typescript-eslint/parser',
9+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
10+
plugins: ['react-refresh'],
11+
rules: {
12+
'react-refresh/only-export-components': 'warn',
13+
},
14+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
auto-install-peers=true
2+
legacy-peer-deps=true

.prettierrc.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @type {import('prettier')} */
2+
module.exports = {
3+
tabWidth: 2,
4+
useTabs: false,
5+
semi: true,
6+
trailingComma: 'all',
7+
singleQuote: true,
8+
tabWidth: 2,
9+
useTabs: false,
10+
printWidth: 100,
11+
proseWrap: 'never',
12+
endOfLine: 'lf',
13+
plugins: [require('prettier-plugin-tailwindcss')],
14+
};

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
3+
}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Tauri + React + Typescript
2+
3+
This template should help get you started developing with Tauri, React and Typescript in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>Tauri + React + TS</title>
8+
</head>
9+
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

package.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "pntools",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview",
10+
"tauri": "tauri",
11+
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx}'",
12+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
13+
},
14+
"dependencies": {
15+
"@ant-design/icons": "^5.2.6",
16+
"@tauri-apps/api": "^1.4.0",
17+
"antd": "^5.9.0",
18+
"cheerio": "1.0.0-rc.12",
19+
"localforage": "^1.10.0",
20+
"match-sorter": "^6.3.1",
21+
"react": "^18.2.0",
22+
"react-dom": "^18.2.0",
23+
"react-markdown": "^8.0.7",
24+
"react-router-dom": "^6.14.1",
25+
"remark-gfm": "^3.0.1",
26+
"sort-by": "^1.2.0",
27+
"tauri-plugin-websocket-api": "github:tauri-apps/tauri-plugin-websocket#v1"
28+
},
29+
"devDependencies": {
30+
"@tailwindcss/typography": "^0.5.9",
31+
"@tauri-apps/cli": "^1.4.0",
32+
"@types/node": "^20.3.3",
33+
"@types/react": "^18.2.15",
34+
"@types/react-dom": "^18.2.7",
35+
"@typescript-eslint/eslint-plugin": "^5.59.0",
36+
"@typescript-eslint/parser": "^5.59.0",
37+
"@vitejs/plugin-react": "^4.0.3",
38+
"@vitejs/plugin-react-swc": "^3.0.0",
39+
"autoprefixer": "^10.4.14",
40+
"eslint": "^8.38.0",
41+
"eslint-plugin-react-hooks": "^4.6.0",
42+
"eslint-plugin-react-refresh": "^0.3.4",
43+
"postcss": "^8.4.24",
44+
"prettier": "^2.8.8",
45+
"prettier-plugin-tailwindcss": "^0.3.0",
46+
"tailwindcss": "^3.3.2",
47+
"typescript": "^5.0.2",
48+
"vite": "^4.4.4"
49+
}
50+
}

0 commit comments

Comments
 (0)