2020-01-02 02:04:47 +01:00
|
|
|
{
|
2020-01-18 02:02:14 +01:00
|
|
|
"browserslist": [
|
|
|
|
">0.2%",
|
|
|
|
"not dead",
|
|
|
|
"not ie <= 11",
|
|
|
|
"not op_mini all"
|
|
|
|
],
|
2020-01-02 02:04:47 +01:00
|
|
|
"dependencies": {
|
2020-02-24 10:27:55 +01:00
|
|
|
"browser-nativefs": "0.3.1",
|
2020-02-24 11:42:21 +01:00
|
|
|
"i18next-browser-languagedetector": "4.0.2",
|
2020-02-03 09:58:56 +01:00
|
|
|
"nanoid": "2.1.11",
|
2020-03-02 10:43:15 +01:00
|
|
|
"react": "16.13.0",
|
2020-03-02 11:15:51 +01:00
|
|
|
"react-dom": "16.13.0",
|
2020-02-17 11:39:58 +01:00
|
|
|
"react-scripts": "3.4.0",
|
2020-02-22 22:37:04 +01:00
|
|
|
"roughjs": "4.0.4",
|
|
|
|
"stacktrace-js": "2.0.2"
|
2020-01-02 02:04:47 +01:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-02-28 22:51:36 +01:00
|
|
|
"asar": "2.1.0",
|
2020-02-11 23:19:43 +01:00
|
|
|
"@testing-library/jest-dom": "5.1.1",
|
2020-02-24 11:42:30 +01:00
|
|
|
"@testing-library/react": "9.4.1",
|
2020-02-24 10:28:04 +01:00
|
|
|
"@types/jest": "25.1.3",
|
2020-01-16 22:50:02 +01:00
|
|
|
"@types/nanoid": "2.1.0",
|
2020-03-02 10:43:28 +01:00
|
|
|
"@types/react": "16.9.23",
|
2020-01-25 05:02:38 +01:00
|
|
|
"@types/react-dom": "16.9.5",
|
2020-02-02 19:04:35 +01:00
|
|
|
"eslint": "6.8.0",
|
|
|
|
"eslint-config-prettier": "6.10.0",
|
|
|
|
"eslint-plugin-prettier": "3.1.2",
|
2020-02-17 09:42:39 +01:00
|
|
|
"husky": "4.2.3",
|
2020-02-11 23:19:43 +01:00
|
|
|
"jest-canvas-mock": "2.2.0",
|
2020-03-02 10:43:07 +01:00
|
|
|
"lint-staged": "10.0.8",
|
2020-01-16 22:50:02 +01:00
|
|
|
"node-sass": "4.13.1",
|
2020-01-02 20:03:48 +01:00
|
|
|
"prettier": "1.19.1",
|
2020-01-22 15:13:00 +01:00
|
|
|
"rewire": "4.0.1",
|
2020-03-02 10:43:22 +01:00
|
|
|
"typescript": "3.8.3"
|
2020-01-02 02:04:47 +01:00
|
|
|
},
|
2020-02-11 23:19:43 +01:00
|
|
|
"jest": {
|
|
|
|
"transformIgnorePatterns": [
|
|
|
|
"node_modules/(?!(roughjs|browser-nativefs)/)"
|
|
|
|
]
|
|
|
|
},
|
2020-01-02 20:03:48 +01:00
|
|
|
"eslintConfig": {
|
2020-02-02 19:04:35 +01:00
|
|
|
"extends": [
|
|
|
|
"prettier",
|
|
|
|
"react-app"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"prettier"
|
|
|
|
],
|
2020-01-22 15:13:00 +01:00
|
|
|
"rules": {
|
2020-02-05 17:41:14 +01:00
|
|
|
"curly": "warn",
|
2020-01-22 15:13:00 +01:00
|
|
|
"no-console": [
|
2020-02-05 17:41:14 +01:00
|
|
|
"warn",
|
2020-01-22 15:13:00 +01:00
|
|
|
{
|
|
|
|
"allow": [
|
|
|
|
"warn",
|
|
|
|
"error",
|
|
|
|
"info"
|
|
|
|
]
|
|
|
|
}
|
2020-02-02 19:04:35 +01:00
|
|
|
],
|
2020-02-05 17:41:14 +01:00
|
|
|
"no-else-return": "warn",
|
|
|
|
"no-useless-return": "warn",
|
2020-02-02 19:04:35 +01:00
|
|
|
"prefer-const": [
|
2020-02-05 17:41:14 +01:00
|
|
|
"warn",
|
2020-02-02 19:04:35 +01:00
|
|
|
{
|
|
|
|
"destructuring": "all"
|
|
|
|
}
|
|
|
|
],
|
2020-02-05 17:41:14 +01:00
|
|
|
"prefer-template": "warn",
|
|
|
|
"prettier/prettier": "warn"
|
2020-01-22 15:13:00 +01:00
|
|
|
}
|
2020-01-02 20:03:48 +01:00
|
|
|
},
|
2020-02-29 14:24:14 +01:00
|
|
|
"homepage": ".",
|
2020-01-02 20:03:48 +01:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
2020-01-18 02:02:14 +01:00
|
|
|
"main": "src/index.js",
|
|
|
|
"name": "excalidraw",
|
|
|
|
"scripts": {
|
2020-02-28 22:51:36 +01:00
|
|
|
"build:app": "react-scripts build",
|
|
|
|
"build:zip": "node ./scripts/build-version.js",
|
|
|
|
"build": "npm run build:app && npm run build:zip",
|
|
|
|
"build-node": "node ./scripts/build-node.js",
|
2020-01-18 02:02:14 +01:00
|
|
|
"eject": "react-scripts eject",
|
2020-02-02 19:04:35 +01:00
|
|
|
"fix": "npm run fix:other && npm run fix:code",
|
|
|
|
"fix:code": "npm run test:code -- --fix",
|
|
|
|
"fix:other": "npm run prettier -- --write",
|
|
|
|
"prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
|
2020-01-18 02:02:14 +01:00
|
|
|
"start": "react-scripts start",
|
|
|
|
"test": "npm run test:app",
|
|
|
|
"test:app": "react-scripts test --env=jsdom --passWithNoTests",
|
2020-02-02 19:04:35 +01:00
|
|
|
"test:code": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
|
|
|
|
"test:other": "npm run prettier -- --list-different"
|
2020-01-18 02:02:14 +01:00
|
|
|
},
|
2020-01-22 13:55:13 +01:00
|
|
|
"version": "1.0.0",
|
|
|
|
"license": "MIT",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/excalidraw/excalidraw.git"
|
|
|
|
}
|
2020-01-03 22:13:41 +01:00
|
|
|
}
|