2
0

package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "name": "wagtail",
  3. "version": "1.0.0",
  4. "repository": "https://github.com/wagtail/wagtail",
  5. "private": true,
  6. "babel": {
  7. "presets": [
  8. [
  9. "es2015",
  10. {
  11. "modules": false
  12. }
  13. ],
  14. "react"
  15. ],
  16. "env": {
  17. "test": {
  18. "presets": [
  19. "es2015",
  20. "react"
  21. ]
  22. },
  23. "production": {
  24. "plugins": [
  25. [
  26. "transform-react-remove-prop-types",
  27. {
  28. "mode": "remove",
  29. "removeImport": true,
  30. "ignoreFilenames": [
  31. "node_modules"
  32. ]
  33. }
  34. ]
  35. ]
  36. }
  37. }
  38. },
  39. "jest": {
  40. "testPathIgnorePatterns": [
  41. "/node_modules/",
  42. "/build/"
  43. ],
  44. "setupFiles": [
  45. "./client/tests/adapter.js",
  46. "./client/tests/stubs.js",
  47. "./client/tests/mock-fetch.js"
  48. ],
  49. "snapshotSerializers": [
  50. "enzyme-to-json/serializer"
  51. ]
  52. },
  53. "devDependencies": {
  54. "babel-core": "^6.26.0",
  55. "babel-jest": "^22.0.3",
  56. "babel-loader": "^7.1.2",
  57. "babel-plugin-transform-react-remove-prop-types": "^0.4.12",
  58. "babel-preset-es2015": "^6.24.1",
  59. "babel-preset-react": "^6.24.1",
  60. "enzyme": "^3.2.0",
  61. "enzyme-adapter-react-16": "^1.1.1",
  62. "enzyme-to-json": "^3.3.0",
  63. "eslint": "^2.9.0",
  64. "eslint-config-wagtail": "0.1.1",
  65. "eslint-import-resolver-webpack": "^0.8.1",
  66. "eslint-plugin-import": "^1.8.1",
  67. "eslint-plugin-jsx-a11y": "^1.5.3",
  68. "eslint-plugin-react": "^5.2.2",
  69. "expose-loader": "^0.7.4",
  70. "gulp": "^3.9.1",
  71. "gulp-autoprefixer": "~4.0.0",
  72. "gulp-cssnano": "^2.1.2",
  73. "gulp-rename": "^1.2.2",
  74. "gulp-sass": "^3.1.0",
  75. "gulp-size": "^2.1.0",
  76. "gulp-sourcemaps": "~2.6.1",
  77. "gulp-util": "~3.0.8",
  78. "jest": "^22.0.3",
  79. "mustache": "^2.2.1",
  80. "npm-run-all": "^4.1.2",
  81. "react-test-renderer": "^16.2.0",
  82. "redux-mock-store": "^1.3.0",
  83. "stylelint": "^8.4.0",
  84. "stylelint-scss": "^2.2.0",
  85. "webpack": "^3.10.0"
  86. },
  87. "dependencies": {
  88. "core-js": "^2.5.3",
  89. "draft-js": "0.10.5",
  90. "draftail": "^0.17.1",
  91. "element-closest": "^2.0.2",
  92. "focus-trap-react": "^3.1.0",
  93. "prop-types": "^15.6.0",
  94. "react": "^16.2.0",
  95. "react-dom": "^16.2.0",
  96. "react-redux": "^5.0.6",
  97. "react-transition-group": "^1.1.3",
  98. "redux": "^3.7.2",
  99. "redux-thunk": "^2.2.0",
  100. "whatwg-fetch": "^2.0.3"
  101. },
  102. "scripts": {
  103. "postinstall": "npm --prefix client install",
  104. "build": "npm run gulp:prod:build && npm run webpack:prod:build",
  105. "dist": "NODE_ENV=production npm run build",
  106. "watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
  107. "start": "npm run watch",
  108. "gulp:dev:watch": "gulp watch",
  109. "gulp:prod:build": "gulp build",
  110. "webpack:dev:watch": "webpack --config ./client/webpack/dev.config.js",
  111. "webpack:prod:build": "webpack --config ./client/webpack/prod.config.js",
  112. "lint:js": "eslint --max-warnings 16 ./client",
  113. "lint:css": "stylelint **/*.scss",
  114. "lint": "npm run lint:js",
  115. "test": "npm run test:unit",
  116. "test:unit": "jest",
  117. "test:unit:watch": "jest --watch",
  118. "test:unit:coverage": "jest --coverage",
  119. "component": "node ./client/src/cli/index.js component --dir ./client/src/components/"
  120. }
  121. }