2020-01-02 01:04:47 +00:00
|
|
|
{
|
2020-03-25 15:42:16 +00:00
|
|
|
"browserslist": {
|
|
|
|
"production": [
|
|
|
|
">0.2%",
|
|
|
|
"not dead",
|
|
|
|
"not ie <= 11",
|
|
|
|
"not op_mini all",
|
|
|
|
"not safari < 12",
|
|
|
|
"not kaios <= 2.5",
|
|
|
|
"not edge < 79",
|
|
|
|
"not chrome < 70",
|
|
|
|
"not and_uc < 13",
|
|
|
|
"not samsung < 10"
|
|
|
|
],
|
|
|
|
"development": [
|
|
|
|
"last 1 chrome version",
|
|
|
|
"last 1 firefox version",
|
|
|
|
"last 1 safari version"
|
|
|
|
]
|
|
|
|
},
|
2020-01-02 01:04:47 +00:00
|
|
|
"dependencies": {
|
2021-04-08 13:57:46 +00:00
|
|
|
"@sentry/browser": "6.2.5",
|
2021-04-08 15:46:04 +00:00
|
|
|
"@sentry/integrations": "6.2.5",
|
2021-10-29 11:24:54 +00:00
|
|
|
"@testing-library/jest-dom": "5.14.1",
|
2021-11-01 13:03:24 +00:00
|
|
|
"@testing-library/react": "12.1.2",
|
2021-11-01 12:35:17 +00:00
|
|
|
"@tldraw/vec": "0.0.132",
|
2021-10-29 15:26:15 +00:00
|
|
|
"@types/jest": "27.0.2",
|
2021-10-21 20:05:48 +00:00
|
|
|
"@types/pica": "5.1.3",
|
2021-11-01 12:30:43 +00:00
|
|
|
"@types/react": "17.0.33",
|
2021-10-29 11:17:59 +00:00
|
|
|
"@types/react-dom": "17.0.10",
|
2021-03-17 08:17:18 +00:00
|
|
|
"@types/socket.io-client": "1.4.36",
|
2021-10-27 06:57:10 +00:00
|
|
|
"browser-fs-access": "0.21.0",
|
2020-10-19 14:14:28 +00:00
|
|
|
"clsx": "1.1.1",
|
2021-11-01 12:31:54 +00:00
|
|
|
"fake-indexeddb": "3.1.7",
|
2021-04-12 08:48:31 +00:00
|
|
|
"firebase": "8.3.3",
|
2021-04-08 14:32:37 +00:00
|
|
|
"i18next-browser-languagedetector": "6.1.0",
|
2021-11-02 07:44:05 +00:00
|
|
|
"idb-keyval": "6.0.3",
|
2021-10-21 20:05:48 +00:00
|
|
|
"image-blob-reduce": "3.0.1",
|
2020-05-07 21:13:18 +00:00
|
|
|
"lodash.throttle": "4.1.1",
|
2021-11-01 12:47:06 +00:00
|
|
|
"nanoid": "3.1.30",
|
2021-11-01 12:30:17 +00:00
|
|
|
"open-color": "1.9.1",
|
2020-10-15 19:31:21 +00:00
|
|
|
"pako": "1.0.11",
|
2021-11-01 12:32:37 +00:00
|
|
|
"perfect-freehand": "1.0.16",
|
2020-10-13 12:47:07 +00:00
|
|
|
"png-chunk-text": "1.0.0",
|
|
|
|
"png-chunks-encode": "1.0.0",
|
|
|
|
"png-chunks-extract": "1.0.0",
|
2020-04-20 17:43:06 +00:00
|
|
|
"points-on-curve": "0.2.0",
|
2020-08-31 15:13:01 +00:00
|
|
|
"pwacompat": "2.0.17",
|
2021-04-01 22:24:04 +00:00
|
|
|
"react": "17.0.2",
|
|
|
|
"react-dom": "17.0.2",
|
2021-02-24 10:29:46 +00:00
|
|
|
"react-scripts": "4.0.3",
|
2021-05-12 02:35:35 +00:00
|
|
|
"roughjs": "4.4.1",
|
2021-11-01 12:31:13 +00:00
|
|
|
"sass": "1.43.4",
|
2020-11-08 22:21:34 +00:00
|
|
|
"socket.io-client": "2.3.1",
|
2021-11-02 12:24:16 +00:00
|
|
|
"typescript": "4.4.4"
|
2020-04-29 05:53:07 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-03-02 10:29:32 +00:00
|
|
|
"@excalidraw/eslint-config": "1.0.0",
|
2021-02-25 18:26:27 +00:00
|
|
|
"@excalidraw/prettier-config": "1.0.2",
|
2021-10-27 13:14:20 +00:00
|
|
|
"@types/chai": "4.2.22",
|
2020-05-07 21:13:18 +00:00
|
|
|
"@types/lodash.throttle": "4.1.6",
|
2021-11-01 12:33:09 +00:00
|
|
|
"@types/pako": "1.0.2",
|
2021-10-29 15:36:23 +00:00
|
|
|
"@types/resize-observer-browser": "0.1.6",
|
2021-11-02 12:24:16 +00:00
|
|
|
"@types/web": "0.0.45",
|
2021-10-27 13:14:20 +00:00
|
|
|
"chai": "4.3.4",
|
2021-05-20 09:23:07 +00:00
|
|
|
"eslint-config-prettier": "8.3.0",
|
2021-01-10 10:34:37 +00:00
|
|
|
"eslint-plugin-prettier": "3.3.1",
|
2021-11-01 12:29:56 +00:00
|
|
|
"firebase-tools": "9.21.0",
|
2021-10-29 11:06:13 +00:00
|
|
|
"husky": "7.0.4",
|
2021-02-14 07:43:49 +00:00
|
|
|
"jest-canvas-mock": "2.3.1",
|
2021-10-29 11:06:13 +00:00
|
|
|
"lint-staged": "11.2.6",
|
2020-12-14 03:29:51 +00:00
|
|
|
"pepjs": "0.5.3",
|
2021-11-01 13:24:05 +00:00
|
|
|
"prettier": "2.4.1",
|
2020-04-29 05:53:07 +00:00
|
|
|
"rewire": "5.0.0"
|
2020-01-02 01:04:47 +00:00
|
|
|
},
|
2021-11-02 12:24:16 +00:00
|
|
|
"resolutions": {
|
|
|
|
"@typescript-eslint/typescript-estree": "5.3.0"
|
|
|
|
},
|
2020-03-25 17:10:05 +00:00
|
|
|
"engines": {
|
2021-02-20 12:47:17 +00:00
|
|
|
"node": ">=14.0.0"
|
2020-02-11 22:19:43 +00:00
|
|
|
},
|
2020-03-30 14:52:48 +00:00
|
|
|
"homepage": ".",
|
2020-03-25 17:10:05 +00:00
|
|
|
"jest": {
|
|
|
|
"transformIgnorePatterns": [
|
2021-10-27 06:57:10 +00:00
|
|
|
"node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)"
|
2020-10-28 16:28:07 +00:00
|
|
|
],
|
|
|
|
"resetMocks": false
|
2020-03-25 17:10:05 +00:00
|
|
|
},
|
2020-07-18 12:44:45 +00:00
|
|
|
"name": "excalidraw",
|
2021-02-25 18:26:27 +00:00
|
|
|
"prettier": "@excalidraw/prettier-config",
|
2020-03-25 17:10:05 +00:00
|
|
|
"private": true,
|
2020-01-18 01:02:14 +00:00
|
|
|
"scripts": {
|
2020-02-28 21:51:36 +00:00
|
|
|
"build-node": "node ./scripts/build-node.js",
|
2021-01-05 18:06:14 +00:00
|
|
|
"build:app:docker": "REACT_APP_DISABLE_SENTRY=true react-scripts build",
|
2021-01-18 17:22:02 +00:00
|
|
|
"build:app": "REACT_APP_GIT_SHA=$VERCEL_GIT_COMMIT_SHA react-scripts build",
|
2020-12-18 12:02:29 +00:00
|
|
|
"build:version": "node ./scripts/build-version.js",
|
2021-02-20 12:47:17 +00:00
|
|
|
"build": "yarn build:app && yarn build:version",
|
2020-01-18 01:02:14 +00:00
|
|
|
"eject": "react-scripts eject",
|
2021-02-23 09:41:36 +00:00
|
|
|
"fix:code": "yarn test:code --fix",
|
|
|
|
"fix:other": "yarn prettier --write",
|
2021-02-20 12:47:17 +00:00
|
|
|
"fix": "yarn fix:other && yarn fix:code",
|
2020-06-30 18:28:19 +00:00
|
|
|
"locales-coverage": "node scripts/build-locales-coverage.js",
|
2020-12-19 20:44:01 +00:00
|
|
|
"locales-coverage:description": "node scripts/locales-coverage-description.js",
|
2021-10-29 11:06:13 +00:00
|
|
|
"prepare": "husky install",
|
2020-02-02 18:04:35 +00:00
|
|
|
"prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
|
2020-01-18 01:02:14 +00:00
|
|
|
"start": "react-scripts start",
|
2021-02-23 09:41:36 +00:00
|
|
|
"test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watchAll=false",
|
2020-10-28 16:28:07 +00:00
|
|
|
"test:app": "react-scripts test --passWithNoTests",
|
2021-03-02 18:36:28 +00:00
|
|
|
"test:code": "eslint --max-warnings=0 --ext .js,.ts,.tsx .",
|
2020-03-25 17:10:05 +00:00
|
|
|
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
|
2021-02-23 09:41:36 +00:00
|
|
|
"test:other": "yarn prettier --list-different",
|
2020-06-30 18:28:19 +00:00
|
|
|
"test:typecheck": "tsc",
|
2021-02-23 09:41:36 +00:00
|
|
|
"test:update": "yarn test:app --updateSnapshot --watchAll=false",
|
2021-05-22 14:13:28 +00:00
|
|
|
"test": "yarn test:app",
|
|
|
|
"autorelease": "node scripts/autorelease.js"
|
2020-01-22 12:55:13 +00:00
|
|
|
}
|
2020-01-03 21:13:41 +00:00
|
|
|
}
|