package.json 2.99 KB
Newer Older
1 2 3 4 5
{
  "name": "Drupal",
  "description": "Drupal is an open source content management platform powering millions of websites and applications.",
  "license": "GPL-2.0",
  "private": true,
6 7 8 9
  "engines": {
    "yarn": ">= 1.6",
    "node": ">= 8.11"
  },
10
  "scripts": {
11 12 13 14
    "build:js": "cross-env BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js",
    "build:js-dev": "cross-env NODE_ENV=development node BABEL_ENV=legacy ./scripts/js/babel-es6-build.js",
    "watch:js": "cross-env BABEL_ENV=legacy node ./scripts/js/babel-es6-watch.js",
    "watch:js-dev": "cross-env NODE_ENV=development BABEL_ENV=legacy node ./scripts/js/babel-es6-watch.js",
15 16 17 18 19
    "lint:core-js": "node ./node_modules/eslint/bin/eslint.js .",
    "lint:core-js-passing": "node ./node_modules/eslint/bin/eslint.js --quiet --config=.eslintrc.passing.json .",
    "lint:core-js-stats": "node ./node_modules/eslint/bin/eslint.js --format=./scripts/js/eslint-stats-by-type.js .",
    "lint:css": "stylelint \"**/*.css\"",
    "lint:css-checkstyle": "stylelint \"**/*.css\" --custom-formatter ./node_modules/stylelint-checkstyle-formatter/index.js",
20 21
    "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",
    "prettier": "prettier --write \"./**/*.es6.js\" \"./tests/Drupal/Nightwatch/**/*.js\""
22 23
  },
  "devDependencies": {
24 25 26 27 28
    "babel-core": "^6.26.0",
    "babel-plugin-add-header-comment": "^1.0.3",
    "babel-preset-env": "^1.4.0",
    "chalk": "^2.3.0",
    "chokidar": "^2.0.0",
29
    "chromedriver": "^2.35.0",
30
    "cross-env": "^5.1.3",
31
    "dotenv-safe": "^5.0.1",
32 33
    "eslint": "^4.19.1",
    "eslint-config-airbnb": "^17.0.0",
34
    "eslint-config-prettier": "^2.9.0",
35 36
    "eslint-plugin-import": "^2.13.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
37
    "eslint-plugin-prettier": "^2.6.2",
38
    "eslint-plugin-react": "^7.10.0",
39
    "glob": "^7.1.2",
40
    "minimist": "^1.2.0",
41 42
    "mkdirp": "^0.5.1",
    "nightwatch": "^0.9.20",
43
    "prettier": "^1.14.0",
44
    "stylelint": "^9.1.1",
45
    "stylelint-checkstyle-formatter": "^0.1.1",
46
    "stylelint-config-standard": "^18.2.0",
47
    "stylelint-no-browser-hacks": "^1.1.0"
48
  },
49
  "//": "'development is the default environment, and legacy is for transpiling the old jQuery codebase",
50
  "babel": {
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
    "env": {
      "development": {
        "presets": [
          [
            "env",
            {
              "modules": "commonjs",
              "targets": {
                "node": "current"
              }
            }
          ]
        ]
      },
      "legacy": {
        "presets": [
          [
            "env",
            {
              "modules": false,
              "targets": {
                "browsers": [
                  "ie >= 9",
                  "edge >= 13",
                  "firefox >= 5",
                  "opera >= 12",
                  "safari >= 5",
                  "chrome >= 56"
                ]
              }
            }
          ]
        ]
      }
    }
86 87
  }
}