Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate project to wp-scripts and fix lodash deps #269

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

thedebian
Copy link
Contributor

Fixes #267

Changes proposed in this Pull Request

  • Migrate project from cgb-scripts to wp-scripts
  • Fix lodash deps

Testing instructions

  • Checkout the project
  • npm run build
  • Create a new post and add a syntaxhighlighter/code block
  • ✅ Should work
  • Play with it a bit and check preview
  • ✅ Should work
  • Install the plugin from the generated zip file and do the same test procedure
  • ✅ Should work

@thedebian thedebian self-assigned this Nov 22, 2023
@thedebian thedebian requested a review from a team November 22, 2023 11:51
Copy link

@jgcaruso jgcaruso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the installed plugin and it continues to work! No console errors noticed.

Comment on lines +63 to +66
let itemClassNames = 'syntaxhighlighter-toolbar-dropdown__option';
if ( isSelected ) {
itemClassNames += ' is-selected';
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious why classnames needed to be removed? Personally I think its cleaner to use that instead of manual string building, from a readability perspective.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was in order to clean up dependencies for things marginally used, seems a bit overkill to use a 3rd party npm package to do a string concatenation ... once 😅

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once

Good point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntaxhighlighter block broken on Wordpress 6.4.1
2 participants