160 lines
6.2 KiB
JSON
160 lines
6.2 KiB
JSON
{
|
|
"name": "openflexure-ev",
|
|
"version": "0.2.2-alpha.1",
|
|
"private": true,
|
|
"description": "An electron-based user client for the OpenFlexure Microscope Server",
|
|
"author": "OpenFlexure <contact@openflexure.org> (https://www.openflexure.org)",
|
|
"homepage": "https://gitlab.com/openflexure/openflexure-microscope-jsclient",
|
|
"productName": "OpenFlexure eV",
|
|
"publisher": "Bath Open Instrumentation Group",
|
|
"displayName": "OpenFlexure eV",
|
|
"license": "GNU General Public License v3.0 ",
|
|
"main": "./app/app.js",
|
|
"scripts": {
|
|
"pack": "build --dir",
|
|
"dist": "build",
|
|
"dist:win": "build --win",
|
|
"build:android": "npm run setup-webpack-config && tns build android --bundle --env.production && npm run remove-webpack-config",
|
|
"build:ios": "npm run setup-webpack-config && tns build ios --bundle --env.production && npm run remove-webpack-config",
|
|
"build:web": "vue-cli-service build --mode production.web",
|
|
"clean:android": "rimraf platforms/android",
|
|
"clean:ios": "rimraf platforms/ios",
|
|
"clean:platforms": "rimraf platforms",
|
|
"debug:android": "npm run setup-webpack-config && tns debug android --bundle --env.development",
|
|
"debug:ios": "npm run setup-webpack-config && tns debug ios --bundle --env.development",
|
|
"electron:run": "electron .",
|
|
"electron:dev": "electron app.dev.js",
|
|
"package:all": "npm run build:web && npm run package:win && npm run package:linux && npm run package:rpi && npm run package:darwin",
|
|
"package:darwin": "electron-packager . openflexure-ev --ignore=\"^/(src|app/installers|platforms|hooks|\\..*)\" --overwrite --asar --platform=darwin --arch=x64 --icon=app/icons/mac/icon.icns --prune=true --out=release-builds",
|
|
"package:linux": "electron-packager . openflexure-ev --ignore=\"^/(src|app/installers|platforms|hooks|\\..*)\" --overwrite --asar --platform=linux --arch=x64 --icon=app/icons/png/1024x1024.png --prune=true --out=release-builds",
|
|
"package:rpi": "electron-packager . openflexure-ev --ignore=\"^/(src|app/installers|platforms|hooks|\\..*)\" --overwrite --asar --platform=linux --electron-version=3.0.13 --arch=armv7l --icon=app/icons/png/1024x1024.png --prune=true --out=release-builds",
|
|
"package:win": "electron-packager . openflexure-ev --ignore=\"^/(src|app/installers|platforms|hooks|\\..*)\" --overwrite --platform=win32 --arch=x64 --icon=app/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"OpenFlexure Microscope JS\"",
|
|
"preview:android": "npm run setup-webpack-config && tns preview --bundle --env.development --env.android",
|
|
"preview:ios": "npm run setup-webpack-config && tns preview --bundle --env.development --env.ios",
|
|
"remove-webpack-config": "node ./node_modules/vue-cli-plugin-nativescript-vue/lib/scripts/webpack-maintenance post",
|
|
"serve:android": "npm run setup-webpack-config && tns run android --bundle --env.development",
|
|
"serve:ios": "npm run setup-webpack-config && tns run ios --bundle --env.development",
|
|
"serve:web": "vue-cli-service serve --mode development.web",
|
|
"setup-webpack-config": "node ./node_modules/vue-cli-plugin-nativescript-vue/lib/scripts/webpack-maintenance pre"
|
|
},
|
|
"build": {
|
|
"appId": "org.openflexure.ev",
|
|
"asar": true,
|
|
"files": [
|
|
"**/*",
|
|
"!**/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",
|
|
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
|
|
"!.editorconfig",
|
|
"!**/._*",
|
|
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
|
|
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
|
|
"!**/{appveyor.yml,.travis.yml,circle.yml}",
|
|
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
|
|
"!**/.env.*",
|
|
"!**/{.idea,.vscode}${/*}",
|
|
"!**/app/installers${/*}",
|
|
"!**/hooks${/*}",
|
|
"!**/platforms${/*}",
|
|
"!**/release-builds${/*}",
|
|
"!src${/*}"
|
|
],
|
|
"directories": {
|
|
"output": "release-builds"
|
|
},
|
|
"mac": {
|
|
"icon": "app/icons/mac/icon.icns",
|
|
"category": "public.app-category.utilities"
|
|
},
|
|
"dmg": {
|
|
"contents": [
|
|
{
|
|
"x": 110,
|
|
"y": 150
|
|
},
|
|
{
|
|
"x": 240,
|
|
"y": 150,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
}
|
|
]
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage",
|
|
{
|
|
"target": "deb",
|
|
"arch": [
|
|
"x64",
|
|
"armv7l"
|
|
]
|
|
}
|
|
],
|
|
"icon": "app/icons/png/1024x1024.png"
|
|
},
|
|
"deb": {
|
|
"category": "Science"
|
|
},
|
|
"win": {
|
|
"target": "NSIS",
|
|
"icon": "app/icons/win/icon.ico"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"about-window": "^1.12.1",
|
|
"electron-context-menu": "^0.11.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.4.0",
|
|
"@babel/preset-env": "^7.4.1",
|
|
"@babel/traverse": "^7.4.0",
|
|
"@vue/cli-plugin-babel": "^3.3.0",
|
|
"@vue/cli-service": "^3.6.0",
|
|
"axios": "^0.18.0",
|
|
"babel-loader": "^8.0.5",
|
|
"css-loader": "^2.1.0",
|
|
"electron": "^4.1.4",
|
|
"electron-builder": "^20.39.0",
|
|
"electron-windows-store": "^2.1.0",
|
|
"less": "^3.9.0",
|
|
"less-loader": "^4.1.0",
|
|
"nativescript-dev-webpack": "^0.20.3",
|
|
"nativescript-vue": "^2.2.0",
|
|
"nativescript-vue-template-compiler": "^2.2.0",
|
|
"nativescript-worker-loader": "~0.9.5",
|
|
"node-sass": "^4.11.0",
|
|
"rimraf": "^2.6.3",
|
|
"string-replace-loader": "^2.1.1",
|
|
"tns-core-modules": "^5.2.2",
|
|
"uikit": "^3.0.2",
|
|
"vue": "^2.5.21",
|
|
"vue-cli-plugin-nativescript-vue": "0.0.14",
|
|
"vue-template-compiler": "^2.5.21",
|
|
"vuex": "^3.0.1",
|
|
"webpack": "^4.29.6",
|
|
"webpack-cli": "^3.3.0"
|
|
},
|
|
"optionalDependencies": {},
|
|
"postcss": {
|
|
"plugins": {
|
|
"autoprefixer": {}
|
|
}
|
|
},
|
|
"browserslist": [
|
|
"> 1%",
|
|
"last 2 versions",
|
|
"not ie <= 8"
|
|
],
|
|
"nativescript": {
|
|
"id": "org.nativescript.application",
|
|
"tns-ios": {
|
|
"version": "5.2.0"
|
|
},
|
|
"tns-android": {
|
|
"version": "5.2.1"
|
|
}
|
|
}
|
|
}
|