2015-04-25 05:46:15 +00:00
|
|
|
{
|
|
|
|
"name": "wagtail",
|
|
|
|
"version": "1.0.0",
|
2016-12-15 11:49:49 +00:00
|
|
|
"repository": "https://github.com/wagtail/wagtail",
|
2015-04-25 05:46:15 +00:00
|
|
|
"private": true,
|
2020-04-28 20:23:15 +00:00
|
|
|
"engines": {
|
2023-10-27 06:45:09 +00:00
|
|
|
"node": ">=20.0.0"
|
2020-04-28 20:23:15 +00:00
|
|
|
},
|
2020-05-28 00:33:36 +00:00
|
|
|
"browserslist": [
|
|
|
|
"Firefox ESR",
|
|
|
|
"last 2 Chrome versions",
|
|
|
|
"last 2 ChromeAndroid versions",
|
|
|
|
"last 2 Edge versions",
|
|
|
|
"last 1 Firefox version",
|
2023-12-12 10:54:41 +00:00
|
|
|
"iOS >= 16",
|
2023-12-12 17:25:39 +00:00
|
|
|
"Safari >= 15",
|
2022-02-24 20:08:28 +00:00
|
|
|
"not ie 11"
|
2020-05-28 00:33:36 +00:00
|
|
|
],
|
2016-06-17 13:48:33 +00:00
|
|
|
"jest": {
|
2020-10-21 08:42:14 +00:00
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"json",
|
|
|
|
"node"
|
|
|
|
],
|
2020-12-21 14:58:12 +00:00
|
|
|
"moduleNameMapper": {
|
2021-10-08 14:59:16 +00:00
|
|
|
"jquery": "<rootDir>/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery-3.6.0.min.js"
|
2020-12-21 14:58:12 +00:00
|
|
|
},
|
2020-10-21 08:42:14 +00:00
|
|
|
"transform": {
|
|
|
|
"^.+\\.(js|ts|tsx)$": "ts-jest"
|
|
|
|
},
|
2023-06-24 11:29:12 +00:00
|
|
|
"testEnvironment": "jsdom",
|
2018-01-19 16:02:49 +00:00
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
2021-11-12 16:27:10 +00:00
|
|
|
"/build/",
|
|
|
|
"client/tests/integration"
|
2018-01-19 16:02:49 +00:00
|
|
|
],
|
2020-05-22 07:44:23 +00:00
|
|
|
"coveragePathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/tests/"
|
|
|
|
],
|
2016-06-17 13:48:33 +00:00
|
|
|
"setupFiles": [
|
2017-12-20 10:14:41 +00:00
|
|
|
"./client/tests/adapter.js",
|
2017-02-12 15:29:56 +00:00
|
|
|
"./client/tests/stubs.js",
|
2021-04-24 10:35:47 +00:00
|
|
|
"./client/tests/mock-fetch.js",
|
|
|
|
"./client/tests/mock-jquery.js"
|
2016-06-17 13:48:33 +00:00
|
|
|
],
|
2022-09-01 16:35:44 +00:00
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"./client/tests/utils.js"
|
|
|
|
],
|
2016-06-17 13:48:33 +00:00
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
]
|
|
|
|
},
|
2015-04-25 05:46:15 +00:00
|
|
|
"devDependencies": {
|
2024-03-12 06:01:13 +00:00
|
|
|
"@babel/core": "^7.24.4",
|
|
|
|
"@babel/preset-env": "^7.24.4",
|
|
|
|
"@babel/preset-react": "^7.24.1",
|
|
|
|
"@babel/preset-typescript": "^7.24.1",
|
2024-02-05 23:29:36 +00:00
|
|
|
"@storybook/addon-controls": "^7.6.14",
|
|
|
|
"@storybook/addon-docs": "^7.6.14",
|
|
|
|
"@storybook/react": "^7.6.14",
|
|
|
|
"@storybook/react-webpack5": "^7.6.14",
|
|
|
|
"@types/autosize": "^4.0.3",
|
2021-03-25 09:56:27 +00:00
|
|
|
"@types/draft-js": "^0.10.45",
|
2024-02-05 23:29:36 +00:00
|
|
|
"@types/jest": "^29.5.12",
|
|
|
|
"@types/jquery": "^3.5.29",
|
2024-03-12 06:01:13 +00:00
|
|
|
"@types/mousetrap": "^1.6.15",
|
2022-01-06 21:27:01 +00:00
|
|
|
"@types/react": "^16.14.21",
|
2022-06-01 20:01:59 +00:00
|
|
|
"@types/react-dom": "^16.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"@types/react-redux": "^7.1.33",
|
2024-02-07 20:48:13 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
|
|
"@typescript-eslint/parser": "^6.21.0",
|
2022-01-06 21:27:01 +00:00
|
|
|
"@wagtail/eslint-config-wagtail": "^0.4.0",
|
2024-02-07 20:48:13 +00:00
|
|
|
"@wagtail/stylelint-config-wagtail": "^0.8.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"autoprefixer": "^10.4.17",
|
2024-02-06 00:07:12 +00:00
|
|
|
"babel-loader": "^9.1.3",
|
|
|
|
"copy-webpack-plugin": "^12.0.2",
|
2024-02-05 23:29:36 +00:00
|
|
|
"css-loader": "^6.10.0",
|
|
|
|
"cssnano": "^5.1.15",
|
2022-01-06 21:27:01 +00:00
|
|
|
"enzyme": "^3.11.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"enzyme-adapter-react-16": "^1.15.8",
|
2022-01-06 21:27:01 +00:00
|
|
|
"enzyme-to-json": "^3.6.2",
|
2024-02-07 20:48:13 +00:00
|
|
|
"eslint": "^8.56.0",
|
2023-12-12 10:54:41 +00:00
|
|
|
"eslint-plugin-storybook": "^0.6.15",
|
2024-02-06 00:07:12 +00:00
|
|
|
"expose-loader": "^5.0.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"gettext-extractor": "^3.8.0",
|
2024-01-08 17:43:11 +00:00
|
|
|
"jest": "^29.7.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
|
|
"mini-css-extract-plugin": "^2.8.0",
|
|
|
|
"postcss": "^8.4.35",
|
2024-02-06 00:07:12 +00:00
|
|
|
"postcss-loader": "^8.1.0",
|
2024-02-19 18:38:20 +00:00
|
|
|
"prettier": "^3.1.0",
|
2022-01-06 21:27:01 +00:00
|
|
|
"react-test-renderer": "^16.14.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"redux-mock-store": "^1.5.4",
|
|
|
|
"sass": "^1.70.0",
|
2024-02-06 00:07:12 +00:00
|
|
|
"sass-loader": "^14.1.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"storybook": "^7.6.14",
|
2022-04-06 08:56:10 +00:00
|
|
|
"storybook-django": "^0.5.1",
|
2023-10-27 06:55:37 +00:00
|
|
|
"stylelint": "^15.11.0",
|
2024-02-05 23:29:36 +00:00
|
|
|
"tailwindcss": "^3.4.1",
|
|
|
|
"tailwindcss-vanilla-rtl": "^0.4.0",
|
|
|
|
"ts-jest": "^29.1.2",
|
2023-12-13 10:40:27 +00:00
|
|
|
"ts-loader": "^9.5.1",
|
2024-03-12 06:01:13 +00:00
|
|
|
"typescript": "^5.4.4",
|
|
|
|
"webpack": "^5.91.0",
|
2024-02-06 00:07:12 +00:00
|
|
|
"webpack-cli": "^5.1.4"
|
2016-02-24 10:44:14 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-08-17 10:37:52 +00:00
|
|
|
"@hotwired/stimulus": "^3.2.2",
|
2022-03-28 14:43:35 +00:00
|
|
|
"@tippyjs/react": "^4.2.6",
|
2024-02-05 23:29:36 +00:00
|
|
|
"a11y-dialog": "^8.0.4",
|
2023-03-06 22:27:42 +00:00
|
|
|
"autosize": "^6.0.1",
|
2024-02-05 23:29:36 +00:00
|
|
|
"axe-core": "^4.8.4",
|
|
|
|
"downshift": "^7.6.2",
|
2021-04-16 17:11:56 +00:00
|
|
|
"draft-js": "^0.10.5",
|
2023-02-03 09:48:04 +00:00
|
|
|
"draftail": "^2.0.0-rc.6",
|
2022-08-09 08:06:28 +00:00
|
|
|
"draftjs-filters": "^3.0.1",
|
2024-02-05 23:29:36 +00:00
|
|
|
"focus-trap-react": "^8.11.3",
|
|
|
|
"immer": "^9.0.21",
|
2023-08-24 14:31:29 +00:00
|
|
|
"js-cookie": "^3.0.5",
|
2024-03-12 06:01:13 +00:00
|
|
|
"mousetrap": "^1.6.5",
|
2024-02-05 23:29:36 +00:00
|
|
|
"prop-types": "^15.8.1",
|
2021-03-19 13:17:58 +00:00
|
|
|
"react": "^16.14.0",
|
|
|
|
"react-dom": "^16.14.0",
|
2021-03-19 13:21:14 +00:00
|
|
|
"react-redux": "^7.2.2",
|
2017-05-28 18:49:05 +00:00
|
|
|
"react-transition-group": "^1.1.3",
|
2024-02-05 23:29:36 +00:00
|
|
|
"redux": "^4.2.1",
|
|
|
|
"redux-thunk": "^2.4.2",
|
|
|
|
"reselect": "^4.1.8",
|
|
|
|
"sortablejs": "^1.15.2",
|
2021-04-14 19:58:40 +00:00
|
|
|
"telepath-unpack": "^0.0.3",
|
2022-03-28 14:43:35 +00:00
|
|
|
"tippy.js": "^6.3.7",
|
2024-02-05 23:29:36 +00:00
|
|
|
"uuid": "^9.0.1"
|
2015-04-25 05:46:15 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2021-12-23 04:21:23 +00:00
|
|
|
"start": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
|
|
|
|
"build": "webpack --config ./client/webpack.config.js --mode production",
|
2023-08-01 22:24:26 +00:00
|
|
|
"fix:css": "stylelint --fix **/*.scss",
|
2022-02-18 16:07:09 +00:00
|
|
|
"fix:js": "eslint --ext .js,.ts,.tsx --fix .",
|
2023-08-01 22:24:26 +00:00
|
|
|
"fix": "npm run fix:css && npm run fix:js",
|
2022-06-22 16:11:15 +00:00
|
|
|
"format": "prettier --write \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
|
2022-02-18 16:07:09 +00:00
|
|
|
"lint:js": "eslint --ext .js,.ts,.tsx --report-unused-disable-directives .",
|
2017-08-18 00:28:38 +00:00
|
|
|
"lint:css": "stylelint **/*.scss",
|
2022-06-22 16:11:15 +00:00
|
|
|
"lint:format": "prettier --check \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
|
2023-08-01 22:24:26 +00:00
|
|
|
"lint:ts": "tsc --noEmit",
|
|
|
|
"lint": "npm run lint:js && npm run lint:ts && npm run lint:css && npm run lint:format",
|
2016-02-24 10:44:14 +00:00
|
|
|
"test": "npm run test:unit",
|
2016-06-17 13:48:33 +00:00
|
|
|
"test:unit": "jest",
|
|
|
|
"test:unit:watch": "jest --watch",
|
2021-04-23 20:25:05 +00:00
|
|
|
"test:unit:coverage": "jest --coverage",
|
2021-11-12 16:27:10 +00:00
|
|
|
"test:integration": "./client/tests/integration/node_modules/.bin/jest --config ./client/tests/integration/jest.config.js",
|
2023-12-12 10:54:41 +00:00
|
|
|
"storybook": "storybook dev -c client/storybook -p 6006 --no-open --no-version-updates",
|
|
|
|
"build-storybook": "storybook build -c client/storybook"
|
2015-04-25 05:46:15 +00:00
|
|
|
}
|
2015-04-25 05:48:06 +00:00
|
|
|
}
|