-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
321 lines (321 loc) · 11.9 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
{
"name": "databyss",
"productName": "Databyss",
"version": "3.4.6",
"description": "The word processor is dead. Long live the word processor.",
"main": ".webpack/main",
"repository": {
"type": "git",
"url": "https://github.com/databyss-org/databyss.git",
"masterBranch": "main"
},
"author": "databyss-org",
"license": "MIT",
"private": true,
"engines": {
"node": ">=18.x"
},
"scripts": {
"build": "bash scripts/build.sh",
"build:api": "NODE_ENV=production NPM_DEPLOY_TARGET=API_SERVER yarn build",
"build:pdf-api": "NODE_ENV=production NPM_DEPLOY_TARGET=PDF_API yarn build",
"build:notes": "NODE_ENV=production NPM_DEPLOY_TARGET=NOTES_APP yarn build",
"build:homepage": "NODE_ENV=production NPM_DEPLOY_TARGET=HOMEPAGE yarn build",
"build:mobile": "NODE_ENV=production NPM_DEPLOY_TARGET=NOTES_MOBILE REACT_APP_FORCE_MOBILE=true yarn build",
"build:desktop": "cross-env NODE_ENV=production NPM_BUILD_TARGET=NOTES_APP electron-forge make",
"build:desktop:intel": "yarn build:desktop --arch=x64 --platform=darwin",
"start": "bash scripts/start.sh",
"start:pouchdb": "pouchdb-server --port 5001 -d ../pouchdb_data -c ./config/pouchdbServer.json",
"start:api": "PORT=5000 NODE_ENV=production NPM_DEPLOY_TARGET=API_SERVER yarn start",
"start:notes": "NPM_BUILD_TARGET=NOTES_APP node scripts/start.js",
"start:desktop": "cross-env NODE_ENV=development NPM_BUILD_TARGET=NOTES_APP electron-forge start",
"start:notes:test": "NPM_BUILD_TARGET=NOTES_APP NODE_ENV=test node scripts/start.js",
"start:notes:prod": "NPM_BUILD_TARGET=NOTES_APP NODE_ENV=production node scripts/start.js",
"start:homepage": "NPM_BUILD_TARGET=HOMEPAGE node scripts/start.js",
"start:mobile": "PORT=3001 NPM_BUILD_TARGET=NOTES_MOBILE REACT_APP_FORCE_MOBILE=true node scripts/start.js",
"seed:testdb": "NPM_DEPLOY_TARGET=API_SERVER NPM_BUILD_TARGET=API_SERVER NODE_ENV=test babel-node --config-file ./packages/databyss-api/babel.config.js packages/databyss-api/scripts/seed-test-server.js",
"start:server:test": "NODE_ENV=test yarn start:server",
"start:server:test:local": "NODE_ENV=test LOCAL_ENV=true yarn start:server",
"start:server:dev": "NODE_ENV=development yarn start:server",
"start:server": "ENV_PREFIX=API_ NPM_DEPLOY_TARGET=API_SERVER NPM_BUILD_TARGET=API_SERVER babel-node --config-file ./packages/databyss-api/babel.config.js --extensions \".js,.ts\" packages/databyss-api/server.js",
"start:pdf-api": "babel-node --config-file ./packages/databyss-pdf-api/babel.config.js packages/databyss-pdf-api/server.js",
"start:pdf-api:test": "NODE_ENV=test yarn start:pdf-api",
"serve": "serve build -c ../config/serve.json -l 3000 -s",
"test": "ENV_PREFIX=API_ NPM_BUILD_TARGET=TEST node scripts/test.js --maxWorkers=5",
"test:local": "LOCAL_ENV=true yarn test",
"test:units": "yarn test --selectProjects test",
"test:selenium": "yarn test seleniumtest",
"test:selenium:local": "SAUCE=no LOCAL_ENV=true yarn test seleniumtest --selectProjects test-selenium",
"styleguide": "NPM_BUILD_TARGET=TEST styleguidist server --config ./config/styleguide.config.js",
"styleguide:build": "NPM_BUILD_TARGET=TEST styleguidist build --config ./config/styleguide.config.js",
"storybook": "REACT_APP_STORYBOOK=true NPM_BUILD_TARGET=TEST start-storybook -h 0.0.0.0 -p 6006 -s ./packages/databyss-ui/public --ci",
"storybook:sauce": "ENV_PREFIX=REACT_APP_ REACT_APP_META_USE_CTRL=true REACT_APP_STORYBOOK=true NPM_BUILD_TARGET=TEST start-storybook -h 0.0.0.0 -p 8080 -s ./packages/databyss-ui/public --ci --quiet",
"storybook:build": "REACT_APP_STORYBOOK=true NPM_BUILD_TARGET=TEST build-storybook -o build -s ./packages/databyss-ui/public && node scripts/sb-publish.js Databyss",
"sync-versions": "node scripts/sync-versions.js @databyss-org slate",
"lint": "yarn test --selectProjects jslint tslint",
"lint:js": "yarn test --selectProjects jslint",
"lint:ts": "yarn test --selectProjects tslint",
"sauce:proxy": "NODE_ENV=test NPM_BUILD_TARGET=API_SERVER node scripts/SauceConnect.js",
"sauce:dev-server": "NODE_ENV=test NPM_BUILD_TARGET=API_SERVER node scripts/sauce-dev-server.js",
"cli": "babel-node --config-file ./packages/databyss-scripts/babel.config.js --extensions \".js,.ts\" ./packages/databyss-scripts/cli.js"
},
"jest": {
"watchPlugins": [
"jest-runner-eslint/watch-fix"
],
"projects": [
{
"displayName": "jslint",
"runner": "jest-runner-eslint",
"testMatch": [
"<rootDir>/packages/**/*.js"
],
"testPathIgnorePatterns": [
"\\.stories\\."
]
},
{
"displayName": "tslint",
"runner": "jest-runner-eslint",
"testMatch": [
"<rootDir>/packages/**/*.ts*"
],
"testPathIgnorePatterns": [
"\\.stories\\."
]
},
{
"displayName": "test",
"collectCoverageFrom": [
"**/*.js"
],
"resolver": "jest-pnp-resolver",
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"setupFilesAfterEnv": [
"<rootDir>/config/jest/registerRequireContextHook.js"
],
"testMatch": [
"<rootDir>/**/*.test.js"
],
"testPathIgnorePatterns": [
"/databyss-api/",
"/databyss-ui/editor/",
"storyshots.test.js"
],
"testEnvironment": "jsdom",
"testURL": "http://localhost",
"transform": {
"^.+\\.(jsx?|tsx?)$": "<rootDir>/config/jest/babelTransform.js",
"^(?!.*\\.(js|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"moduleFileExtensions": [
"js",
"json",
"ts",
"tsx"
],
"testTimeout": 30000
},
{
"displayName": "test-selenium",
"testEnvironment": "node",
"testMatch": [
"<rootDir>/packages/**/*.seleniumtest.js"
],
"moduleFileExtensions": [
"js"
],
"moduleNameMapper": {
"^slate$": "@databyss-org/slate"
},
"globalSetup": "<rootDir>/config/sauce/globalSetup.js",
"globalTeardown": "<rootDir>/config/sauce/globalTeardown.js"
}
]
},
"workspaces": {
"packages": [
"packages/*"
]
},
"dependencies": {
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/node": "^7.16.0",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-export-default-from": "^7.5.2",
"@babel/plugin-transform-runtime": "^7.16.0",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.10.4",
"@bugsnag/js": "^7.5.1",
"@emotion/babel-preset-css-prop": "^10.0.14",
"@storybook/addon-actions": "5.2.1",
"@storybook/addon-knobs": "5.2.1",
"@storybook/addon-options": "5.2.1",
"@storybook/addon-storyshots": "5.2.1",
"@storybook/addons": "5.2.1",
"@storybook/react": "5.2.1",
"@types/clone-deep": "^4.0.1",
"@types/imurmurhash": "^0.1.1",
"@types/mongodb": "^3.5.33",
"@types/mongoose": "^5.10.1",
"@types/pouchdb": "^6.4.0",
"@types/pouchdb-find": "^6.3.6",
"@types/pouchdb-upsert": "^2.2.6",
"@types/string-strip-html": "^5.0.0",
"@types/tmp": "^0.2.0",
"@typescript-eslint/eslint-plugin": "4.8.0",
"@typescript-eslint/parser": "4.8.0",
"an-array-of-english-words": "^2.0.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^29.7.0",
"babel-loader": "8.2.3",
"babel-plugin-emotion": "^10.0.13",
"babel-plugin-require-context-hook": "^1.0.0",
"babel-preset-react-app": "^9.0.0",
"bcryptjs": "^2.4.3",
"bson-objectid": "^1.3.0",
"case-sensitive-paths-webpack-plugin": "2.4.0",
"cloudant-upsert": "^0.11.1",
"copy-webpack-plugin": "^6.3.2",
"cors": "^2.8.5",
"create-jest-runner": "^0.5.3",
"cross-env": "^7.0.3",
"crypto-browserify": "^3.12.0",
"cssjson": "^2.1.3",
"csvtojson": "^2.0.8",
"docusaurus": "^1.12.0",
"dotenv": "^8.0.0",
"dotenv-expand": "^5.1.0",
"download": "^7.1.0",
"emotion": "^10.0.17",
"es-event-emitter": "^1.3.9",
"eslint": "7.13.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-config-react-app": "6.0.0",
"eslint-loader": "4.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-react-hooks": "4.2.0",
"expo-app-auth": "^6.0.0",
"express": "^4.17.1",
"express-validator": "^6.1.1",
"fetch-mock": "^8.0.1",
"file-loader": "^4.0.0",
"focus-trap-react": "^6.0.0",
"hasha": "^5.2.2",
"html-webpack-plugin": "^5.6.0",
"imurmurhash": "^0.1.4",
"is-hotkey": "^0.1.5",
"is-wsl": "^2.0.0",
"jest": "^29.7.0",
"jest-dev-server": "^4.3.0",
"jest-pnp-resolver": "^1.0.1",
"jest-resolve": "^29.7.0",
"jest-runner-eslint": "0.10.0",
"json-diff": "^0.5.4",
"jsonwebtoken": "^8.5.1",
"kill-port": "^1.5.1",
"links-finder": "^1.0.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.7.0",
"mongoose": "^5.6.5",
"node-fetch": "^2.6.1",
"object-assign": "4.1.1",
"open-graph-scraper": "^4.8.2",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"path-browserify": "^1.0.1",
"pnp-webpack-plugin": "^1.5.0",
"postcss-flexbugs-fixes": "^4.1.0",
"postcss-loader": "^3.0.0",
"postcss-normalize": "^8.0.0",
"postcss-preset-env": "^6.6.0",
"postcss-safe-parser": "^4.0.1",
"pouchdb-browser": "^8.0.1",
"pouchdb-find": "^8.0.1",
"pouchdb-mapreduce": "^8.0.1",
"pouchdb-node": "^8.0.1",
"pouchdb-quick-search": "^1.3.0",
"pouchdb-upsert": "^2.2.0",
"prettier": "2.1.2",
"prettier-eslint": "11.0.0",
"process": "^0.11.10",
"promise": "8.0.1",
"query-string": "^6.13.1",
"raf": "3.4.0",
"react": "18.2.0",
"react-dev-utils": "^12.0.1",
"react-dom": "18.2.0",
"react-flexbox-grid": "^2.1.2",
"react-google-login": "^5.0.4",
"react-helmet": "^6.1.0",
"react-iframe": "^1.8.0",
"react-jss": "^8.6.1",
"react-styleguidist": "^9.1.5",
"react-svg-loader": "3.0.3",
"react-test-renderer": "16.9.0",
"react-use": "^11.0.0",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"request-image-size": "^2.2.0",
"resolve": "^1.11.1",
"rollup": "^1.31.0",
"sanitize-html": "^2.3.3",
"sass-loader": "^7.1.0",
"scored-fuzzysearch": "^1.0.5",
"semver-diff": "^2.0.0",
"slate-dev-environment": "^0.2.2",
"spawnd": "^4.0.0",
"start-server-and-test": "^1.10.2",
"storybook-dark-mode": "^0.1.7",
"stream-browserify": "^3.0.0",
"styled-system": "^5.0.5",
"supertest": "^4.0.2",
"sw-precache-webpack-plugin": "0.11.5",
"transform-pouch": "^1.1.5",
"tslint-config-prettier": "^1.18.0",
"tv4": "^1.3.0",
"typescript": "4.6.3",
"url-loader": "0.6.2",
"use-pouchdb": "^1.2.3",
"uuid": "3.3.3",
"vm-browserify": "^1.1.2",
"webpack": "^5.69.1",
"terser-webpack-plugin": "^5.3.7",
"webpack-bugsnag-plugins": "^1.4.3",
"webpack-cli": "^3.3.3",
"webpack-dev-server": "^4.6.0",
"webpack-manifest-plugin": "^4.0.2",
"whatwg-fetch": "2.0.3",
"workbox-precaching": "6.1.2",
"workbox-routing": "6.1.2",
"workbox-webpack-plugin": "6.1.2",
"xmldom": "^0.6.0",
"xss": "^1.0.6"
},
"devDependencies": {
"electron": "27.0.3",
"ts-loader": "^9.2.2"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}