Packaging as a theme

This commit is contained in:
Andre Cabrera
2020-07-06 04:45:16 -03:00
parent 8442ea46a2
commit d00907e9d8
6 changed files with 56 additions and 36562 deletions
+11 -10
View File
@@ -1,12 +1,13 @@
const ipfsPrefix = process.argv.find(val=> val === '--prefix-paths')
const ipfsPrefix = process.argv.find(val => val === "--prefix-paths")
console.log("DEBUG >> IM HERE")
const ipfsConfig =[
'gatsby-plugin-ipfs',
const ipfsConfig = [
"gatsby-plugin-ipfs",
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
start_url: '__GATSBY_IPFS_PATH_PREFIX__',
start_url: "__GATSBY_IPFS_PATH_PREFIX__",
name: `images`,
path: `${__dirname}/src/images`,
},
@@ -18,7 +19,7 @@ const ipfsConfig =[
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: '__GATSBY_IPFS_PATH_PREFIX__',
start_url: "__GATSBY_IPFS_PATH_PREFIX__",
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
@@ -31,12 +32,12 @@ const ipfsConfig =[
// `gatsby-plugin-offline`,
]
const normalConfig=[
const normalConfig = [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
start_url: '/',
start_url: "/",
name: `images`,
path: `${__dirname}/src/images`,
},
@@ -48,11 +49,11 @@ const normalConfig=[
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: '/',
start_url: "/",
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
// icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
@@ -67,6 +68,6 @@ module.exports = {
description: `A gatsbyjs app with adminlte2 integration.`,
author: `@gatsbyjs`,
},
pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__',
pathPrefix: "__GATSBY_IPFS_PATH_PREFIX__",
plugins: ipfsPrefix ? ipfsConfig : normalConfig,
}