71 lines
2.8 KiB
JSON
71 lines
2.8 KiB
JSON
{
|
|
"name": "jan-app",
|
|
"private": true,
|
|
"workspaces": {
|
|
"packages": [
|
|
"core",
|
|
"web-app",
|
|
"tests-e2e-js"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"lint": "yarn workspace @janhq/web-app lint",
|
|
"dev": "yarn dev:tauri",
|
|
"build": "yarn build:web && yarn build:tauri",
|
|
"test": "jest && yarn workspace @janhq/web-app test",
|
|
"test:coverage": "yarn test:coverage:jest && yarn test:coverage:vitest && yarn merge:coverage",
|
|
"test:coverage:jest": "jest --coverage --coverageDirectory=coverage/jest",
|
|
"test:coverage:vitest": "yarn workspace @janhq/web-app test:coverage",
|
|
"merge:coverage": "node scripts/merge-coverage.js",
|
|
"test:prepare": "yarn build:icon && yarn copy:lib && yarn copy:assets:tauri && yarn build --no-bundle ",
|
|
"test:e2e:linux": "yarn test:prepare && xvfb-run yarn workspace tests-e2-js test",
|
|
"test:e2e:win32": "yarn test:prepare && yarn workspace tests-e2-js test",
|
|
"test:e2e:darwin": "echo 'E2E tests are not supported on macOS yet due to WebDriver limitations'",
|
|
"test:e2e": "run-script-os",
|
|
"dev:web": "yarn workspace @janhq/web-app dev",
|
|
"dev:tauri": "yarn build:icon && yarn copy:assets:tauri && tauri dev",
|
|
"copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\"",
|
|
"download:lib": "node ./scripts/download-lib.mjs",
|
|
"download:bin": "node ./scripts/download-bin.mjs",
|
|
"build:tauri:win32": "yarn download:bin && yarn tauri build",
|
|
"build:tauri:linux": "yarn download:bin && ./src-tauri/build-utils/shim-linuxdeploy.sh yarn tauri build && ./src-tauri/build-utils/buildAppImage.sh",
|
|
"build:tauri:darwin": "yarn tauri build --target universal-apple-darwin",
|
|
"build:tauri": "yarn build:icon && yarn copy:assets:tauri && run-script-os",
|
|
"build:icon": "tauri icon ./src-tauri/icons/icon.png",
|
|
"build:core": "cd core && yarn build && yarn pack",
|
|
"build:web": "yarn workspace @janhq/web-app build",
|
|
"build:extensions": "rimraf ./pre-install/*.tgz || true && yarn workspace @janhq/core build && cd extensions && yarn install && yarn workspaces foreach -Apt run build:publish",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"@tauri-apps/cli": "^2.2.5",
|
|
"concurrently": "^9.1.0",
|
|
"cpx": "^1.5.0",
|
|
"cross-env": "^7.0.3",
|
|
"husky": "^9.1.5",
|
|
"istanbul-api": "^3.0.0",
|
|
"istanbul-lib-coverage": "^3.2.2",
|
|
"istanbul-lib-report": "^3.0.1",
|
|
"istanbul-reports": "^3.1.7",
|
|
"jest": "^30.0.3",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"nyc": "^17.1.0",
|
|
"rimraf": "^3.0.2",
|
|
"run-script-os": "^1.1.6",
|
|
"tar": "^4.4.19",
|
|
"unzipper": "^0.12.3",
|
|
"wait-on": "^7.0.1"
|
|
},
|
|
"version": "0.0.0",
|
|
"installConfig": {
|
|
"hoistingLimits": "workspaces"
|
|
},
|
|
"resolutions": {
|
|
"yallist": "4.0.0"
|
|
},
|
|
"packageManager": "yarn@4.5.3",
|
|
"dependencies": {
|
|
"download-cli": "^1.1.1"
|
|
}
|
|
}
|