[nodebb-plugin-finder] The plugin that finds and manages other plugins (Deprecated)
I'm pretty sure you can do
require('npm')and then execute things like installs and uninstalls, which may be way nicer than shelling out to the
I'll try to implement that in the next iteration
@julian It seems there was some sort of breaking change that I can't find any reference to anywhere in the docs or the forums that's causing my finder plugin to 404. I saw the deprecated staticDir -> staticDirs notice (which would be a breaking change in 0.5.0), but nothing of that magnitude for anything in 0.4.0. Is there a different, more updated way to declare the admin templates now?
Yeah defining routes changed quiet a bit, check out https://github.com/barisusakli/nodebb-plugin-imgur/blob/master/index.js#L22
Welcome back @BDHarrington7 Let me know if you need a hand with the upgrade, I just submitted a PR for @BarveyHirdman's plugin a few days ago if you want to have a look at it here: https://github.com/psychobunny/nodebb-plugin-emailer-local/commit/59044af4c068d5f9d909a5a1119b42c23ac18c26
Basically, we got rid of that convoluted way of declaring routes, and made it as if you were creating a route in any ordinary express app.
@psychobunny Thanks! I just moved to the SF bay area so I haven't been on the boards as much as I'd like to
I just updated the plugin to work with 0.4.x, now at version 0.0.5
Actually, something is still wrong... when I click on the Finder link in the ACP, I get some default plugins page (interested in writing plugins for NodeBB? etc... no plugins found). But if go right to the (exact) same address in the browser, or refresh, it works... What gives?
@BDHarrington7 Maybe related to this issue (look at the latest comments and if your URL isn't formed as I describe please add your example)
@psychobunny please reopen the issue if you didn't fix it since I've added more details... Thanks!
ah I see, okay re-opened