This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
package.json
190 lines (190 loc) · 9.18 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"name": "@southbanksoftware/dbkoda",
"gitName": "dbkoda",
"fullName": "dbKoda",
"productName": "dbKoda",
"description": "Next generation MongoDB IDE",
"version": "1.1.0",
"author": {
"name": "Southbank Software",
"email": "[email protected]",
"url": "http://southbanksoftware.com"
},
"main": "lib/",
"keywords": ["dbkoda", "mongodb", "shell", "nosql", "dba", "electron", "react"],
"apiKey": "RnIX59L6lPiNIaTyoY4cEQ==",
"engines": {
"node": ">= 8.9.1"
},
"mode": "dev",
"jest-html-reporter": {
"pageTitle": "dbKoda UAT Report",
"outputPath": "uat-report.html",
"includeFailureMsg": true
},
"scripts": {
"pack":
"yarn run cbuild && ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true build --dir --config.extraMetadata.mode=prod",
"pack:win32": "rimraf dist/win-ia32-unpacked && yarn run pack --win --ia32",
"pack:win64": "rimraf dist/win-unpacked && yarn run pack --win --x64",
"pack:no:sign": "CSC_IDENTITY_AUTO_DISCOVERY=false yarn run pack",
"dist:basic": "yarn run cbuild && build --config.extraMetadata.mode=prod",
"dist":
"ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true yarn run dist:basic --publish never",
"dist:win":
"rimraf dist/win-ia32-unpacked && rimraf dist/win-unpacked && set ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true&& yarn run dist:basic --publish never --win --x64 --ia32",
"dist:win:nightly":
"set ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true && yarn run dist:win --config.extraMetadata.version=%NIGHTLY_VERSION%",
"dist:release": "yarn run dist --config electron-builder-release.json",
"dist:win:release": "yarn run dist:win --config electron-builder-release.json",
"dist:dev":
"yarn run dist --config electron-builder-dev.json --config.extraMetadata.version=$DEV_VERSION",
"dist:win:dev":
"yarn run dist:win --config electron-builder-dev.json --config.extraMetadata.version=%DEV_VERSION%",
"s3:publish": "yarn run dist:basic --config electron-builder-release.json --publish always",
"s3:publish:win":
"yarn run dist:basic --config electron-builder-release.json --win --x64 --ia32 --publish always",
"postinstall": "yarn run cbuild",
"byo": "MODE=byo yarn run dev",
"byo:debug": "MODE=byo yarn run dev:debug",
"byo:win": "set MODE=byo&& yarn run dev",
"super":
"concurrently --kill-others \"(cd ../dbkoda-ui/; yarn dev)\" \"MODE=super_dev yarn run dev\"",
"mac:gainKeychainAccess":
"security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $KEYCHAIN_PWD ~/Library/Keychains/login.keychain-db > /dev/null",
"dev": "yarn run cbuild:dev && yarn start",
"dev:debug": "yarn run cbuild:dev && yarn debug",
"dev:install": "yarn install --ignore-scripts",
"dev:rebuild:electron":
"ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true electron-builder install-app-deps",
"dev:rebuild:current": "npm rebuild",
"dev:prod": "yarn run cbuild && MODE=prod yarn start",
"dev:chrome":
"/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --remote-debugging-port=9222 --no-first-run --user-data-dir=/tmp/chrome-dev-profile",
"dev:build": "yarn run build --source-maps",
"dev:link":
"yarn run dev:link:controller && yarn run dev:link:controller:ui && yarn run dev:link:uiDefinitions",
"dev:link:controller":
"rimraf assets/controller && ln -s \"$(cd ../dbkoda-controller && pwd)\" assets/controller && (cd assets/controller && (yarn unlink > /dev/null 2>&1; exit 0) && yarn link) && yarn link \"@southbanksoftware/dbkoda-controller\"",
"dev:link:controller:ui":
"cd ../dbkoda-controller && rimraf public/ui && ln -s \"$(cd ../dbkoda-ui/dist/ui && pwd)\" public/ui",
"dev:link:uiDefinitions":
"rimraf src/tests/tree/actions/uiDefinitions && mkdir -p src/tests/tree/actions/uiDefinitions && ln -s ../../../../../../dbkoda-ui/src/components/TreeActionPanel/DialogDefinitions src/tests/tree/actions/uiDefinitions/ddd && ln -s ../../../../../../dbkoda-ui/src/components/TreeActionPanel/tests src/tests/tree/actions/uiDefinitions/inputAndTest",
"dev:link:win": "call links.cmd",
"start": "electron .",
"debug": "electron --inspect-brk=9222 .",
"clean": "rimraf lib",
"build": "babel --ignore tests -d lib/ src/",
"cbuild": "yarn run clean && yarn run build",
"cbuild:dev": "yarn run clean && yarn run dev:build",
"build:icon": "electron-icon-maker -i misc/dbkoda-logo-favicon.png -o build",
"build:icon:win":
"misc/win10iconTools.exe pngscale2ico build/icons/win/icon.ico misc/dbkoda-logo-favicon.png nearest none 16,32,64,128,256 -png && rimraf temp",
"build:dmgbackground":
"tiffutil -cathidpicheck misc/dmgbackground.png misc/[email protected] -out misc/dmgbackground.tiff",
"test": "yarn test:dev",
"test:dev": "yarn flow && yarn run eslint && yarn run jest:report",
"test:prod": "yarn flow && yarn run eslint && yarn run jest:prod",
"eslint": "eslint src/. tests/.",
"jest:report":
"bash -c 'yarn run cbuild:dev && rimraf uat-report.html && yarn jest $@; open -b com.google.chrome uat-report.html'",
"jest:ci":
"yarn run cbuild:dev && rimraf uat-report.html && CONFIG_PATH=~/.dbKoda/config.yml yarn jest",
"jest:debug": "DEBUG=true CI=true yarn jest",
"jest:inspect":
"yarn run cbuild:dev && DEBUG=true CI=true NODE_ENV=test node --inspect-brk ./node_modules/.bin/jest --runInBand --forceExit --config jest.json",
"jest:prod":
"bash -c 'yarn run cbuild && yarn run pack && rimraf uat-report.html && NODE_ENV=production yarn jest $@; open -b com.google.chrome uat-report.html'",
"jest:prod:runonly":
"bash -c 'rimraf uat-report.html && NODE_ENV=production yarn jest $@; open -b com.google.chrome uat-report.html'",
"jest:prod:runonly:debug": "DEBUG=true CI=true yarn jest:prod:runonly",
"jest:prod:win": "set NODE_ENV=production&& yarn jest:win ",
"jest:prod:runonly:win":
"rimraf uat-report.html && set NODE_ENV=production&& yarn jest:win && start uat-report.html",
"jest":
"export DBUS_SESSION_BUS_ADDRESS=/dev/null; jest --runInBand --forceExit --config jest.json",
"jest:win":
"set DBUS_SESSION_BUS_ADDRESS=/dev/null; && jest --runInBand --forceExit --config jest.win.json",
"jest:win:debug": "set DEBUG=true&& set CI=true&& yarn jest:win",
"docs": "yarn run esdoc && open -b com.google.chrome ./docs/index.html",
"esdoc": "rimraf docs && esdoc -c .esdoc.json",
"flow": "flow",
"flow:install": "flow-typed install --overwrite --skip",
"format":
"bash -c 'INPUT=$(IFS=\"\n\"; echo \"$0\n$*\"); FI=$(egrep '\"'\"'\\.jsx?$|\\.json$|\\.scss$'\"'\"' <<< \"$INPUT\"); if [[ ! -z \"$FI\" ]]; then prettier --write $FI; fi; FI=$(egrep '\"'\"'\\.jsx?$'\"'\"' <<< \"$INPUT\"); if [[ ! -z \"$FI\" ]]; then eslint --fix $FI; fi'",
"prepush": "yarn flow",
"precommit":
"INPUT=$(git diff --name-only --cached --diff-filter=d); if [[ ! -z \"$INPUT\" ]]; then yarn format $INPUT; git add $INPUT; fi"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SouthbankSoftware/dbkoda.git"
},
"license": "AGPL-3.0",
"private": true,
"bugs": {
"url": "https://github.com/SouthbankSoftware/dbkoda/issues"
},
"homepage": "https://github.com/SouthbankSoftware/dbkoda#readme",
"dependencies": {
"@southbanksoftware/dbkoda-controller": "file:build/controller-placeholder",
"chromedriver": "^2.35.0",
"config": "^1.29.4",
"electron-updater": "^2.20.1",
"global": "^4.3.2",
"js-yaml": "^3.10.0",
"lodash": "^4.17.5",
"moment": "^2.20.1",
"path": "^0.12.7",
"pkginfo": "^0.4.1",
"portscanner": "^2.1.1",
"raygun": "^0.9.1",
"request-promise-native": "^1.0.5",
"shelljs": "^0.8.1",
"tar": "^4.4.0",
"wget-improved": "^1.5.0",
"winston": "^3.0.0-rc5",
"winston-daily-rotate-file": "^3.1.3"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-root-import": "^5.1.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-flow": "^6.23.0",
"concurrently": "^3.5.1",
"devtron": "^1.4.0",
"electron": "^1.8.6",
"electron-builder": "^20.2.0",
"electron-devtools-installer": "^2.2.3",
"electron-publisher-s3": "^20.2.0",
"esdoc": "^1.0.4",
"eslint": "^4.18.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-flowtype": "^2.46.3",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"flow-bin": "^0.70.0",
"flow-typed": "^2.4.0",
"fs-extra": "^5.0.0",
"handlebars": "^4.0.11",
"husky": "^0.14.3",
"jest": "^22.4.3",
"jest-html-reporter": "github:SouthbankSoftware/jest-html-reporter",
"nodemon": "^1.15.1",
"prettier": "1.12.1",
"rimraf": "^2.6.2",
"source-map-support": "^0.5.3",
"spectron": "^3.8.0",
"sprintf-js": "^1.1.1",
"test-utils": "^1.1.1",
"uuid": "^3.2.1"
}
}