forked from springload/draftail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
149 lines (149 loc) · 4.76 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
{
"name": "draftail",
"version": "1.0.0",
"description": "📝🍸 A configurable rich text editor based on Draft.js and React, built for Wagtail",
"author": "Springload",
"license": "MIT",
"main": "dist/draftail.cjs.js",
"module": "dist/draftail.esm.js",
"keywords": [
"draftjs",
"draft.js",
"draft",
"draft-js",
"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",
"lib/**/*.scss"
],
"browserslist": [
"> 1%",
"IE 11",
"Firefox ESR",
"not OperaMini all"
],
"jest": {
"moduleNameMapper": {
"\\.scss$": "<rootDir>/tests/styleMock.js"
},
"testPathIgnorePatterns": [
"/node_modules/",
"/dist/",
"/es/",
"/integration/"
],
"coveragePathIgnorePatterns": [
"<rootDir>/tests"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"setupFiles": [
"<rootDir>/tests/polyfills.js"
],
"setupTestFrameworkScriptFile": "<rootDir>/tests/setupTest.js"
},
"dependencies": {
"draftjs-conductor": "^0.2.1",
"draftjs-filters": "^1.0.0"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"@sentry/browser": "^4.2.3",
"@storybook/addon-viewport": "^4.0.4",
"@storybook/react": "^4.0.4",
"@thibaudcolas/eslint-plugin-cookbook": "^4.0.1",
"@thibaudcolas/stylelint-config-cookbook": "^2.0.1",
"autoprefixer": "^7.1.2",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"babel-loader": "^8.0.4",
"babel-plugin-transform-react-remove-prop-types": "^0.4.18",
"core-js": "^2.5.1",
"danger": "^4.0.2",
"dotenv": "^6.0.0",
"draft-convert": "^2.1.4",
"draft-js": "0.10.5",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.6.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.6.0",
"eslint-plugin-compat": "^2.5.1",
"express": "^4.16.3",
"immutable": "~3.7.4",
"jest": "^23.6.0",
"jest-axe": "^3.1.0",
"jest-environment-node": "^23.4.0",
"jest-image-snapshot": "^2.5.0",
"mkdirp": "^0.5.1",
"normalize.css": "^7.0.0",
"postcss-cli": "^6.0.1",
"postcss-loader": "^3.0.0",
"prettier": "^1.14.0",
"prismjs": "^1.8.4",
"prop-types": "^15.6.0",
"puppeteer": "^1.6.1",
"react": "^16.6.0",
"react-dom": "^16.6.0",
"react-intl": "^2.7.2",
"react-modal": "^3.1.5",
"react-test-renderer": "^16.6.0",
"reading-time": "^1.1.0",
"rimraf": "^2.6.2",
"rollup": "^0.66.2",
"rollup-plugin-babel": "^4.0.3",
"sass": "^1.14.1",
"sass-loader": "^7.1.0",
"storybook-addon-intl": "^2.3.1",
"style-loader": "^0.23.0",
"stylelint": "^9.6.0",
"webpack-bundle-analyzer": "^3.0.2"
},
"peerDependencies": {
"draft-js": "^0.10.5",
"prop-types": "^15.5.0",
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"scripts": {
"start": "start-storybook -c .storybook -s public -p 9001",
"build:rollup": "rollup -c",
"build:styles": "sass lib/index.scss | postcss --use autoprefixer --no-map > dist/draftail.css",
"build:storybook": "build-storybook -c .storybook -o public/storybook",
"build": "npm run build:rollup -s && npm run build:storybook -s && npm run build:styles -s",
"dist": "NODE_ENV=production npm run build -s",
"danger": "danger ci --verbose",
"lint": "eslint . && stylelint '**/*.scss' && prettier --list-different '**/*.{js,scss,css,json,md,yml,yaml}'",
"format": "prettier --write '**/*.{js,scss,css,json,md,yml,yaml}'",
"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",
"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/* && rm dist/*.gz && rm dist/*.min.js",
"report:package": "npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' | tee public/package.txt && rm *.tgz",
"test:ci": "npm run lint -s && npm run test:coverage -s -- --outputFile public/test-results.json --json --runInBand && npm run dist -s && npm run test:integration -s",
"prepublishOnly": "npm run dist -s",
"prepare": "./.githooks/deploy.sh"
}
}