package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "name": "Drupal",
  3. "description": "Drupal is an open source content management platform powering millions of websites and applications.",
  4. "license": "GPL-2.0",
  5. "private": true,
  6. "engines": {
  7. "yarn": ">= 1.6",
  8. "node": ">= 8.11"
  9. },
  10. "scripts": {
  11. "build": "yarn build:css & yarn build:js",
  12. "watch": "yarn watch:css & yarn watch:js",
  13. "build:css": "cross-env BABEL_ENV=legacy node ./scripts/css/postcss-build.js",
  14. "watch:css": "cross-env BABEL_ENV=legacy node ./scripts/css/postcss-watch.js",
  15. "build:js": "cross-env BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js",
  16. "build:js-dev": "cross-env NODE_ENV=development BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js",
  17. "watch:js": "cross-env BABEL_ENV=legacy node ./scripts/js/babel-es6-watch.js",
  18. "watch:js-dev": "cross-env NODE_ENV=development BABEL_ENV=legacy node ./scripts/js/babel-es6-watch.js",
  19. "lint:core-js": "node ./node_modules/eslint/bin/eslint.js .",
  20. "lint:core-js-passing": "node ./node_modules/eslint/bin/eslint.js --quiet --config=.eslintrc.passing.json .",
  21. "lint:core-js-stats": "node ./node_modules/eslint/bin/eslint.js --format=./scripts/js/eslint-stats-by-type.js .",
  22. "lint:css": "stylelint \"**/*.css\"",
  23. "lint:css-checkstyle": "stylelint \"**/*.css\" --custom-formatter ./node_modules/stylelint-checkstyle-formatter/index.js",
  24. "test:nightwatch": "cross-env BABEL_ENV=development node -r dotenv-safe/config -r babel-register ./node_modules/.bin/nightwatch --config ./tests/Drupal/Nightwatch/nightwatch.conf.js",
  25. "prettier": "prettier --write \"./**/*.es6.js\" \"./tests/Drupal/Nightwatch/**/*.js\""
  26. },
  27. "devDependencies": {
  28. "autoprefixer": "^9.6.1",
  29. "babel-core": "^6.26.0",
  30. "babel-plugin-add-header-comment": "^1.0.3",
  31. "babel-preset-env": "^1.4.0",
  32. "chalk": "^2.3.0",
  33. "chokidar": "^2.0.0",
  34. "chromedriver": "^75.1.0",
  35. "cross-env": "^5.1.3",
  36. "dotenv-safe": "^5.0.1",
  37. "eslint": "^4.19.1",
  38. "eslint-config-airbnb": "^17.0.0",
  39. "eslint-config-prettier": "^2.9.0",
  40. "eslint-plugin-import": "^2.13.0",
  41. "eslint-plugin-jsx-a11y": "^6.0.3",
  42. "eslint-plugin-prettier": "^2.6.2",
  43. "eslint-plugin-react": "^7.10.0",
  44. "glob": "^7.1.2",
  45. "minimist": "^1.2.2",
  46. "mkdirp": "^0.5.1",
  47. "nightwatch": "^1.2.1",
  48. "postcss": "^7.0.18",
  49. "postcss-calc": "^7.0.1",
  50. "postcss-custom-properties": "^9.0.2",
  51. "postcss-header": "^1.0.0",
  52. "postcss-import": "^12.0.1",
  53. "prettier": "^1.14.0",
  54. "stylelint": "^9.10.1",
  55. "stylelint-checkstyle-formatter": "^0.1.1",
  56. "stylelint-config-standard": "^18.2.0",
  57. "stylelint-no-browser-hacks": "^1.2.1",
  58. "stylelint-order": "^2.1.0"
  59. },
  60. "//": "'development is the default environment, and legacy is for transpiling the old jQuery codebase",
  61. "babel": {
  62. "env": {
  63. "development": {
  64. "presets": [
  65. [
  66. "env",
  67. {
  68. "modules": "commonjs",
  69. "targets": {
  70. "node": "current"
  71. }
  72. }
  73. ]
  74. ]
  75. },
  76. "legacy": {
  77. "presets": [
  78. [
  79. "env",
  80. {
  81. "modules": false
  82. }
  83. ]
  84. ]
  85. }
  86. }
  87. },
  88. "browserslist": [
  89. "last 2 Chrome major versions",
  90. "last 2 Firefox major versions",
  91. "last 2 Safari major versions",
  92. "last 2 Edge major versions",
  93. "last 2 Opera versions",
  94. "last 2 iOS major versions",
  95. "last 1 Explorer major version",
  96. "last 1 ChromeAndroid version",
  97. "last 1 UCAndroid version",
  98. "last 1 Samsung version",
  99. "last 1 OperaMini version",
  100. "Firefox ESR"
  101. ]
  102. }