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

Add support for local plugins #22

Closed
mattbrailsford opened this issue Oct 28, 2018 · 3 comments
Closed

Add support for local plugins #22

mattbrailsford opened this issue Oct 28, 2018 · 3 comments

Comments

@mattbrailsford
Copy link
Contributor

I'm working on a source plugin and it took a little while to get it working. Ultimately I couldn't get require.resolve to resolve my plugin in a local plugins folder. In the end, I had to set my plugins use parameter to ../../../../src/plugins/source-umbraco to work.

Would be good if there was a nice way to be able to include local plugins as well as ones installed via NPM

hjvedvik added a commit that referenced this issue Nov 8, 2018
@hjvedvik
Copy link
Member

I'm surprised you got it working :) gridsome@0.3.0 was just published and should make this much easier. There is also some documentation about it here. Version 0.3 also makes it possible to use the plugin API directly from a gridsome.server.js file on root in your project. That allows you to fetch data from Umbraco without using plugins. Check out the new Data Store API.

You can also follow the How to contribute if you want to create a @gridsome/source-umbraco plugin. The repository uses Yarn workspaces to resolve local packages.

@VincentPFG
Copy link

Page not found and no mention of local plugins usage in the documentation anymore :/

@josepjaume
Copy link

It looks like you can use ~/plugins/whatever if you have plugins/whatever in your project's root path :)

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

No branches or pull requests

4 participants