1 | {
|
2 | "name": "draft-js",
|
3 | "description": "A React framework for building text editors.",
|
4 | "version": "0.11.7",
|
5 | "keywords": [
|
6 | "draftjs",
|
7 | "editor",
|
8 | "react",
|
9 | "richtext"
|
10 | ],
|
11 | "homepage": "http://draftjs.org/",
|
12 | "bugs": "https://github.com/facebook/draft-js/issues",
|
13 | "files": [
|
14 | "dist/",
|
15 | "lib/",
|
16 | "LICENSE"
|
17 | ],
|
18 | "main": "lib/Draft.js",
|
19 | "style": "dist/Draft.css",
|
20 | "repository": "facebook/draft-js",
|
21 | "license": "MIT",
|
22 | "scripts": {
|
23 | "prepublish": "npm run build",
|
24 | "pretest": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",
|
25 | "build": "gulp",
|
26 | "dev": "gulp dev",
|
27 | "postbuild": "node node_modules/fbjs-scripts/node/check-lib-requires.js lib",
|
28 | "lint": "eslint .",
|
29 | "lint-docs": "alex . && yarn format-docs:diff",
|
30 | "format": "eslint . --fix",
|
31 | "format-docs": "prettier --config prettier.config.js --write \"docs/**/*.md\"",
|
32 | "format-docs:diff": "prettier --config prettier.config.js --list-different \"docs/**/*.md\"",
|
33 | "flow": "flow src",
|
34 | "test": "cross-env NODE_ENV=test jest",
|
35 | "test-ci": "cross-env NODE_ENV=test npm run lint && npm run flow && npm run test"
|
36 | },
|
37 | "dependencies": {
|
38 | "fbjs": "^2.0.0",
|
39 | "immutable": "~3.7.4",
|
40 | "object-assign": "^4.1.1"
|
41 | },
|
42 | "peerDependencies": {
|
43 | "react": ">=0.14.0",
|
44 | "react-dom": ">=0.14.0"
|
45 | },
|
46 | "devDependencies": {
|
47 | "@babel/core": "^7.11.0",
|
48 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
|
49 | "@babel/plugin-proposal-optional-chaining": "^7.11.0",
|
50 | "alex": "^8.2.0",
|
51 | "babel-eslint": "^10.1.0",
|
52 | "babel-preset-fbjs": "^3.3.0",
|
53 | "cross-env": "^7.0.2",
|
54 | "del": "^5.1.0",
|
55 | "es6-shim": "^0.35.5",
|
56 | "eslint": "^7.6.0",
|
57 | "eslint-config-fbjs": "^3.1.1",
|
58 | "eslint-config-prettier": "^6.11.0",
|
59 | "eslint-plugin-babel": "^5.3.1",
|
60 | "eslint-plugin-flowtype": "^5.2.0",
|
61 | "eslint-plugin-jsx-a11y": "^6.3.1",
|
62 | "eslint-plugin-prettier": "^3.1.4",
|
63 | "eslint-plugin-react": "^7.20.5",
|
64 | "fbjs-scripts": "^2.0.0",
|
65 | "flow-bin": "^0.130.0",
|
66 | "gulp": "^4.0.2",
|
67 | "gulp-babel": "^8.0.0",
|
68 | "gulp-clean-css": "^4.3.0",
|
69 | "gulp-concat-css": "^3.1.0",
|
70 | "gulp-derequire": "^3.0.0",
|
71 | "gulp-flatten": "^0.4.0",
|
72 | "gulp-header": "^2.0.9",
|
73 | "gulp-if": "^3.0.0",
|
74 | "gulp-rename": "^2.0.0",
|
75 | "gulp-util": "^3.0.8",
|
76 | "jest": "^26.2.2",
|
77 | "prettier": "1.19.1",
|
78 | "react": "^16.8.0",
|
79 | "react-dom": "^16.8.0",
|
80 | "react-test-renderer": "^16.0.0",
|
81 | "stats-webpack-plugin": "^0.7.0",
|
82 | "through2": "^4.0.2",
|
83 | "uglifyjs-webpack-plugin": "^2.2.0",
|
84 | "webpack-stream": "5.2.1"
|
85 | },
|
86 | "devEngines": {
|
87 | "node": "10.x || 12.x || 13.x",
|
88 | "npm": "2.x || 3.x || 5.x || 6.x"
|
89 | },
|
90 | "jest": {
|
91 | "globals": {
|
92 | "__DEV__": true
|
93 | },
|
94 | "rootDir": "./",
|
95 | "roots": [
|
96 | "<rootDir>/src/"
|
97 | ],
|
98 | "setupFiles": [
|
99 | "<rootDir>/scripts/jest/shims.js"
|
100 | ],
|
101 | "transform": {
|
102 | ".*": "<rootDir>/scripts/jest/preprocessor.js"
|
103 | },
|
104 | "haste": {
|
105 | "hasteImplModulePath": "<rootDir>/scripts/jest/hasteImpl.js"
|
106 | },
|
107 | "modulePathIgnorePatterns": [
|
108 | "<rootDir>/lib/",
|
109 | "<rootDir>/node_modules/"
|
110 | ],
|
111 | "transformIgnorePatterns": [
|
112 | "<rootDir>/node_modules/"
|
113 | ],
|
114 | "unmockedModulePathPatterns": [
|
115 | "<rootDir>/node_modules/fbjs/node_modules/",
|
116 | "<rootDir>/node_modules/fbjs/lib/UserAgent.js",
|
117 | "<rootDir>/node_modules/fbjs/lib/UserAgentData.js",
|
118 | "<rootDir>/node_modules/fbjs-scripts/",
|
119 | "<rootDir>/node_modules/immutable/",
|
120 | "<rootDir>/node_modules/object-assign/",
|
121 | "<rootDir>/node_modules/react/",
|
122 | "<rootDir>/node_modules/react-dom/"
|
123 | ]
|
124 | }
|
125 | }
|