2016-10-13 23:53:15 +00:00
|
|
|
{
|
|
|
|
"name": "Drupal",
|
|
|
|
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
|
|
|
|
"license": "GPL-2.0",
|
|
|
|
"private": true,
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
"engines": {
|
|
|
|
"yarn": ">= 1.6",
|
2020-04-29 11:39:58 +00:00
|
|
|
"node": ">= 12.0"
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
},
|
2016-10-13 23:53:15 +00:00
|
|
|
"scripts": {
|
2019-12-06 12:27:58 +00:00
|
|
|
"build": "yarn build:css & yarn build:js & yarn build:jqueryui",
|
2019-10-07 14:29:07 +00:00
|
|
|
"watch": "yarn watch:css & yarn watch:js",
|
|
|
|
"build:css": "cross-env BABEL_ENV=legacy node ./scripts/css/postcss-build.js",
|
|
|
|
"watch:css": "cross-env BABEL_ENV=legacy node ./scripts/css/postcss-watch.js",
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
"build:js": "cross-env BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js",
|
2018-10-05 10:45:38 +00:00
|
|
|
"build:js-dev": "cross-env NODE_ENV=development BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js",
|
2019-12-06 12:27:58 +00:00
|
|
|
"build:jqueryui": "cross-env NODE_ENV=development BABEL_ENV=legacy node ./scripts/js/jqueryui-build.js",
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
"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",
|
2018-05-31 11:06:29 +00:00
|
|
|
"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",
|
2020-01-30 09:08:38 +00:00
|
|
|
"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",
|
Issue #2972224 by alexpott, longwave, jungle, sja112, xjm, dww, daffie, kiamlaluno, dawehner, quietone, Lendude: Add .cspell.json to automate spellchecking in Drupal core
2020-06-21 19:15:29 +00:00
|
|
|
"prettier": "prettier --write \"./**/*.es6.js\" \"./tests/Drupal/Nightwatch/**/*.js\"",
|
|
|
|
"spellcheck": "cspell",
|
|
|
|
"spellcheck:make-drupal-dict": "rm -f misc/cspell/dictionary.txt && yarn -s spellcheck:core --unique --wordsOnly | tr '[:upper:]' '[:lower:]' | tr -d \\\\\\\\ | LC_ALL=C sort -u -o misc/cspell/dictionary.txt",
|
2020-10-15 09:55:45 +00:00
|
|
|
"spellcheck:core": "cspell \"**/*\" \".*\" \"../composer/**/*\" \"../composer.json\""
|
2016-10-13 23:53:15 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-01-30 09:08:38 +00:00
|
|
|
"@babel/core": "^7.0.0",
|
|
|
|
"@babel/preset-env": "^7.0.0",
|
|
|
|
"@babel/register": "^7.7.7",
|
2018-01-29 06:21:50 +00:00
|
|
|
"babel-plugin-add-header-comment": "^1.0.3",
|
2020-10-21 10:41:33 +00:00
|
|
|
"chalk": "^4.1.0",
|
2020-01-30 09:08:38 +00:00
|
|
|
"chokidar": "^3.3.1",
|
2020-10-21 10:41:33 +00:00
|
|
|
"chromedriver": "^86.0.0",
|
|
|
|
"cross-env": "^7.0.2",
|
Issue #2972224 by alexpott, longwave, jungle, sja112, xjm, dww, daffie, kiamlaluno, dawehner, quietone, Lendude: Add .cspell.json to automate spellchecking in Drupal core
2020-06-21 19:15:29 +00:00
|
|
|
"cspell": "^4.0.63",
|
2020-01-30 09:08:38 +00:00
|
|
|
"dotenv-safe": "^8.2.0",
|
2020-10-21 10:41:33 +00:00
|
|
|
"eslint": "^7.10.0",
|
2020-01-30 09:08:38 +00:00
|
|
|
"eslint-config-airbnb": "^18.0.1",
|
|
|
|
"eslint-config-prettier": "^6.7.0",
|
2018-07-03 17:02:15 +00:00
|
|
|
"eslint-plugin-import": "^2.13.0",
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.0.3",
|
2020-01-30 09:08:38 +00:00
|
|
|
"eslint-plugin-prettier": "^3.1.2",
|
2018-07-03 17:02:15 +00:00
|
|
|
"eslint-plugin-react": "^7.10.0",
|
2020-10-21 10:41:33 +00:00
|
|
|
"eslint-plugin-react-hooks": "^4.1.2",
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
"glob": "^7.1.2",
|
2020-03-28 07:16:23 +00:00
|
|
|
"minimist": "^1.2.2",
|
2020-10-21 10:41:33 +00:00
|
|
|
"mkdirp": "^1.0.4",
|
2019-08-29 03:06:12 +00:00
|
|
|
"nightwatch": "^1.2.1",
|
2019-10-07 14:29:07 +00:00
|
|
|
"postcss": "^7.0.18",
|
|
|
|
"postcss-calc": "^7.0.1",
|
2020-03-05 22:42:18 +00:00
|
|
|
"postcss-header": "^2.0.0",
|
2019-10-07 14:29:07 +00:00
|
|
|
"postcss-import": "^12.0.1",
|
2020-09-30 21:46:42 +00:00
|
|
|
"postcss-preset-env": "^6.7.0",
|
2020-12-09 16:26:35 +00:00
|
|
|
"postcss-pxtorem": "^5.1.1",
|
2020-08-21 15:41:41 +00:00
|
|
|
"postcss-url": "^8.0.0",
|
2020-10-21 10:41:33 +00:00
|
|
|
"prettier": "^2.1.2",
|
2020-06-01 21:23:22 +00:00
|
|
|
"stylelint": "^13.0.0",
|
2018-01-29 06:21:50 +00:00
|
|
|
"stylelint-checkstyle-formatter": "^0.1.1",
|
2020-10-21 10:41:33 +00:00
|
|
|
"stylelint-config-standard": "^20.0.0",
|
2019-08-29 03:06:12 +00:00
|
|
|
"stylelint-no-browser-hacks": "^1.2.1",
|
2020-01-30 09:08:38 +00:00
|
|
|
"stylelint-order": "^4.0.0",
|
2020-10-21 10:41:33 +00:00
|
|
|
"terser": "^5.3.4"
|
2016-10-13 23:53:15 +00:00
|
|
|
},
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
"//": "'development is the default environment, and legacy is for transpiling the old jQuery codebase",
|
2016-10-13 23:53:15 +00:00
|
|
|
"babel": {
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
"env": {
|
|
|
|
"development": {
|
|
|
|
"presets": [
|
|
|
|
[
|
2020-01-30 09:08:38 +00:00
|
|
|
"@babel/preset-env",
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
{
|
|
|
|
"modules": "commonjs",
|
|
|
|
"targets": {
|
|
|
|
"node": "current"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"legacy": {
|
|
|
|
"presets": [
|
|
|
|
[
|
2020-01-30 09:08:38 +00:00
|
|
|
"@babel/preset-env",
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
{
|
2019-10-07 14:29:07 +00:00
|
|
|
"modules": false
|
Issue #2869825 by justafish, dawehner, alexpott, martin107, jibran, Lendude, Mixologic, michielnugter, droplet, drpal, lauriii, effulgentsia, mglaman: Leverage JS for JS testing (using nightwatch)
2018-05-07 12:31:07 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2019-10-07 14:29:07 +00:00
|
|
|
},
|
|
|
|
"browserslist": [
|
2019-11-13 09:47:13 +00:00
|
|
|
"last 2 Chrome major versions",
|
|
|
|
"last 2 Firefox major versions",
|
|
|
|
"last 2 Safari major versions",
|
|
|
|
"last 2 Edge major versions",
|
|
|
|
"last 2 Opera versions",
|
|
|
|
"last 2 iOS major versions",
|
|
|
|
"last 1 Explorer major version",
|
|
|
|
"last 1 ChromeAndroid version",
|
|
|
|
"last 1 UCAndroid version",
|
|
|
|
"last 1 Samsung version",
|
|
|
|
"last 1 OperaMini version",
|
|
|
|
"Firefox ESR"
|
2019-10-07 14:29:07 +00:00
|
|
|
]
|
2016-10-13 23:53:15 +00:00
|
|
|
}
|