summaryrefslogtreecommitdiffstats
path: root/ui/package.json
blob: ce22dee94a23bf202891dffcc8a30f273344cee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
  "name": "TaSTT",
  "version": "1.0.0",
  "description": "Speech-to-text tool for VRChat",
  "main": "index.js",
  "homepage": "./",
  "scripts": {
    "start": "npm run build:css && electron .",
    "build:css": "tailwindcss -i ./src/components.css -o ./output.css",
    "watch:css": "tailwindcss -i ./src/components.css -o ./output.css --watch",
    "dev": "concurrently \"npm run watch:css\" \"electron .\"",
    "test": "echo \"Error: no test specified\" && exit 1",
    "clean:meta": "node -e \"const fs=require('fs');const path=require('path');function deleteMeta(dir){fs.readdirSync(dir).forEach(f=>{const p=path.join(dir,f);if(f.endsWith('.meta'))fs.unlinkSync(p);else if(fs.statSync(p).isDirectory()&&!f.startsWith('.'))deleteMeta(p);})}deleteMeta('./node_modules')\"",
    "prebuild": "node build_scripts/setup-embedded-python.js",
    "dist": "npm run prebuild && npm run clean:meta && npm run build:css && electron-builder",
    "dist:win": "npm run prebuild && npm run clean:meta && npm run build:css && electron-builder --win",
    "dist:portable": "npm run prebuild && npm run clean:meta && npm run build:css && electron-builder --win portable",
    "dist:zip": "npm run prebuild && npm run clean:meta && npm run build:css && electron-builder --win zip"
  },
  "build": {
    "appId": "com.yum_food.tastt",
    "productName": "TaSTT",
    "directories": {
      "output": "dist"
    },
    "files": [
      "**/*",
      "!dist/**/*",
      "!src/**/*",
      "!node_modules/**/{CHANGELOG.md,README.md,README,readme.md,readme}",
      "!node_modules/**/{test,__tests__,tests,powered-test,example,examples}",
      "!node_modules/**/*.d.ts",
      "!node_modules/.bin",
      "!.git/**/*",
      "!.gitignore"
    ],
    "extraResources": [
      {
        "from": "../app",
        "to": "app",
        "filter": [
          "**/*.py",
          "requirements.txt",
          "!**/__pycache__/**/*"
        ]
      },
      {
        "from": "../Images",
        "to": "Images",
        "filter": ["**/*"]
      },
      {
        "from": "../python_embedded",
        "to": "python",
        "filter": ["**/*"]
      },
      {
        "from": "../dll_empty",
        "to": "dll",
        "filter": ["**/*"]
      },
      {
        "from": "../Sounds",
        "to": "Sounds",
        "filter": ["*.wav"]
      }
    ],
    "win": {
      "icon": "../Images/favicon.ico",
      "target": [
        {
          "target": "portable",
          "arch": ["x64"]
        },
        {
          "target": "zip",
          "arch": ["x64"]
        }
      ]
    },
    "portable": {
      "artifactName": "${productName}-${version}-portable.exe"
    },
    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true
    },
    "compression": "normal",
    "artifactName": "${productName}-${version}-${arch}.${ext}"
  },
  "keywords": [],
  "author": "yum_food",
  "license": "MIT",
  "dependencies": {
    "js-yaml": "^4.1.0"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^5.2.4",
    "autoprefixer": "^10.4.21",
    "concurrently": "^9.1.2",
    "cross-env": "^7.0.3",
    "electron": "^36.3.2",
    "electron-builder": "^25.1.8",
    "postcss": "^8.5.4",
    "tailwindcss": "^3.4.17",
    "vite": "^6.3.5",
    "vue": "^3.5.16"
  }
}