2015-04-25 07:46:15 +02:00
|
|
|
{
|
|
|
|
"name": "wagtail",
|
|
|
|
"version": "1.0.0",
|
2016-12-15 12:49:49 +01:00
|
|
|
"repository": "https://github.com/wagtail/wagtail",
|
2015-04-25 07:46:15 +02:00
|
|
|
"private": true,
|
2020-04-28 22:23:15 +02:00
|
|
|
"engines": {
|
2022-01-31 15:51:38 +01:00
|
|
|
"node": ">=16.0.0"
|
2020-04-28 22:23:15 +02:00
|
|
|
},
|
2020-05-28 02:33:36 +02:00
|
|
|
"browserslist": [
|
|
|
|
"Firefox ESR",
|
|
|
|
"last 2 Chrome versions",
|
|
|
|
"last 2 ChromeAndroid versions",
|
|
|
|
"last 2 Edge versions",
|
|
|
|
"last 1 Firefox version",
|
|
|
|
"last 2 iOS versions",
|
2022-01-14 11:13:25 +01:00
|
|
|
"last 3 Safari versions"
|
2020-05-28 02:33:36 +02:00
|
|
|
],
|
2016-06-17 15:48:33 +02:00
|
|
|
"jest": {
|
2020-10-21 10:42:14 +02:00
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"json",
|
|
|
|
"node"
|
|
|
|
],
|
2020-12-21 15:58:12 +01:00
|
|
|
"moduleNameMapper": {
|
2021-10-08 16:59:16 +02:00
|
|
|
"jquery": "<rootDir>/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery-3.6.0.min.js"
|
2020-12-21 15:58:12 +01:00
|
|
|
},
|
2020-10-21 10:42:14 +02:00
|
|
|
"transform": {
|
|
|
|
"^.+\\.(js|ts|tsx)$": "ts-jest"
|
|
|
|
},
|
2018-01-19 17:02:49 +01:00
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
2021-11-12 17:27:10 +01:00
|
|
|
"/build/",
|
|
|
|
"client/tests/integration"
|
2018-01-19 17:02:49 +01:00
|
|
|
],
|
2020-05-22 09:44:23 +02:00
|
|
|
"coveragePathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/tests/"
|
|
|
|
],
|
2016-06-17 15:48:33 +02:00
|
|
|
"setupFiles": [
|
2017-12-20 11:14:41 +01:00
|
|
|
"./client/tests/adapter.js",
|
2017-02-12 16:29:56 +01:00
|
|
|
"./client/tests/stubs.js",
|
2021-04-24 12:35:47 +02:00
|
|
|
"./client/tests/mock-fetch.js",
|
|
|
|
"./client/tests/mock-jquery.js"
|
2016-06-17 15:48:33 +02:00
|
|
|
],
|
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
]
|
|
|
|
},
|
2015-04-25 07:46:15 +02:00
|
|
|
"devDependencies": {
|
2022-01-06 22:27:01 +01:00
|
|
|
"@babel/core": "^7.16.7",
|
|
|
|
"@storybook/builder-webpack5": "^6.3.12",
|
|
|
|
"@storybook/manager-webpack5": "^6.3.12",
|
|
|
|
"@storybook/react": "^6.3.12",
|
2021-03-25 10:56:27 +01:00
|
|
|
"@types/draft-js": "^0.10.45",
|
2022-01-06 22:27:01 +01:00
|
|
|
"@types/jest": "^26.0.24",
|
|
|
|
"@types/react": "^16.14.21",
|
|
|
|
"@types/react-redux": "^7.1.20",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
|
|
|
"@typescript-eslint/parser": "^5.8.0",
|
|
|
|
"@wagtail/eslint-config-wagtail": "^0.4.0",
|
|
|
|
"@wagtail/stylelint-config-wagtail": "^0.3.2",
|
|
|
|
"autoprefixer": "^10.4.0",
|
|
|
|
"babel-loader": "^8.2.3",
|
|
|
|
"copy-webpack-plugin": "^10.2.0",
|
|
|
|
"css-loader": "^6.5.1",
|
|
|
|
"cssnano": "^5.0.14",
|
|
|
|
"enzyme": "^3.11.0",
|
|
|
|
"enzyme-adapter-react-16": "^1.15.6",
|
|
|
|
"enzyme-to-json": "^3.6.2",
|
|
|
|
"eslint": "^8.5.0",
|
|
|
|
"expose-loader": "^3.1.0",
|
2021-10-11 14:47:02 +02:00
|
|
|
"jest": "^26.6.3",
|
2022-01-06 22:27:01 +01:00
|
|
|
"mini-css-extract-plugin": "^2.4.5",
|
|
|
|
"postcss": "^8.4.5",
|
|
|
|
"postcss-loader": "^6.2.1",
|
2022-02-04 12:45:08 +01:00
|
|
|
"prettier": "^2.5.1",
|
2022-01-06 22:27:01 +01:00
|
|
|
"react-axe": "^3.5.4",
|
|
|
|
"react-test-renderer": "^16.14.0",
|
2017-12-20 11:14:41 +01:00
|
|
|
"redux-mock-store": "^1.3.0",
|
2022-01-06 22:27:01 +01:00
|
|
|
"sass": "^1.45.1",
|
|
|
|
"sass-loader": "^12.4.0",
|
|
|
|
"stylelint": "^14.2.0",
|
|
|
|
"ts-jest": "^26.5.6",
|
|
|
|
"ts-loader": "^9.2.6",
|
|
|
|
"typescript": "^4.5.4",
|
|
|
|
"webpack": "^5.65.0",
|
|
|
|
"webpack-cli": "^4.9.1"
|
2016-02-24 11:44:14 +01:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-01-17 10:23:37 +01:00
|
|
|
"core-js": "^2.5.3",
|
2021-04-16 19:11:56 +02:00
|
|
|
"draft-js": "^0.10.5",
|
|
|
|
"draftail": "^1.4.1",
|
2021-03-25 10:56:27 +01:00
|
|
|
"draftjs-filters": "^2.5.0",
|
2018-02-09 23:07:29 +01:00
|
|
|
"element-closest": "^2.0.2",
|
2021-04-16 19:11:56 +02:00
|
|
|
"focus-trap-react": "^8.4.2",
|
2021-04-06 15:33:23 +02:00
|
|
|
"formdata-polyfill": "^3.0.20",
|
2021-11-10 13:04:24 +01:00
|
|
|
"immer": "^9.0.6",
|
2021-07-23 11:47:50 +02:00
|
|
|
"js-cookie": "^2.2.1",
|
2021-01-17 03:17:41 +01:00
|
|
|
"postcss-calc": "^7.0.5",
|
2019-07-05 13:52:26 +02:00
|
|
|
"prop-types": "^15.6.2",
|
2021-03-19 14:17:58 +01:00
|
|
|
"react": "^16.14.0",
|
|
|
|
"react-dom": "^16.14.0",
|
2021-03-19 14:21:14 +01:00
|
|
|
"react-redux": "^7.2.2",
|
2017-05-28 20:49:05 +02:00
|
|
|
"react-transition-group": "^1.1.3",
|
2019-07-05 13:52:26 +02:00
|
|
|
"redux": "^4.0.0",
|
|
|
|
"redux-thunk": "^2.3.0",
|
2021-04-01 11:00:22 +02:00
|
|
|
"reselect": "^4.0.0",
|
2021-04-14 21:58:40 +02:00
|
|
|
"telepath-unpack": "^0.0.3",
|
2021-04-22 16:58:08 +02:00
|
|
|
"url-search-params-polyfill": "^8.1.1",
|
2021-03-19 12:12:03 +01:00
|
|
|
"uuid": "^8.3.2",
|
2017-12-20 11:14:41 +01:00
|
|
|
"whatwg-fetch": "^2.0.3"
|
2015-04-25 07:46:15 +02:00
|
|
|
},
|
|
|
|
"scripts": {
|
2021-12-23 05:21:23 +01:00
|
|
|
"start": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
|
|
|
|
"build": "webpack --config ./client/webpack.config.js --mode production",
|
2021-12-23 04:18:04 +01:00
|
|
|
"fix:js": "eslint --ext .js,.ts,.tsx --fix ./",
|
2022-02-04 12:45:08 +01:00
|
|
|
"format": "prettier --write '**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}'",
|
2021-12-23 05:21:23 +01:00
|
|
|
"lint:js": "eslint --ext .js,.ts,.tsx --report-unused-disable-directives --max-warnings 16 ./client",
|
2017-08-18 02:28:38 +02:00
|
|
|
"lint:css": "stylelint **/*.scss",
|
2022-02-04 12:45:08 +01:00
|
|
|
"lint:format": "prettier --check '**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}'",
|
|
|
|
"lint": "npm run lint:js && npm run lint:css && npm run lint:format",
|
2016-02-24 11:44:14 +01:00
|
|
|
"test": "npm run test:unit",
|
2016-06-17 15:48:33 +02:00
|
|
|
"test:unit": "jest",
|
|
|
|
"test:unit:watch": "jest --watch",
|
2021-04-23 22:25:05 +02:00
|
|
|
"test:unit:coverage": "jest --coverage",
|
2021-11-12 17:27:10 +01:00
|
|
|
"test:integration": "./client/tests/integration/node_modules/.bin/jest --config ./client/tests/integration/jest.config.js",
|
2021-04-23 22:25:05 +02:00
|
|
|
"storybook": "start-storybook -c client/.storybook -p 6006",
|
|
|
|
"build-storybook": "build-storybook -c client/.storybook"
|
2015-04-25 07:46:15 +02:00
|
|
|
}
|
2015-04-25 07:48:06 +02:00
|
|
|
}
|