Beaker Plugins. Scan 'app/node_modules', instead of using global modules? #56
Comments
|
Sorry, yes, the documentation is wrong. I'll update it. Originally the plugins were located in |
|
Doc is updated |
For compiling on OSX? Or on other platforms? The fork has compiled successfully on my osx el cap, but I don't have the facilities to check windows or linux at the mo. |
|
There are two issues
So, that's why I went with the global install. With all that said, issue #52 is slated for the next release, and I plan to start on it this week. That will provide a GUI for managing the plugins, and non-devs wont have to touch the CLI at all, solving issue 2, above. (Devs will still need to npm link their plugin while working on it, so we could output the node_modules' path in the GUI for them.) With the GUI solving issue 2, what might work best is, to use a node_modules in the app's |
|
Ahaaa. Okay, I was looking at plugins purely as a dev setup, installed before building a final dist. I didn't realise this was going to be aimed at end users needing to install at their leisure! (which is great 👍 ). Riiight. Then yeh, my changes will only work for developers, pre-build. #52 should be a great help then for users, and I'll close this issue then as the docs are updated and my idea isn't really suited to what you're aiming for here. Thanks for clarifying, @pfrazee ! |
I've been starting with the excellent new plugin setup, but ran into a stumbling block just now. I'm not sure if it's really a bug or just a documentation fix... so I thought I'd ask before firing off a PR.
The problem I had developing was the use of
globalModules, when scanning for plugins.It's noted:
So I was firing in with a plugin in that folder.. but it wasn't being found. I did some digging and then remembered this bit:
I was also a bit confused as
datandipfswere running, even though I didn'tnpm i -gthose plugins.Anywhooo. This could be as simple as addressing the protocol plugin documentation just to make it clear that things should be global, but I was wondering about the use of
global-modules, is there a reason you didn't want to reference theapp/node_modulesfolder itself and use the plugins as installed there?I think it would be cleaner to use only the modules as specified in the
app/package.json. I have a fork of this utilisingapp/node_modulessetup and working, I can happily PR that.The text was updated successfully, but these errors were encountered: