Skip to content

Commit 8b7577f

Browse files
committed
WDSBT-20 Add blocks folder to ignore
1 parent 1f8626c commit 8b7577f

11 files changed

+380
-216
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
blocks
12
build
23
node_modules
34
vendor

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ vendor/
2323

2424
# theme
2525
build/
26+
blocks/
2627

2728
#tests
2829
pa11y-ci-report/

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
blocks
12
build
23
node_modules
34
vendor

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
blocks/
12
build/
23
node_modules/
34
vendor/

.stylelintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
blocks/
12
build/
23
vendor/
34
node_modules/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"wp-coding-standards/wpcs": "^3.1.0"
3434
},
3535
"scripts": {
36-
"phpcs": "./vendor/bin/phpcs --report=summary,source",
36+
"phpcs": "./vendor/bin/phpcs --report=full,source",
3737
"phpcs-fix": "./vendor/bin/phpcbf --report=summary,source"
3838
}
3939
}

inc/hooks/enqueue-block-stylesheet.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function enqueue_block_styles() {
8686
* @return array An array containing information about block stylesheets.
8787
*/
8888
function get_block_stylesheets() {
89-
$css_dir = get_stylesheet_directory() . '/assets/css';
89+
$css_dir = get_stylesheet_directory() . '/build/css';
9090
$exclude_stylesheets = array( 'style.css', 'style-rtl.css' );
9191

9292
$css_files = array_diff(
@@ -101,10 +101,10 @@ function ( $css_file ) use ( $css_dir ) {
101101

102102
$block_name = $matches[1] . '/' . $matches[2];
103103

104-
return [
104+
return array(
105105
'path' => $css_file,
106-
'src' => str_replace( $css_dir, get_stylesheet_directory_uri() . '/assets/css', $css_file ),
107-
];
106+
'src' => str_replace( $css_dir, get_stylesheet_directory_uri() . '/build/css', $css_file ),
107+
);
108108
},
109109
$css_files
110110
);

inc/setup/preload-scripts.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)