-
Notifications
You must be signed in to change notification settings - Fork 64
/
package.json
146 lines (146 loc) · 5.27 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
{
"name": "draftail",
"version": "2.0.0-rc.6",
"description": "📝🍸 A configurable rich text editor built with Draft.js",
"author": "Springload",
"license": "MIT",
"main": "dist/draftail.cjs.js",
"module": "dist/draftail.esm.js",
"types": "dist/draftail.d.ts",
"keywords": [
"draftjs",
"draft.js",
"draft",
"draft-js",
"draft-js-plugins",
"editor",
"wysiwyg",
"rich text",
"rte",
"react",
"react-component",
"react-components"
],
"repository": {
"type": "git",
"url": "https://github.com/springload/draftail.git"
},
"bugs": {
"url": "https://github.com/springload/draftail/issues"
},
"homepage": "https://www.draftail.org/",
"files": [
"dist",
"src/**/*.scss"
],
"browserslist": [
"> 1%",
"not IE 11",
"Firefox ESR",
"not OperaMini all"
],
"dependencies": {
"@tippyjs/react": "^4.2.6",
"decorate-component-with-props": "^1.0.2",
"downshift": "^7.0.4",
"draft-js-plugins-editor": "^2.1.1",
"draftjs-conductor": "^3.0.0",
"draftjs-filters": "^3.0.1"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.2",
"@storybook/addon-storyshots": "^6.5.7",
"@storybook/builder-webpack5": "^6.5.7",
"@storybook/manager-webpack5": "^6.5.7",
"@storybook/react": "^6.5.7",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.2.0",
"@types/draft-convert": "^2.1.4",
"@types/draft-js": "^0.10.45",
"@types/enzyme": "^3.10.12",
"@types/jest": "^28.1.1",
"@types/jest-axe": "^3.5.3",
"@types/prismjs": "^1.26.0",
"@types/react": "^16.14.26",
"@types/react-color": "^3.0.6",
"@types/react-dom": "^16.9.16",
"@types/react-modal": "^3.13.1",
"coveralls": "^3.1.1",
"draft-convert": "^2.1.12",
"draft-js": "~0.10.5",
"draft-js-emoji-plugin": "^2.1.3",
"draft-js-hashtag-plugin": "^2.0.4",
"draft-js-inline-toolbar-plugin": "^3.0.1",
"draft-js-side-toolbar-plugin": "^3.0.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
"eslint": "^8.17.0",
"eslint-config-torchbox": "^1.0.0",
"express": "^4.18.1",
"formik": "^1.5.8",
"immutable": "~3.7.6",
"jest": "^28.1.1",
"jest-axe": "^6.0.0",
"jest-environment-jsdom": "^28.1.1",
"jest-environment-node": "^28.1.1",
"jest-image-snapshot": "^5.1.0",
"markov_draftjs": "^0.2.0",
"mkdirp": "^1.0.4",
"normalize.css": "^8.0.1",
"prettier": "^2.7.1",
"prismjs": "^1.28.0",
"puppeteer": "^14.3.0",
"react": "^16.14.0",
"react-benchmark": "^5.0.0",
"react-color": "^2.19.3",
"react-component-benchmark": "^1.0.0",
"react-dom": "^16.14.0",
"react-modal": "^3.15.1",
"react-test-renderer": "^16.14.0",
"rimraf": "^3.0.2",
"rollup": "^2.75.6",
"rollup-plugin-dts": "^4.2.2",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"stylelint": "^13.13.1",
"stylelint-config-torchbox": "^1.0.0",
"ts-jest": "^28.0.4",
"typescript": "^4.7.3",
"webpack-bundle-analyzer": "^4.5.0"
},
"overrides": {
"enzyme": {
"cheerio": "1.0.0-rc.10"
}
},
"peerDependencies": {
"draft-js": "^0.10.5",
"react": "^16.6.0",
"react-dom": "^16.6.0"
},
"scripts": {
"start": "start-storybook -c .storybook -p 9001 --no-open --no-version-updates --no-release-notes --quiet --modern",
"build:rollup": "rollup -c",
"build:styles": "sass src/index.scss > dist/draftail.css",
"build:storybook": "build-storybook -c .storybook -o storybook-static --quiet --modern",
"build": "npm run build:rollup -s && npm run build:storybook -s && npm run build:styles -s",
"dist": "NODE_ENV=production npm run build -s",
"lint": "eslint --cache --cache-location ./node_modules/.cache/.eslintcache --ext .js,.ts,.tsx --report-unused-disable-directives . && stylelint --report-needless-disables '**/*.scss' && prettier --cache --check '**/?(.)*.{md,css,scss,js,ts,tsx,json,json5,yaml,yml,html}'",
"format": "prettier --cache --write '**/?(.)*.{md,css,scss,js,ts,tsx,json,json5,yaml,yml,html}'",
"test": "jest",
"test:integration": "jest --config tests/integration/jest.config.js",
"test:integration:watch": "jest --config tests/integration/jest.config.js --watch",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"test:watch:coverage": "jest --watch --coverage",
"test:performance": "react-benchmark tests/performance/markov_draftjs_41.js | tee -a public/benchmark.txt && date >> public/benchmark.txt",
"report:coverage": "open coverage/lcov-report/index.html",
"report:build": "open public/webpack-stats.html",
"report:size": "uglifyjs --compress --mangle -- dist/draftail.cjs.js > dist/draftail.cjs.min.js && gzip --keep dist/* && wc -c dist/* | tee -a public/size.txt && date >> public/size.txt && rm dist/*.gz && rm dist/*.min.js",
"report:package": "npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' | tee -a public/package.txt && date >> public/package.txt && rm *.tgz",
"test:ci": "npm run lint -s && npm run test:coverage -s --json --runInBand && npm run dist -s && npm run test:integration -s && npm run test:performance -s",
"prepare": "./.githooks/deploy.sh"
}
}