-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add meta refresh plugin package #43
Conversation
I am not sure when I'll have time to do this as well unfortunately. What i have in mind is to convert the repo to a monorepo that can host multiple packages (tall core and various plugins). Meanwhile i published the changes as v5 and added an example in the docs inspired by your use case. Let me know if that's useful for a provisory solution |
Got it, ok understood. I'll see if I have any time until the end of the year. Eventually I think this following of the |
@lmammino just looking at this again now, would you be open to having this live in this https://github.com/lmammino/tall repository? eg. either:
|
Yes, i'd be interested in having the plugin as part of this repo and I think it's best to convert this to a monorepo and publish the plugin as a separate package (mostly because i expect that plugin to be dependency heavy) |
Ok, then if you would do the change to turn the repo into a monorepo, I'm open to doing the implementation of the plugin (including researching for minimal libraries which can do this or to look into building a mini-parser, as noted above) |
Awesome. Right now (based on some quick research) I have the feeling that going with htmlparser2 would be the best compromise in terms of simplicity and performance. Feel more than welcome to disagree if you have seen other interesting solutions :) |
Yeah, I've landed on |
Ok so I may have some time to work on this in the coming days, @lmammino would you have time to move this to a monorepo before I get started with that? |
@lmammino or if you think that you have time to get the monorepo conversion done later, just let me know. |
Done now, let me know if the new structure makes sense to you. What I am thinking is that we can create a new folder there called |
Cool, thanks for this! Do you think that it makes sense to follow the convention of adding all the packages in a |
We could technically organise things as we want. We could keep the current structure and create a subfolder for all the plugins:
We would just need to update the main {
"workspaces": ["core", "plugins/http-equiv"]
} What do you think? If you have strong feelings and prefer to go with the standard approach, I am ok with that too... it shouldn't take too long to do a refactoring... |
Not sure I would describe them as strong feelings towards using the conventional
If you want a distinction of whether a package is a plugin, this seems reasonable - the name of the package directory (the directory contained within |
@lmammino thoughts on my comment above? |
Happy to go with a more standard approach. I won't be able to do these changes myself in the next week though. Would you be able to submit a PR? |
I took a first shot at moving the files here: #51 I named the new folder in Maybe you can approve the GitHub Actions workflow runs and we can see whether I messed anything up |
Nice, great, thanks for the merge! I'll rebase and start implementing the plugin with |
Ok I opened some new PRs:
And then, based on that, I created 2f22219 with the first version of the plugin using Is this what you had in mind? |
npm workspaces cannot yet order the builds of the workspace packages in the correct (topological) order: - npm/cli#4139 - npm/cli#3034 (comment) - npm/statusboard#517
Codecov Report
@@ Coverage Diff @@
## main #43 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 2 +1
Lines 35 53 +18
Branches 5 10 +5
=========================================
+ Hits 35 53 +18
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
restore-keys: | | ||
nodeModules- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed these to avoid restoring the node_modules
cache for other versions of Node.js - this can sometimes lead to weird build errors when native modules need to be built differently for different versions of Node.js
Co-authored-by: Karl Horky <karl.horky@gmail.com>
🚀🚀 |
Add meta refresh plugin package to follow redirects in
<meta http-equiv="refresh">
tagsCloses #42