* chore: expose fs apis * chore: correct electron import path * update download api Signed-off-by: James <james@jan.ai> * update chat_completion Signed-off-by: James <james@jan.ai> * fix electron import Signed-off-by: James <james@jan.ai> * feat: adding API support at 1337 (#991) Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> * feat: Add /chat/completion api and handler * chore: add todo for modelList * chore: read engine.json for openai chat_completion (#1030) Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> * refactor: move routes to shared node module * refactor: exported modules from core with types (#1172) * refactor: exported modules from core with types * fix: fix file reading args * refactor: fileManager handles * fix: app issues with server refactoring * refactor: shared server module (#1210) * chore: resolve main * chore: update makefile --------- Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> Co-authored-by: NamH <NamNh0122@gmail.com> Co-authored-by: hiro <vuonghoainam.work@gmail.com>
56 lines
2.8 KiB
JSON
56 lines
2.8 KiB
JSON
{
|
|
"name": "jan-app",
|
|
"private": true,
|
|
"workspaces": {
|
|
"packages": [
|
|
"uikit",
|
|
"core",
|
|
"electron",
|
|
"web",
|
|
"server"
|
|
],
|
|
"nohoist": [
|
|
"uikit",
|
|
"uikit/*",
|
|
"core",
|
|
"core/*",
|
|
"electron",
|
|
"electron/**",
|
|
"web",
|
|
"web/**",
|
|
"server",
|
|
"server/**"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"lint": "yarn workspace jan lint && yarn workspace jan-web lint",
|
|
"test": "yarn workspace jan test:e2e",
|
|
"dev:electron": "cpx \"models/**\" \"electron/models/\" && yarn workspace jan dev",
|
|
"dev:web": "yarn workspace jan-web dev",
|
|
"dev": "concurrently --kill-others \"yarn dev:web\" \"wait-on http://localhost:3000 && yarn dev:electron\"",
|
|
"test-local": "yarn lint && yarn build:test && yarn test",
|
|
"dev:uikit": "yarn workspace @janhq/uikit install && yarn workspace @janhq/uikit dev",
|
|
"build:uikit": "yarn workspace @janhq/uikit install && yarn workspace @janhq/uikit build",
|
|
"build:server": "cd server && yarn install && yarn run build",
|
|
"build:core": "cd core && yarn install && yarn run build",
|
|
"build:web": "yarn workspace jan-web build && cpx \"web/out/**\" \"electron/renderer/\"",
|
|
"build:electron": "cpx \"models/**\" \"electron/models/\" && yarn workspace jan build",
|
|
"build:electron:test": "yarn workspace jan build:test",
|
|
"build:extensions:windows": "rimraf ./electron/pre-install/*.tgz && powershell -command \"$jobs = Get-ChildItem -Path './extensions' -Directory | ForEach-Object { Start-Job -Name ($_.Name) -ScriptBlock { param($_dir); try { Set-Location $_dir; npm install; npm run build:publish; Write-Output 'Build successful in ' + $_dir } catch { Write-Error 'Error in ' + $_dir; throw } } -ArgumentList $_.FullName }; $jobs | Wait-Job; $jobs | ForEach-Object { Receive-Job -Job $_ -Keep } | ForEach-Object { Write-Host $_ }; $failed = $jobs | Where-Object { $_.State -ne 'Completed' -or $_.ChildJobs[0].JobStateInfo.State -ne 'Completed' }; if ($failed) { Exit 1 }\"",
|
|
"build:extensions:linux": "rimraf ./electron/pre-install/*.tgz && find ./extensions -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0 -n 1 -P 4 -I {} sh -c 'cd {} && npm install && npm run build:publish'",
|
|
"build:extensions:darwin": "rimraf ./electron/pre-install/*.tgz && find ./extensions -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0 -n 1 -P 4 -I {} sh -c 'cd {} && npm install && npm run build:publish'",
|
|
"build:extensions": "run-script-os",
|
|
"build:test": "yarn build:web && yarn workspace jan build:test",
|
|
"build": "yarn build:web && yarn build:electron",
|
|
"build:publish": "cpx \"models/**\" \"electron/models/\" && yarn build:web && yarn workspace jan build:publish"
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "^8.2.1",
|
|
"cpx": "^1.5.0",
|
|
"rimraf": "^3.0.2",
|
|
"wait-on": "^7.0.1",
|
|
"run-script-os": "^1.1.6"
|
|
},
|
|
"version": "0.0.0"
|
|
}
|