forked from pubkey/rxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
226 lines (226 loc) Β· 9.67 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
{
"name": "rxdb",
"description": "A realtime Database for JavaScript applications",
"// version": "For pre-release versions run 'npm publish --tag next'",
"version": "10.0.3",
"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": "Do not set sideEffects to false here, see issue #2798",
"sideEffects": true,
"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 pretest && rimraf -rf pouch__all_dbs__ && cross-env 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:node": "npm run pretest && mocha --expose-gc --config ./config/.mocharc.js ./test_tmp/unit.test.js",
"// 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 && 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 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 --no-dev --ignore-module util --ignore-module url --ignore-module \"@types/*\"",
"test:circular": "npm run build && madge --circular ./dist/es/index.js",
"test:performance": "npm run pretest && cross-env NODE_ENV=fast 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 && 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 && cross-env NODE_ENV=fast NODE_PROF=true mocha --config ./config/.mocharc.js ./test_tmp/unit.test.js --prof && node scripts/profile.js",
"clear": "rimraf -rf test_tmp/ && rimraf -rf dist/ && rimraf .transpile_state.json",
"lint": "eslint . --ext .js,.ts,.json",
"lint:fix": "eslint --fix . --ext .js,.ts,.json",
"check-types": "tsc",
"transpile": "node scripts/transpile.js",
"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: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: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",
"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.1.0"
},
"dependencies": {
"@babel/runtime": "7.15.4",
"@types/clone": "2.1.1",
"@types/cors": "2.8.12",
"@types/deep-equal": "1.0.1",
"@types/express": "4.17.13",
"@types/is-my-json-valid": "2.18.0",
"@types/object-path": "0.11.1",
"@types/spark-md5": "3.0.2",
"@types/pouchdb-core": "7.0.8",
"broadcast-channel": "3.7.0",
"clone": "^2.1.2",
"cors": "2.8.5",
"crypto-js": "4.1.1",
"custom-idle-queue": "3.0.1",
"deep-equal": "2.0.5",
"deep-freeze": "0.0.1",
"event-reduce-js": "1.4.0",
"express": "4.17.1",
"get-graphql-from-jsonschema": "8.0.16",
"graphql-client": "2.0.1",
"is-electron": "2.2.0",
"is-my-json-valid": "2.20.5",
"jsonschema-key-compression": "1.6.0",
"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",
"pouchdb-utils": "7.2.2",
"random-token": "0.0.8",
"spark-md5": "^3.0.1",
"url": "^0.11.0",
"util": "0.12.4",
"z-schema": "5.0.1"
},
"devDependencies": {
"@babel/cli": "7.15.7",
"@babel/core": "7.15.5",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@babel/plugin-proposal-object-rest-spread": "7.15.6",
"@babel/plugin-transform-member-expression-literals": "7.14.5",
"@babel/plugin-transform-modules-commonjs": "7.15.4",
"@babel/plugin-transform-property-literals": "7.14.5",
"@babel/plugin-transform-runtime": "7.15.0",
"@babel/plugin-transform-spread": "7.14.6",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.15.6",
"@babel/preset-typescript": "7.15.0",
"@babel/types": "7.15.6",
"@types/core-js": "2.5.5",
"@types/faker": "5.5.8",
"@types/memdown": "3.0.0",
"@types/mocha": "8.2.3",
"@types/node": "14.17.17",
"@types/pouchdb-adapter-memory": "6.1.3",
"@types/request": "2.48.7",
"@types/request-promise-native": "1.0.18",
"@types/ws": "7.4.7",
"@typescript-eslint/eslint-plugin": "4.31.1",
"@typescript-eslint/parser": "4.31.1",
"assert": "2.0.0",
"async-test-util": "1.7.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.2.1",
"convert-hrtime": "3.0.0",
"cross-env": "7.0.3",
"delete": "1.1.0",
"dependency-check": "4.1.0",
"detect-browser": "5.2.1",
"disc": "1.3.3",
"eslint": "7.32.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jsdoc": "36.1.0",
"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.5.3",
"graphql-subscriptions": "1.2.1",
"gzip-size-cli": "5.0.0",
"karma": "6.3.4",
"karma-babel-preprocessor": "8.0.1",
"karma-browserify": "8.1.0",
"karma-chrome-launcher": "3.1.0",
"karma-coverage": "2.0.3",
"karma-detect-browsers": "2.3.3",
"karma-edge-launcher": "0.4.2",
"karma-firefox-launcher": "2.1.1",
"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.0.2",
"madge": "5.0.1",
"memdown": "6.0.0",
"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",
"pre-commit": "1.2.2",
"random-int": "3.0.0",
"request": "2.88.2",
"request-promise": "4.2.6",
"request-promise-native": "1.0.9",
"rimraf": "3.0.2",
"rollup": "2.56.3",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0",
"rxjs": "7.3.0",
"shelljs": "0.8.4",
"source-map-support": "0.5.20",
"subscriptions-transport-ws": "0.9.19",
"terser": "5.8.0",
"terser-webpack-plugin": "4.2.3",
"ts-node": "10.2.1",
"typescript": "4.3.5",
"walk-sync": "3.0.0",
"watch": "1.0.2",
"webpack": "4.46.0",
"webpack-bundle-analyzer": "4.4.2",
"webpack-cli": "4.8.0"
}
}