Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
gatsby-source-plone
Advanced tools
Source plugin for pulling data into Gatsby from Plone sites using plone.restapi.
npm install --save gatsby-source-plone
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-source-plone`,
},
];
You can query nodes created from Plone like the following:
{
allPloneDocument {
edges {
node {
title
description
text {
data
}
...
}
}
}
}
or
{
allPloneNewsItem {
edges {
node {
title
description
...
}
}
}
}
Checkout sources from github:
git clone git@github.com:collective/gatsby-source-plone.git
Make sure you use the latest NodeJS LTS version (currently 8.11.1). We recommend to use nvm for local development.
We use Docker for handling the backend plone.restapi, and so it's required to have docker-compose installed.
Build project frontend:
make purge # if you already put some data into plone site
make init-backend # Feeding automatic data into the plone site
make build # this command build the frontend for this plugin
you will see a site running at localhost:8000 similar to https://collective.github.io/gatsby-source-plone/
Watch changes in Gatsby development mode:
make watch
Build Gatsby:
make build
Serve Gatsby build:
make serve
Stop Plone API server (started by any of the above):
make stop-backend
Clean everything and reset the environment:
make purge
Run unit tests:
make test
Watch unit tests:
make watch-test
Run both unit tests and acceptance tests:
make test-all
This command will automatically fire up the Plone backend, build and start Gatsby and the execute the selenium-based acceptance tests.
Acceptance tests depend on currently available Plone backend content. Ensure that your Plone backend includes also the tested content with:
make import-fixture
or replace Plone backend content with the test data with:
make init-backend
Publish Markdown docs at ./docs
into Plone backend with:
make publish-to-backend
and export Plone backend data into importable fixture (for CI) with:
make export-fixture
This project uses Prettier for code formatting, the .prettierrc
file contains the requisite custom settings the project
It's recommended that you setup Format on Save so that your editor takes care of this automatically for you. In Visual Studio Code this can be setup in project by adding the following to your Workspace settings (or in .vscode/settings.json
), while having the VSCode plugin for Prettier installed:
{
"editor.formatOnSave": true
}
0.3.0 - 2020-11-20
Add support for Volto blocks
by transforming them into GraphQL-compatible array of blocks in order with JSON config
attribute and blocks_nodes
with linked nodes parsed from Volto blocks. @datakurre
Add configuration option transientTypes: string[]
for transient types (default: [ 'Collection' ]
to be updated regardless of their changes. @datakurre
FAQs
Source plugin for pulling data into Gatsby from Plone sites
The npm package gatsby-source-plone receives a total of 9 weekly downloads. As such, gatsby-source-plone popularity was classified as not popular.
We found that gatsby-source-plone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.