You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.1 KiB
99 lines
3.1 KiB
{ |
|
"name": "Olivero", |
|
"engines": { |
|
"yarn": ">= 1.6", |
|
"node": ">= 12.0" |
|
}, |
|
"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:css": "stylelint \"**/*.css\"", |
|
"lint:css-checkstyle": "stylelint \"**/*.css\" --custom-formatter ./node_modules/stylelint-checkstyle-formatter/index.js", |
|
"prettier": "prettier --write \"./**/*.es6.js\" \"./tests/Drupal/Nightwatch/**/*.js\"" |
|
}, |
|
"devDependencies": { |
|
"@babel/core": "^7.0.0", |
|
"@babel/preset-env": "^7.0.0", |
|
"@babel/register": "^7.7.7", |
|
"babel-plugin-add-header-comment": "^1.0.3", |
|
"chalk": "^4.1.0", |
|
"chokidar": "^3.3.1", |
|
"chromedriver": "^87.0.0", |
|
"cross-env": "^7.0.2", |
|
"cspell": "^4.0.63", |
|
"dotenv-safe": "^8.2.0", |
|
"eslint": "^7.10.0", |
|
"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": "^4.1.2", |
|
"glob": "^7.1.2", |
|
"minimist": "^1.2.2", |
|
"mkdirp": "^1.0.4", |
|
"postcss": "^7.0.18", |
|
"postcss-calc": "^7.0.1", |
|
"postcss-header": "^2.0.0", |
|
"postcss-import": "^12.0.1", |
|
"postcss-preset-env": "^6.7.0", |
|
"postcss-pxtorem": "^5.1.1", |
|
"postcss-url": "^8.0.0", |
|
"prettier": "^2.1.2", |
|
"stylelint": "^13.0.0", |
|
"stylelint-checkstyle-formatter": "^0.1.1", |
|
"stylelint-config-standard": "^20.0.0", |
|
"stylelint-no-browser-hacks": "^1.2.1", |
|
"stylelint-order": "^4.0.0", |
|
"terser": "^5.3.4" |
|
}, |
|
"//": "'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 |
|
} |
|
] |
|
] |
|
} |
|
} |
|
}, |
|
"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" |
|
] |
|
}
|
|
|