-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 fix(patch): update @roots/sage/stylelint (#2607)
Update: `@roots/sage/stylelint` config Adds: `examples/sage-with-stylelint` The conf change is here: https://github.com/roots/bud/compare/main...fix-2605-stylelint-error?body=&expand=1#diff-73c6bd3eb14f934c85b687f68cd04d88dbf07e9608422f988014e70fac148eb5 ## Type of change **PATCH: backwards compatible change** @chrillep does this seem right to you?
- Loading branch information
1 parent
15037dd
commit 38e8844
Showing
19 changed files
with
173 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/node_modules | ||
/vendor | ||
/public | ||
.env | ||
npm-debug.log | ||
yarn-error.log | ||
/storage/bud/**/* | ||
theme.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: [ | ||
'@roots/sage/config/stylelint', | ||
'@roots/bud-tailwindcss/stylelint', | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {bud} from '@roots/bud' | ||
|
||
bud | ||
.entry({ | ||
app: ['@scripts/app', '@styles/app'], | ||
editor: ['@scripts/editor', '@styles/editor'], | ||
}) | ||
.copyDir('images') | ||
.watch(['resources/views/*.blade.php']) | ||
.serve(3000) | ||
.proxy('http://example.test') | ||
|
||
bud.wp.json | ||
.useTailwindColors('extend') | ||
.useTailwindFontFamily() | ||
.useTailwindFontSize() | ||
.useTailwindSpacing() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "@examples/sage-with-stylelint", | ||
"$schema": "https://bud.js.org/bud.package.json", | ||
"private": true, | ||
"type": "module", | ||
"browserslist": [ | ||
"extends @roots/browserslist-config" | ||
], | ||
"devDependencies": { | ||
"@roots/bud": "workspace:*", | ||
"@roots/bud-stylelint": "workspace:*", | ||
"@roots/bud-tailwindcss": "workspace:*", | ||
"@roots/sage": "workspace:*" | ||
} | ||
} |
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {main} from '@scripts/components/main.js' | ||
|
||
const init = () => | ||
window.requestAnimationFrame(function ready() { | ||
return document.body ? main() : window.requestAnimationFrame(ready) | ||
}) | ||
|
||
init() | ||
|
||
if (import.meta.webpackHot) { | ||
import.meta.webpackHot.accept('./components/main.js', init) | ||
} |
7 changes: 7 additions & 0 deletions
7
examples/sage-with-stylelint/resources/scripts/components/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const main = () => { | ||
document.body.classList.contains('no-js') && | ||
document.body.classList.remove('no-js') | ||
|
||
document.body.classList.add(`text-xl`) | ||
document.body.classList.add(`text-custom`) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import '@wordpress/edit-post' | ||
|
||
import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks' | ||
import domReady from '@wordpress/dom-ready' | ||
|
||
domReady(() => { | ||
unregisterBlockStyle('core/button', 'outline') | ||
|
||
registerBlockStyle('core/button', { | ||
name: 'outline', | ||
label: 'Outline', | ||
}) | ||
}) | ||
|
||
if (import.meta.webpackHot) { | ||
import.meta.webpackHot.accept(console.error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import 'tailwindcss/base'; | ||
|
||
@import 'common/global'; | ||
|
||
@import 'tailwindcss/components'; | ||
@import 'tailwindcss/utilities'; | ||
|
||
body { | ||
background: url('@src/images/logo.svg?inline') no-repeat; | ||
} |
9 changes: 9 additions & 0 deletions
9
examples/sage-with-stylelint/resources/styles/common/global.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
body { | ||
@apply font-sans text-custom; | ||
} | ||
|
||
#root { | ||
@apply font-medium text-indigo-500 text-xl; | ||
|
||
background: url("~@images/image.jpeg"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.block-editor-block-list__layout { | ||
@apply font-sans; | ||
} | ||
|
||
.wp-block { | ||
@apply max-w-screen-md; | ||
|
||
&.editor-post-title__block .editor-post-title__input { | ||
@apply font-sans; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export default { | ||
content: ['resources/**/*.{js,css,html}'], | ||
theme: { | ||
extend: { | ||
colors: { | ||
brand: { | ||
gray: '#f7fafc', | ||
}, | ||
}, | ||
fontFamily: { | ||
sans: ['Inter', 'sans-serif'], | ||
}, | ||
fontSize: { | ||
xl: '1.25rem', | ||
custom: '.625rem', | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "@roots/bud/config/tsconfig.json", | ||
"compilerOptions": { | ||
"paths": { | ||
"@src/*": ["./src/*"] | ||
}, | ||
"types": ["@roots/bud", "@roots/bud-preset-wordpress", "@roots/bud-stylelint", "@roots/sage"] | ||
}, | ||
"files": ["bud.config.js"], | ||
"include": ["./src"], | ||
"exclude": ["./dist"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters