Skip to content

Instantly share code, notes, and snippets.

View iFlameing's full-sized avatar
🎯
Focusing

Alok Kumar iFlameing

🎯
Focusing
View GitHub Profile
@iFlameing
iFlameing / config-overrides.js
Last active February 3, 2020 14:35
Config-overrides
const WorkboxWebpackPlugin = require('workbox-webpack-plugin')
module.exports = function override(config, env) {
config.plugins = config.plugins.map(plugin => {
if(plugin.constructor.name === 'GenerateSW') {
return new WorkboxWebpackPlugin.InjectManifest({
swSrc: './src/sw.js',
swDest: 'service-worker.js'
})

Frontend Masters—Deploying Full Stack: Node.js & React on AWS

You should have the following completed on your computer before the workshop:

  • Have Node.js installed on your system. (Recommended: Use nvm.)
    • Unfortunately, you'll need to be on Node 9.x or earlier. Dependencies are hard and one of the dependencies of one of our dependencies is set to not allow Node 10.x.
    • Install yarn with brew install yarn.
  • Create an AWS account. (This will require a valid credit card.)
  • Install multi-factor authentication app (e.g. Authy, Google Authenticator, Duo).
  • Install the AWS CLI. (brew install awscli should do the trick. Otherwise, you'll need Python and PIP, which you can install using brew install python.)
{"created": [{"@id": "http://localhost:8080/Plone/profile.jpeg", "parent": {"@id": "http://localhost:8080/Plone"}}]}

Final Report For Google Summer Of Code 2019

GatsbyJs Preview For Plone CMS

Gatsby is a blazing fast static site generator for React. gatsby-source plugin is a Gatsby plugin that pulls the whole content tree from the plone.restapi and makes it available for querying via GraphQL in a hierarchical data structure, handling all native content types including images and files.Now gatsby-source-plugin has a new feature by which user can see the instant update of site whenever they make changes to the Plone CMS. gatsby-source-plugin supports all features of live updates i.e Create mode, modified mode and Delete mode. If you make any these event in Plone CMS you can see instant update into your hosted site.

gatsby-source-plugin has all the documentation we needed to get started with your wonderful project. We also have gatsby-starter-plone and gatsby-theme-plone . Currently gatsby-theme-plone is in alpha phase.

Get the code

The plugin is used to pull data from a Plone site and r

const path = require('path')
const rules = [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader']
}
]