forked from pubkey/rxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
249 lines (249 loc) · 12.2 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
{
"name": "rxdb",
"description": "A realtime Database for JavaScript applications",
"// version": "For pre-release versions run 'npm publish --tag next'",
"version": "11.3.0",
"author": "pubkey",
"repository": {
"type": "git",
"url": "https://github.com/pubkey/rxdb"
},
"homepage": "https://rxdb.info/",
"keywords": [
"db",
"database",
"offline-first",
"nosql",
"no-sql",
"jsonschema",
"rxjs",
"pwa",
"localstorage",
"indexeddb",
"encryption",
"pouchdb",
"couchdb",
"live-query",
"reactive",
"realtime"
],
"license": "Apache-2.0",
"main": "./dist/lib/index.js",
"jsnext:main": "./dist/es/index.js",
"module": "./dist/es/index.js",
"types": "./dist/types/index.d.ts",
"sideEffects": false,
"scripts": {
"postinstall": "node scripts/postinstall.js || echo \"ignore\"",
"pretest": "npm run transpile",
"test": "npm run test:node && npm run test:browser",
"// test:fast": "run tests in the fast-mode. Most of them will run in parrallel, skips tests that are known slow",
"test:fast": "npm run test:fast:pouchdb && npm run test:fast:lokijs && npm run test:fast:lokijs-worker",
"test:fast:pouchdb": "npm run pretest && rimraf -rf pouch__all_dbs__ && cross-env DEFAULT_STORAGE=pouchdb NODE_ENV=fast mocha --config ./config/.mocharc.js ./test_tmp/unit.test.js",
"test:fast:lokijs": "npm run pretest && rimraf -rf pouch__all_dbs__ && cross-env DEFAULT_STORAGE=lokijs NODE_ENV=fast mocha --config ./config/.mocharc.js ./test_tmp/unit.test.js",
"test:fast:lokijs-worker": "npm run pretest && rimraf -rf pouch__all_dbs__ && cross-env DEFAULT_STORAGE=lokijs-worker NODE_ENV=fast mocha --config ./config/.mocharc.js ./test_tmp/unit.test.js",
"// test:fast:loop": "runs tests in the fast-mode in a loop. Use this to debug tests that only fail sometimes",
"test:fast:loop": "npm run test:fast && npm run test:fast:loop",
"test:fast:loop:lokijs": "npm run test:fast:lokijs && npm run test:fast:loop:lokijs",
"test:node": "npm run test:node:pouchdb && npm run test:node:lokijs && npm run test:node:lokijs-worker",
"test:node:pouchdb": "npm run pretest && cross-env DEFAULT_STORAGE=pouchdb mocha --expose-gc --config ./config/.mocharc.js ./test_tmp/unit.test.js",
"test:node:lokijs": "npm run pretest && cross-env DEFAULT_STORAGE=lokijs mocha --expose-gc --config ./config/.mocharc.js ./test_tmp/unit.test.js",
"test:node:lokijs-worker": "npm run pretest && cross-env DEFAULT_STORAGE=lokijs-worker mocha --expose-gc --config ./config/.mocharc.js ./test_tmp/unit.test.js",
"test:node:pouchdb:loop": "npm run test:node:pouchdb && npm run test:node:pouchdb:loop",
"test:node:lokijs:loop": "npm run test:node:lokijs && npm run test:node:lokijs:loop",
"// test:node:loop": "runs tests in node in a loop. Use this to debug tests that only fail sometimes",
"test:node:loop": "npm run test:node && npm run test:node:loop",
"test:browser": "npm run pretest && cross-env DEFAULT_STORAGE=pouchdb karma start ./config/karma.conf.js --single-run",
"test:core": "npm run pretest && mocha ./test_tmp/unit/core.node.js",
"test:typings": "npm run pretest && cross-env DEFAULT_STORAGE=pouchdb NODE_ENV=fast mocha --config ./config/.mocharc.js ./test_tmp/typings.test.js",
"test:typings:ci": "npm run pretest && mocha --config ./config/.mocharc.js ./test_tmp/typings.test.js",
"test:deps": "npm run build && dependency-check ./package.json ./dist/lib/plugins/replication-graphql/index.js ./dist/lib/plugins/server.js ./dist/lib/plugins/validate-z-schema.js ./dist/lib/plugins/lokijs/index.js ./dist/lib/plugins/worker/index.js --no-dev --ignore-module util --ignore-module babel-plugin-transform-async-to-promises --ignore-module url --ignore-module as-typed --ignore-module \"@types/*\"",
"test:circular": "npm run build && madge --circular ./dist/es/index.js",
"test:performance:pouchdb": "npm run pretest && cross-env STORAGE=pouchdb mocha --config ./config/.mocharc.js ./test_tmp/performance.test.js --unhandled-rejections=strict --expose-gc",
"test:performance:lokijs": "npm run pretest && cross-env STORAGE=lokijs mocha --config ./config/.mocharc.js ./test_tmp/performance.test.js --unhandled-rejections=strict --expose-gc",
"test:performance:lokijs-worker": "npm run pretest && cross-env STORAGE=lokijs-worker mocha --config ./config/.mocharc.js ./test_tmp/performance.test.js --unhandled-rejections=strict --expose-gc",
"couch:start": "docker run -d -p 5984:5984 --rm --name rxdb-couchdb couchdb:2.1.1",
"couch:stop": "docker rm -f rxdb-couchdb",
"test:couchdb": "npm run pretest && cross-env DEFAULT_STORAGE=pouchdb mocha --config ./config/.mocharc.js ./test_tmp/couch-db-integration.test.js",
"dockertest": "docker run -it -v $(pwd):/usr/src/app markadams/chromium-xvfb-js:latest-onbuild",
"profile": "npm run pretest && rm -f isolate-* && cross-env STORAGE=pouchdb NODE_ENV=fast NODE_PROF=true mocha --config ./config/.mocharc.js ./test_tmp/performance.test.js --v8-prof --expose-gc && node scripts/profile.js",
"clear": "rimraf -rf test_tmp/ && rimraf -rf dist/ && rimraf .transpile_state.json",
"lint": "eslint . --ext .js,.ts,.json --cache",
"lint:fix": "eslint --fix . --ext .js,.ts,.json",
"check-types": "tsc",
"transpile": "concurrently \"node scripts/transpile.js\" \"npm run build:workers\"",
"build:es": "rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es --source-maps --extensions \".ts,.js\"",
"build:types": "rimraf -rf ./dist/types && tsc --project ./config/tsconfig.types.json && cp -r ./src/types ./dist/types/types",
"build": "npm run clear && concurrently \"npm run transpile\" \"npm run build:es\" \"npm run build:types\" && browserify dist/lib/browserify.index.js > dist/rxdb.browserify.js && terser --compress --mangle --output dist/rxdb.browserify.min.js -- dist/rxdb.browserify.js",
"build:min": "npm run transpile && browserify dist/lib/browserify.index.js > dist/rxdb.browserify.js && terser --compress --mangle --output dist/rxdb.browserify.min.js -- dist/rxdb.browserify.js",
"build:workers": "npx webpack build --config ./src/plugins/worker/workers/webpack.config.js",
"build:webpack": "npm run build && cross-env NODE_ENV=build webpack --config ./config/webpack.config.js",
"build:rollup": "npm run build && rollup --config ./config/rollup.config.js",
"build:size": "npm run build:webpack && echo \"Build-Size (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js",
"// docs": "TODO move away from gitbook so we are not forced to use node.js version 13 to build the docs",
"docs:install": "gitbook install docs-src",
"// docs:serve": "start a local server to watch the docs. Served at http://localhost:4000/",
"docs:serve": "gitbook serve docs-src",
"docs:build": "gitbook install docs-src && gitbook build docs-src docs && cp docs-src/files/logo/icon.png docs/gitbook/images/apple-touch-icon-precomposed-152.png && cp docs-src/files/logo/icon.ico docs/gitbook/images/favicon.ico && npm run docs:copy",
"docs:copy": "cp -r docs-src/files docs/files && npm run docs:copy:landingpage",
"docs:copy:landingpage": "rimraf -f ./docs/index.html && cp ./docs-src/index.html ./docs/index.html",
"disc": "npm run transpile && npm run build:es && cross-env NODE_ENV=disc webpack --config ./config/webpack.config.js",
"preversion": "npm run lint && npm run test",
"dev": "watch 'npm run test:fast' src/ test/",
"dev:example": "watch 'npm run transpile:src && echo \"done\"' src/ test/"
},
"pre-commit": [
"lint"
],
"peerDependencies": {
"rxjs": "^7.4.0"
},
"dependencies": {
"@babel/runtime": "7.16.7",
"@types/clone": "2.1.1",
"@types/cors": "2.8.12",
"@types/express": "4.17.13",
"@types/is-my-json-valid": "2.18.0",
"@types/lokijs": "1.5.7",
"@types/object-path": "0.11.1",
"@types/pouchdb-core": "7.0.9",
"@types/spark-md5": "3.0.2",
"as-typed": "1.3.2",
"babel-plugin-transform-async-to-promises": "0.8.18",
"broadcast-channel": "4.9.0",
"clone": "^2.1.2",
"cors": "2.8.5",
"crypto-js": "4.1.1",
"custom-idle-queue": "3.0.1",
"deep-freeze": "0.0.1",
"event-reduce-js": "2.0.3",
"express": "4.17.2",
"fast-deep-equal": "3.1.3",
"get-graphql-from-jsonschema": "8.0.16",
"graphql-client": "2.0.1",
"is-electron": "2.2.0",
"is-my-json-valid": "2.20.6",
"jsonschema-key-compression": "1.6.1",
"lokijs": "1.5.12",
"modifyjs": "0.3.1",
"object-path": "0.11.8",
"oblivious-set": "1.0.0",
"pouchdb-adapter-http": "7.2.2",
"pouchdb-all-dbs": "1.1.1",
"pouchdb-core": "7.2.2",
"pouchdb-find": "7.2.2",
"pouchdb-md5": "7.2.2",
"pouchdb-replication": "7.2.2",
"pouchdb-selector-core": "7.2.2",
"spark-md5": "3.0.2",
"threads": "1.7.0",
"unload": "2.3.1",
"url": "^0.11.0",
"util": "0.12.4",
"z-schema": "5.0.2"
},
"devDependencies": {
"@babel/cli": "7.16.8",
"@babel/core": "7.16.7",
"@babel/plugin-external-helpers": "7.16.7",
"@babel/plugin-proposal-class-properties": "7.16.7",
"@babel/plugin-proposal-object-rest-spread": "7.16.7",
"@babel/plugin-transform-member-expression-literals": "7.16.7",
"@babel/plugin-transform-modules-commonjs": "7.16.8",
"@babel/plugin-transform-property-literals": "7.16.7",
"@babel/plugin-transform-runtime": "7.16.8",
"@babel/plugin-transform-spread": "7.16.7",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.16.8",
"@babel/preset-typescript": "7.16.7",
"@babel/types": "7.16.8",
"@types/core-js": "2.5.5",
"@types/crypto-js": "4.1.0",
"@types/faker": "5.5.9",
"@types/memdown": "3.0.0",
"@types/mocha": "8.2.3",
"@types/node": "14.18.5",
"@types/pouchdb-adapter-memory": "6.1.3",
"@types/request": "2.48.8",
"@types/request-promise-native": "1.0.18",
"@types/ws": "8.2.2",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"assert": "2.0.0",
"async-test-util": "2.0.0",
"babel-loader": "8.2.3",
"babel-plugin-transform-class-properties": "6.24.1",
"brfs": "2.0.2",
"browserify": "17.0.0",
"child-process-promise": "2.2.1",
"concurrently": "6.5.1",
"convert-hrtime": "3.0.0",
"cross-env": "7.0.3",
"delete": "1.1.0",
"dependency-check": "4.1.0",
"detect-browser": "5.3.0",
"disc": "1.3.3",
"eslint": "7.32.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jsdoc": "36.1.1",
"exists-file": "3.0.2",
"express-graphql": "0.12.0",
"express-pouchdb": "4.2.0",
"faker": "5.5.3",
"gitbook-cli": "2.3.2",
"graphql": "15.8.0",
"graphql-subscriptions": "1.2.1",
"gzip-size-cli": "5.1.0",
"karma": "6.3.11",
"karma-babel-preprocessor": "8.0.1",
"karma-browserify": "8.1.0",
"karma-chrome-launcher": "3.1.0",
"karma-coverage": "2.1.0",
"karma-detect-browsers": "2.3.3",
"karma-edge-launcher": "0.4.2",
"karma-firefox-launcher": "2.1.2",
"karma-ie-launcher": "1.0.0",
"karma-mocha": "2.0.1",
"karma-opera-launcher": "1.0.0",
"karma-safari-launcher": "1.0.0",
"leveldown": "6.1.0",
"madge": "5.0.1",
"memdown": "6.1.1",
"mocha": "9.0.2",
"mocha.parallel": "0.15.6",
"nconf": "0.11.3",
"pouchdb": "7.2.2",
"pouchdb-adapter-idb": "7.2.2",
"pouchdb-adapter-leveldb": "7.2.2",
"pouchdb-adapter-localstorage": "7.2.2",
"pouchdb-adapter-memory": "7.2.2",
"pouchdb-adapter-websql": "7.0.0",
"pouchdb-debug": "7.2.1",
"pouchdb-utils": "7.2.2",
"pre-commit": "1.2.2",
"random-int": "3.0.0",
"readline": "1.3.0",
"request": "2.88.2",
"request-promise": "4.2.6",
"request-promise-native": "1.0.9",
"rimraf": "3.0.2",
"rollup": "2.62.0",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0",
"rxjs": "7.5.2",
"shelljs": "0.8.5",
"source-map-support": "0.5.21",
"stream": "0.0.2",
"subscriptions-transport-ws": "0.11.0",
"terser": "5.9.0",
"terser-webpack-plugin": "5.2.5",
"ts-loader": "9.2.6",
"ts-node": "10.4.0",
"typescript": "4.5.4",
"walk-sync": "3.0.0",
"watch": "1.0.2",
"webpack": "5.65.0",
"webpack-bundle-analyzer": "4.5.0",
"webpack-cli": "4.9.1"
}
}