Skip to content

Commit

Permalink
feat: move config overrides for emulsify-core to their own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Callin Mullaney committed Mar 11, 2024
1 parent a4030c2 commit c99b564
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 1 deletion.
17 changes: 17 additions & 0 deletions whisk/config/emulsify-core/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": [
"../../node_modules/emulsify-core/.eslintrc.json"
],
"globals": {
"Drupal": true,
"drupalSettings": true,
"drupalTranslations": true,
"domready": true,
"jQuery": true,
"_": true,
"matchMedia": true,
"Backbone": true,
"Modernizr": true,
"CKEDITOR": true
}
}
5 changes: 5 additions & 0 deletions whisk/config/emulsify-core/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"../../node_modules/emulsify-core/.stylelintrc.json"
]
}
File renamed without changes.
18 changes: 18 additions & 0 deletions whisk/config/emulsify-core/webpack/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = (api) => {
api.cache(true);

const presets = [
[
'@babel/preset-env',
{
useBuiltIns: 'entry',
corejs: 3,
},
],
['minify', { builtIns: false }],
];

const comments = false;

return { presets, comments };
};
5 changes: 5 additions & 0 deletions whisk/config/emulsify-core/webpack/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const autoPrefixer = require('autoprefixer');

module.exports = {
plugins: [autoPrefixer()],
};
2 changes: 1 addition & 1 deletion whisk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint-fix": "npm run lint-js -- --fix; npm run lint-styles -- --fix",
"lint-js": "eslint --no-error-on-unmatched-pattern ./components",
"lint-staged": "lint-staged",
"lint-styles": "stylelint './components/**/*.scss'",
"lint-styles": "stylelint --config config/emulsify-core/.stylelintrc.json './components/**/*.scss'",
"prettier": "prettier --ignore-unknown \"./components/**/*.{js,yml,scss,md}\"",
"prettier-fix": "prettier --write --ignore-unknown \"./components**/*.{js,yml,scss,md}\"",
"storybook": "storybook dev -c node_modules/emulsify-core/.storybook --ci -s ../../../dist,../../../assets/images,../../../assets/icons -p 6006",
Expand Down

0 comments on commit c99b564

Please sign in to comment.