Skip to content

Commit

Permalink
Add jQuery slick carousel functionality on front end
Browse files Browse the repository at this point in the history
The @wordpress/scripts package above version 21.0.2 doesn't extend the default config entries in webpack config file. Instead, the custom entry points will replace all of the default entries. The issue is described here WordPress/gutenberg#38739 .

It is appeared that the issue is marked as closed but the problem still persists. This commit downgrades the @wordpress/scripts back to 21.0.2 to allow custom entry build points.
  • Loading branch information
thongtr-dev committed Nov 3, 2022
1 parent 949eb47 commit a829487
Show file tree
Hide file tree
Showing 17 changed files with 2,794 additions and 980 deletions.
89 changes: 43 additions & 46 deletions build/block.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/related-post-slider-block",
"version": "1.0.0",
"title": "Related Post Slider Block",
"category": "widgets",
"icon": "list-view",
"description": "Add related post slider block.",
"supports": {
"html": false,
"align": [
"full",
"wide"
]
},
"attributes": {
"display": {
"type": "object",
"default": {
"displayFeaturedImage": true,
"displayCategory": true,
"displayMeta": true,
"displayExcerpt": true,
"displayDotsIndicator": true,
"displayArrowsIndicator": true,
"displayReverseOrder": false
}
},
"excerptLength": {
"type": "number",
"default": 125
},
"totalPostsToShow": {
"type": "number",
"default": 9
},
"postsPerSlide": {
"type": "number",
"default": 3
}
},
"textdomain": "related-post-slider-block",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
}
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/related-post-slider-block",
"version": "1.0.0",
"title": "Related Post Slider Block",
"category": "widgets",
"icon": "list-view",
"description": "Add related post slider block.",
"supports": {
"html": false,
"align": ["full", "wide"]
},
"attributes": {
"display":{
"type":"object",
"default": {
"displayFeaturedImage": true,
"displayCategory": true,
"displayMeta": true,
"displayExcerpt": true,
"displayDotsIndicator": true,
"displayArrowsIndicator": true,
"displayReverseOrder": false
}
},
"excerptLength": {
"type":"number",
"default": 125
},
"totalPostsToShow": {
"type": "number",
"default": 9
},
"postsPerSlide": {
"type": "number",
"default": 3
}
},
"textdomain": "related-post-slider-block",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./index.css"
}
1 change: 1 addition & 0 deletions build/frontend.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('jquery'), 'version' => '44df66d9a98681851435');
1 change: 1 addition & 0 deletions build/frontend.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '2d8b6a6c0de8ecaf0558');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'dd1e835bedef436d61e1');

0 comments on commit a829487

Please sign in to comment.