-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
101 lines (101 loc) · 3.61 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"scripts": {
"build": "yarn build:css & yarn build:js",
"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",
"build:js": "cross-env BABEL_ENV=legacy node ./scripts/js/babel-es6-build.js",
"build:js-dev": "cross-env NODE_ENV=development BABEL_ENV=legacy node ./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",
"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 \"**/*.pcss.css\"",
"lint:css-checkstyle": "stylelint \"**/*.pcss.css\" --custom-formatter ./node_modules/stylelint-checkstyle-formatter/index.js",
"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\""
},
"browserslist": [
"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"
],
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.7.7",
"autoprefixer": "^9.6.1",
"babel-plugin-add-header-comment": "^1.0.3",
"chalk": "^3.0.0",
"chokidar": "^3.3.1",
"chromedriver": "^79.0.0",
"cross-env": "^6.0.3",
"dotenv-safe": "^8.2.0",
"eslint": "^6.7.2",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.10.0",
"eslint-plugin-react-hooks": "^1.7.0",
"glob": "^7.1.2",
"minimist": "^1.2.2",
"mkdirp": "^0.5.1",
"nightwatch": "^1.2.1",
"postcss": "^7.0.18",
"postcss-calc": "^7.0.1",
"postcss-custom-media": "^7.0.8",
"postcss-custom-properties": "^9.0.2",
"postcss-header": "^2.0.0",
"postcss-import": "^12.0.1",
"postcss-nested": "^4.1.2",
"postcss-rtl": "^1.5",
"postcss-pxtorem": "^5.1.1",
"prettier": "^1.14.0",
"stylelint": "^13.0.0",
"stylelint-checkstyle-formatter": "^0.1.1",
"stylelint-config-standard": "^19.0.0",
"stylelint-no-browser-hacks": "^1.2.1",
"stylelint-order": "^4.0.0",
"terser": "^4.4.3"
},
"//": "'development is the default environment, and legacy is for transpiling the old jQuery codebase",
"babel": {
"env": {
"development": {
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs",
"targets": {
"node": "current"
}
}
]
]
},
"legacy": {
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
]
}
}
}
}