![]() I haven’t needed it yet, and found Browserify to be easier to configure and use, even though it’s a bit on the slow side.Īs I was building ScoutDocs and tweaking my dev tools, tweaking my Grunt file, and writing code to search/replace strings etc, I began to feel like the time I was spending too much time on tooling. I recommend you avoid it until you need it. After deliberating between Webpack and Browserify, I chose Browserify. Next, I had to choose a JS bundler which would let me write and use modular code that gets pulled together into a browser-executable bundle. It’s okay to keep your task runner setup. You’re learning a lot of new things already. Use a task runner you are already comfortable with. You have decisions to make, and you will find fierce advocates for various solutions.įor ScoutDocs, I decided to go with Grunt for task running, because I was already comfortable with it, and I needed it for grunt-wp-deploy. ![]() Babel, NPM, Webpack, Browserify, Gulp, Grunt, Uglify, Uglifyify (yes, you read that right), and more. This can involve using a complex maze of tools. Browsers agree, so your JSX-containing JS code will have to be transpiled to regular JavaScript. What is ScoutDocs? ScoutDocs is a WordPress plugin that adds simple file-sharing to your WordPress site.Ĭoding in React involves JSX, a bizarre-but-wonderful XML syntax that you dump directly into the middle of your JavaScript code. That’s it for version 3.0, but I’ll have more to announce soon - stay tuned! CommentĬontinuing my series about ScoutDocs and the process of building it, this week I’m talking about Build Tools. Hover the “link” icon to see where it’s pointing. If you want to grab the “local” short URL (which will be redirected to your chosen URL when someone visits it), just click “Copy Short URL” from the actions, and it’ll be in your clipboard. The “link” icon means that this item has been pointed elsewhere. When hovered, the link icon will reveal the destination URL for a quick view. From there, you can Save Draft or Publish.Īdditionally, this release includes a “link” indicator on post and page list screens, so you can easily see what items have been re-pointed with Page Links To. Since short URLs are better for sharing (and remembering), the UI will give you a little push to shorten the URL if the one generated from your title is too long. It’s super fast, and it doesn’t redirect you away from the screen you’re on. You’ll now find a menu item “Add Page Link” that will allow you to quickly add a redirected Page without having to wait for the entire WordPress post editing interface to load. All you really need to create a redirect is a title, a destination URL, and a local short URL. ![]() But in order to create these redirects, you have to go through the cluttered and sometimes slow post creation screen. summer-sale instead of /store/specials.aspx?season=summer&_utm_source=internal. For example, they might have a really long URL on their own site or someone else’s site that they want to be nice. ![]() One of the most interesting things I found was how many people are using it for URL redirects. Last month, I received survey responses from over 800 Page Links To users and learned a lot about how it’s being put to work. ![]() To celebrate its transition to a teenager, I’ve added some new features and UI enhancements. Tomorrow, this plugin will have been in the Plugin Directory for 13 years (it was the 339th plugin in the WordPress plugin repository there are now over 75,000!). Today I pushed an update to my redirect and repointing plugin, Page Links To. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |