chore: add TokenLens sources and ignore rules
This commit is contained in:
60
package.json
Normal file
60
package.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "tokenlens",
|
||||
"version": "0.1.0",
|
||||
"description": "Local Claude, Codex, and Gemini token usage dashboard for macOS.",
|
||||
"main": "src/main/main.cjs",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "node --test tests/*.test.cjs tests/*.test.mjs",
|
||||
"dev": "vite --host 127.0.0.1",
|
||||
"electron:dev": "TOKENLENS_DEV_SERVER=http://127.0.0.1:5173 electron .",
|
||||
"build": "vite build",
|
||||
"dist": "npm run test && npm run build && electron-builder --mac dmg"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vitejs/plugin-react": "^5.1.1",
|
||||
"vite": "^7.2.7",
|
||||
"typescript": "^5.9.3",
|
||||
"react": "^19.2.3",
|
||||
"react-dom": "^19.2.3",
|
||||
"lucide-react": "^0.561.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "^39.2.7",
|
||||
"electron-builder": "^26.0.12"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.caoxiaozhu.tokenlens",
|
||||
"productName": "TokenLens",
|
||||
"directories": {
|
||||
"output": "release"
|
||||
},
|
||||
"files": [
|
||||
"dist/**",
|
||||
"src/main/**",
|
||||
"src/lib/**",
|
||||
"package.json"
|
||||
],
|
||||
"mac": {
|
||||
"category": "public.app-category.developer-tools",
|
||||
"target": [
|
||||
"dmg"
|
||||
]
|
||||
},
|
||||
"dmg": {
|
||||
"contents": [
|
||||
{
|
||||
"x": 130,
|
||||
"y": 220
|
||||
},
|
||||
{
|
||||
"x": 410,
|
||||
"y": 220,
|
||||
"type": "link",
|
||||
"path": "/Applications"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user