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,
|
2017-06-07 15:09:09 +02:00
|
|
|
"babel": {
|
|
|
|
"presets": [
|
2017-06-12 17:28:57 +02:00
|
|
|
[
|
|
|
|
"es2015",
|
|
|
|
{
|
|
|
|
"modules": false
|
|
|
|
}
|
|
|
|
],
|
2017-06-07 15:09:09 +02:00
|
|
|
"react"
|
|
|
|
],
|
2017-06-12 17:28:57 +02:00
|
|
|
"env": {
|
|
|
|
"test": {
|
|
|
|
"presets": [
|
|
|
|
"es2015",
|
|
|
|
"react"
|
|
|
|
]
|
2018-01-17 23:02:04 +01:00
|
|
|
},
|
|
|
|
"production": {
|
|
|
|
"plugins": [
|
|
|
|
[
|
|
|
|
"transform-react-remove-prop-types",
|
|
|
|
{
|
|
|
|
"mode": "remove",
|
|
|
|
"removeImport": true,
|
|
|
|
"ignoreFilenames": [
|
|
|
|
"node_modules"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2017-06-12 17:28:57 +02:00
|
|
|
}
|
|
|
|
}
|
2017-06-07 15:09:09 +02:00
|
|
|
},
|
2016-06-17 15:48:33 +02:00
|
|
|
"jest": {
|
2018-01-19 17:02:49 +01:00
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/build/"
|
|
|
|
],
|
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",
|
|
|
|
"./client/tests/mock-fetch.js"
|
2016-06-17 15:48:33 +02:00
|
|
|
],
|
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
]
|
|
|
|
},
|
2015-04-25 07:46:15 +02:00
|
|
|
"devDependencies": {
|
2017-12-20 11:14:41 +01:00
|
|
|
"babel-core": "^6.26.0",
|
|
|
|
"babel-jest": "^22.0.3",
|
|
|
|
"babel-loader": "^7.1.2",
|
2018-01-17 23:02:04 +01:00
|
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.12",
|
2017-06-07 11:39:24 +02:00
|
|
|
"babel-preset-es2015": "^6.24.1",
|
2017-05-28 20:49:05 +02:00
|
|
|
"babel-preset-react": "^6.24.1",
|
2017-12-20 11:14:41 +01:00
|
|
|
"enzyme": "^3.2.0",
|
|
|
|
"enzyme-adapter-react-16": "^1.1.1",
|
|
|
|
"enzyme-to-json": "^3.3.0",
|
2016-02-26 22:10:54 +01:00
|
|
|
"eslint": "^2.9.0",
|
2017-04-10 21:34:15 +02:00
|
|
|
"eslint-config-wagtail": "0.1.1",
|
|
|
|
"eslint-import-resolver-webpack": "^0.8.1",
|
2016-02-26 22:10:54 +01:00
|
|
|
"eslint-plugin-import": "^1.8.1",
|
|
|
|
"eslint-plugin-jsx-a11y": "^1.5.3",
|
2016-06-17 15:48:33 +02:00
|
|
|
"eslint-plugin-react": "^5.2.2",
|
2018-01-17 22:23:17 +01:00
|
|
|
"expose-loader": "^0.7.4",
|
2017-08-10 23:32:04 +02:00
|
|
|
"gulp": "^3.9.1",
|
2017-12-20 11:14:41 +01:00
|
|
|
"gulp-autoprefixer": "~4.0.0",
|
2016-04-21 23:31:50 +02:00
|
|
|
"gulp-cssnano": "^2.1.2",
|
2015-04-25 07:46:15 +02:00
|
|
|
"gulp-rename": "^1.2.2",
|
2017-08-10 23:55:55 +02:00
|
|
|
"gulp-sass": "^3.1.0",
|
2016-04-21 23:31:50 +02:00
|
|
|
"gulp-size": "^2.1.0",
|
2017-12-20 11:14:41 +01:00
|
|
|
"gulp-sourcemaps": "~2.6.1",
|
|
|
|
"gulp-util": "~3.0.8",
|
|
|
|
"jest": "^22.0.3",
|
2016-02-24 11:44:14 +01:00
|
|
|
"mustache": "^2.2.1",
|
2017-12-20 11:14:41 +01:00
|
|
|
"npm-run-all": "^4.1.2",
|
|
|
|
"react-test-renderer": "^16.2.0",
|
|
|
|
"redux-mock-store": "^1.3.0",
|
|
|
|
"stylelint": "^8.4.0",
|
|
|
|
"stylelint-scss": "^2.2.0",
|
|
|
|
"webpack": "^3.10.0"
|
2016-02-24 11:44:14 +01:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-01-17 10:23:37 +01:00
|
|
|
"core-js": "^2.5.3",
|
2018-02-09 10:23:04 +01:00
|
|
|
"draft-js": "0.10.5",
|
2018-02-26 21:18:52 +01:00
|
|
|
"draftail": "^0.17.0",
|
2018-02-09 23:07:29 +01:00
|
|
|
"element-closest": "^2.0.2",
|
2017-12-20 11:14:41 +01:00
|
|
|
"focus-trap-react": "^3.1.0",
|
|
|
|
"prop-types": "^15.6.0",
|
|
|
|
"react": "^16.2.0",
|
|
|
|
"react-dom": "^16.2.0",
|
|
|
|
"react-redux": "^5.0.6",
|
2017-05-28 20:49:05 +02:00
|
|
|
"react-transition-group": "^1.1.3",
|
2017-12-20 11:14:41 +01:00
|
|
|
"redux": "^3.7.2",
|
2016-06-17 15:48:33 +02:00
|
|
|
"redux-thunk": "^2.2.0",
|
2017-12-20 11:14:41 +01:00
|
|
|
"whatwg-fetch": "^2.0.3"
|
2015-04-25 07:46:15 +02:00
|
|
|
},
|
|
|
|
"scripts": {
|
2017-06-07 14:56:51 +02:00
|
|
|
"postinstall": "npm --prefix client install",
|
2017-09-17 19:40:34 +02:00
|
|
|
"build": "npm run gulp:prod:build && npm run webpack:prod:build",
|
2016-04-21 23:31:50 +02:00
|
|
|
"dist": "NODE_ENV=production npm run build",
|
2017-09-17 19:40:34 +02:00
|
|
|
"watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
|
2016-02-24 11:44:14 +01:00
|
|
|
"start": "npm run watch",
|
2017-09-17 19:40:34 +02:00
|
|
|
"gulp:dev:watch": "gulp watch",
|
|
|
|
"gulp:prod:build": "gulp build",
|
|
|
|
"webpack:dev:watch": "webpack --config ./client/webpack/dev.config.js",
|
|
|
|
"webpack:prod:build": "webpack --config ./client/webpack/prod.config.js",
|
2016-12-19 19:03:14 +01:00
|
|
|
"lint:js": "eslint --max-warnings 16 ./client",
|
2017-08-18 02:28:38 +02:00
|
|
|
"lint:css": "stylelint **/*.scss",
|
2016-02-24 11:44:14 +01:00
|
|
|
"lint": "npm run lint:js",
|
|
|
|
"test": "npm run test:unit",
|
2016-06-17 15:48:33 +02:00
|
|
|
"test:unit": "jest",
|
|
|
|
"test:unit:watch": "jest --watch",
|
|
|
|
"test:unit:coverage": "jest --coverage",
|
2016-02-24 11:44:14 +01:00
|
|
|
"component": "node ./client/src/cli/index.js component --dir ./client/src/components/"
|
2015-04-25 07:46:15 +02:00
|
|
|
}
|
2015-04-25 07:48:06 +02:00
|
|
|
}
|