2.1.5 • Published 4 months ago
gatsby-plugin-relative-ci v2.1.5
gatsby-source-packagist
Integrate Packagist(PHP package repository) with gatsby GraphQL data schema. Configure your search query in the plugin config and access the reults in GraphQL!
Config
{
resolve: 'gatsby-source-packagist',
options: {
query: {
// See API client docs for search params:
// https://moonmeister.github.io/packagist-api-client/modules/_search_.html#search
name: 'wp-graphql'
},
// This objec tis passed to the Github Rest API client when it's created.
// More Info: https://octokit.github.io/rest.js/v17#usage
githubApi: {
auth: 'GitHubToken'
}
}
},
Data
Access the data via 'packagistPackage' and 'allPackagistPackage' graphql data types.
Example query:
{
allPackagistPackage {
totalCount
nodes {
name
description
url
repository
downloads
favers
readmeFile {
# here you can access the Repositories Readme file.
# Currently only github repositories are supported
# if you have a markdown transformer installed that
# should make `childMarkdownRemark` available to embed in your site.
}
}
}
}
Contibutions
There's lots of features that could be added to this and bugs to be found, please open issues and PRs as you see fit.
2.1.5
4 months ago
2.1.4
7 months ago
2.1.2
1 year ago
2.1.3
1 year ago
2.1.1
2 years ago
2.1.0
2 years ago
2.0.4
2 years ago
1.4.4
2 years ago
1.4.3
2 years ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.4.2
3 years ago
1.4.1
3 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.4.0
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago
0.0.1
4 years ago