Skip to content

Commit

Permalink
Bud v5.2.0 (#2959)
Browse files Browse the repository at this point in the history
* chore(deps): Bump @roots/bud to v5.2.0

* lockfile

* remove `setPublicPath`

* suggestions (#2961)

* suggestions

* unneccessary

Co-authored-by: Kelly Mears <[email protected]>
  • Loading branch information
retlehs and kellymears authored Jan 26, 2022
1 parent f63033e commit 60e4c24
Show file tree
Hide file tree
Showing 7 changed files with 550 additions and 364 deletions.
50 changes: 1 addition & 49 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,52 +1,4 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:react/recommended'],
globals: {
wp: true,
},
env: {
node: true,
es6: true,
amd: true,
browser: true,
jquery: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
globalReturn: true,
generators: false,
impliedStrict: true,
objectLiteralDuplicateProperties: false,
jsx: true,
},
ecmaVersion: 2017,
requireConfigFile: false,
sourceType: 'module',
},
plugins: ['import', 'react-hooks'],
settings: {
react: {
version: 'detect',
},
'import/core-modules': [],
'import/ignore': [
'node_modules',
'\\.(coffee|scss|css|less|hbs|svg|json)$',
],
},
rules: {
'no-console': 0,
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
},
extends: [require.resolve('@roots/sage/eslint-config')],
};
44 changes: 4 additions & 40 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
{
"extends": "stylelint-config-standard",
"rules": {
"string-quotes": null,
"selector-class-pattern": null,
"declaration-colon-newline-after": null,
"value-list-comma-newline-after": null,
"no-empty-source": null,
"no-descending-specificity": null,
"at-rule-empty-line-before": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"tailwind",
"apply",
"responsive",
"variants",
"screen",
"function",
"use",
"forward",
"layer"
]
}
]
}
"extends": [
"@roots/sage/stylelint-config",
"@roots/bud-tailwindcss/stylelint-config"
]
}
12 changes: 3 additions & 9 deletions bud.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/**
* @typedef {import('@roots/bud').Bud} Bud
* @typedef {import('@roots/bud').Bud} bud
*
* @param {Bud} app
* @param {bud} app
*/

module.exports = (app) =>
app
/**
Expand Down Expand Up @@ -37,9 +36,4 @@ module.exports = (app) =>
*
* This is your local dev server.
*/
.proxy('http://example.test')

/**
* Public path of application assets
*/
.setPublicPath('/app/themes/sage/public/');
.proxy('http://example.test');
15 changes: 15 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "commonjs",
"moduleResolution": "node",
"paths": {
"@scripts/*": ["./resources/scripts/*"],
"@styles/*": ["./resources/styles/*"]
},
"target": "es5"
},
"exclude": ["./public"]
}
27 changes: 8 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,12 @@
"test": "npm run lint"
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.5",
"@roots/bud": "^5.1.0",
"@roots/bud-eslint": "^5.1.0",
"@roots/bud-postcss": "^5.1.0",
"@roots/bud-prettier": "^5.1.0",
"@roots/bud-stylelint": "^5.1.0",
"@roots/bud-tailwindcss": "^5.1.0",
"@roots/sage": "^5.1.0",
"@wordpress/browserslist-config": "4.1.0",
"eslint": "8.6.0",
"postcss": "8.4.5",
"postcss-import": "14.0.2",
"postcss-nested": "5.0.6",
"postcss-preset-env": "7.1.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"tailwindcss": "3.0.8",
"prettier": "2.5.1"
"@roots/bud": "^5.2.0",
"@roots/bud-eslint": "^5.2.0",
"@roots/bud-postcss": "^5.2.0",
"@roots/bud-prettier": "^5.2.0",
"@roots/bud-stylelint": "^5.2.0",
"@roots/bud-tailwindcss": "^5.2.0",
"@roots/sage": "^5.2.0"
}
}
}
23 changes: 0 additions & 23 deletions tsconfig.json

This file was deleted.

Loading

0 comments on commit 60e4c24

Please sign in to comment.