1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 16:53:27 +00:00
Files
browser/apps/desktop/project.json
2026-01-14 17:29:20 -06:00

156 lines
5.5 KiB
JSON

{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "desktop",
"projectType": "application",
"sourceRoot": "apps/desktop/src",
"tags": ["scope:desktop", "type:app"],
"targets": {
"build-native": {
"executor": "nx:run-commands",
"options": {
"command": "cd desktop_native && node build.js",
"cwd": "apps/desktop"
}
},
"build-main": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/dist/apps/desktop"],
"options": {
"command": "cross-env NODE_ENV=production webpack --config webpack.config.js --config-name main",
"cwd": "apps/desktop"
},
"configurations": {
"oss": {
"command": "cross-env NODE_ENV=production webpack --config webpack.config.js --config-name main"
},
"oss-dev": {
"command": "cross-env NODE_ENV=development webpack --config webpack.config.js --config-name main"
},
"commercial": {
"command": "cross-env NODE_ENV=production webpack --config ../../bitwarden_license/bit-desktop/webpack.config.js --config-name main"
},
"commercial-dev": {
"command": "cross-env NODE_ENV=development webpack --config ../../bitwarden_license/bit-desktop/webpack.config.js --config-name main"
}
}
},
"build-preload": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/dist/apps/desktop"],
"options": {
"command": "cross-env NODE_ENV=production webpack --config webpack.config.js --config-name preload",
"cwd": "apps/desktop"
},
"configurations": {
"oss": {
"command": "cross-env NODE_ENV=production webpack --config webpack.config.js --config-name preload"
},
"oss-dev": {
"command": "cross-env NODE_ENV=development webpack --config webpack.config.js --config-name preload"
},
"commercial": {
"command": "cross-env NODE_ENV=production webpack --config ../../bitwarden_license/bit-desktop/webpack.config.js --config-name preload"
},
"commercial-dev": {
"command": "cross-env NODE_ENV=development webpack --config ../../bitwarden_license/bit-desktop/webpack.config.js --config-name preload"
}
}
},
"build-renderer": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/dist/apps/desktop"],
"options": {
"command": "cross-env NODE_ENV=production webpack --config webpack.config.js --config-name renderer",
"cwd": "apps/desktop"
},
"configurations": {
"oss": {
"command": "cross-env NODE_ENV=production webpack --config webpack.config.js --config-name renderer"
},
"oss-dev": {
"command": "cross-env NODE_ENV=development webpack --config webpack.config.js --config-name renderer"
},
"commercial": {
"command": "cross-env NODE_ENV=production webpack --config ../../bitwarden_license/bit-desktop/webpack.config.js --config-name renderer"
},
"commercial-dev": {
"command": "cross-env NODE_ENV=development webpack --config ../../bitwarden_license/bit-desktop/webpack.config.js --config-name renderer"
}
}
},
"build": {
"executor": "nx:run-commands",
"dependsOn": ["build-native"],
"outputs": ["{workspaceRoot}/dist/apps/desktop"],
"options": {
"parallel": true,
"commands": [
"nx run desktop:build-main",
"nx run desktop:build-preload",
"nx run desktop:build-renderer"
]
},
"configurations": {
"oss": {
"commands": [
"nx run desktop:build-main --configuration=oss",
"nx run desktop:build-preload --configuration=oss",
"nx run desktop:build-renderer --configuration=oss"
]
},
"oss-dev": {
"commands": [
"nx run desktop:build-main --configuration=oss-dev",
"nx run desktop:build-preload --configuration=oss-dev",
"nx run desktop:build-renderer --configuration=oss-dev"
]
},
"commercial": {
"commands": [
"nx run desktop:build-main --configuration=commercial",
"nx run desktop:build-preload --configuration=commercial",
"nx run desktop:build-renderer --configuration=commercial"
]
},
"commercial-dev": {
"commands": [
"nx run desktop:build-main --configuration=commercial-dev",
"nx run desktop:build-preload --configuration=commercial-dev",
"nx run desktop:build-renderer --configuration=commercial-dev"
]
}
}
},
"serve": {
"executor": "nx:run-commands",
"dependsOn": ["build-native"],
"options": {
"command": "node scripts/nx-serve.js",
"cwd": "apps/desktop"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/desktop"],
"options": {
"jestConfig": "apps/desktop/jest.config.js"
},
"configurations": {
"oss": {
"jestConfig": "apps/desktop/jest.config.js"
},
"commercial": {
"jestConfig": "bitwarden_license/bit-desktop/jest.config.js"
}
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/desktop/**/*.ts", "apps/desktop/**/*.html"]
}
}
}
}