Files
kopia/app/package.json
Jarek Kowalski 057c2789d8 Kopia UI: support for multiple repositories + portability (#398)
* server: when serving HTML UI, prefix the title with string from KOPIA_UI_TITLE_PREFIX envar

* kopia-ui: support for multiple repositories + portability

This is a major rewrite of the app/ codebase which changes
how configuration for repositories is maintained and how it flows
through the component hierarchy.

Portable mode is enabled by creating 'repositories' subdirectory before
launching the app.

on macOS:
  <parent>/KopiaUI.app
  <parent>/repositories/

On Windows, option #1 - nested directory
  <parent>\KopiaUI.exe
  <parent>\repositories\

On Windows, option #2 - parallel directory
  <parent>\some-dir\KopiaUI.exe
  <parent>\repositories\

In portable mode, repositories will have 'cache' and 'logs' nested
in it.
2020-04-04 17:18:37 -07:00

137 lines
3.0 KiB
JSON

{
"name": "kopia-ui",
"version": "0.5.0-test1",
"private": true,
"repository": "github:kopia/kopia",
"dependencies": {
"auto-launch": "^5.0.5",
"bootstrap": "^4.3.1",
"electron-first-run": "^3.0.0",
"electron-is-dev": "^1.1.0",
"electron-log": "^4.1.0",
"electron-updater": "^4.2.5",
"react": "^16.13.0",
"react-bootstrap": "^1.0.0-beta.17",
"react-dom": "^16.13.0",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.0",
"uuid": "^7.0.2"
},
"build": {
"productName": "KopiaUI",
"appId": "io.kopia.ui",
"publish": [
{
"provider": "github",
"vPrefixedTagName": false
}
],
"files": [
"build/**/*",
"node_modules/**/*"
],
"extraResources": [
{
"from": "resources/${os}",
"to": ".",
"filter": [
"**/*"
]
}
],
"directories": {
"buildResources": "assets",
"output": "../dist/kopia-ui"
},
"nsis": {
"oneClick": false,
"perMachine": false
},
"snap": {
"publish": [
"github"
]
},
"win": {
"target": ["nsis", "zip"],
"extraResources": [
{
"from": "../dist/kopia_windows_amd64",
"to": "server",
"filter": [
"kopia.exe"
]
}
],
"sign": "./sign.js",
"signingHashAlgorithms": [
"sha256"
]
},
"mac": {
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "entitlements.mac.plist",
"entitlementsInherit": "entitlements.mac.plist",
"category": "public.app-category.utilities",
"extraResources": [
{
"from": "../dist/kopia_darwin_amd64",
"to": "server",
"filter": [
"kopia"
]
}
]
},
"linux": {
"target": "AppImage",
"extraResources": [
{
"from": "../dist/kopia_linux_amd64",
"to": "server",
"filter": [
"kopia"
]
}
]
},
"afterSign": "notarize.js"
},
"devDependencies": {
"asar": "^2.1.0",
"concurrently": "^5.1.0",
"electron": "^7.1.14",
"electron-builder": "^22.4.1",
"electron-notarize": "^0.2.1"
},
"homepage": "./",
"main": "public/electron.js",
"scripts": {
"start": "react-scripts start",
"build-html": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"start-electron": "electron .",
"build-electron": "electron-builder",
"build-electron-dir": "electron-builder --dir",
"start-electron-prebuilt": "ELECTRON_IS_DEV=0 electron .",
"dev": "concurrently \"react-scripts start\" \"sleep 3s; electron .\""
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}