No description
  • JavaScript 93.7%
  • Sass 6.3%
Find a file
2020-01-07 23:48:25 -06:00
.dependabot update dependabot config 2019-09-03 21:32:12 -04:00
lambda remove netlify-lambda for Netlify Dev (#274) 2019-09-26 09:59:02 +03:00
src Added content. Changed title, etc. Initial up. 2020-01-07 23:48:25 -06:00
static Added content. Changed title, etc. Initial up. 2020-01-07 23:48:25 -06:00
.gitignore Integrate CMS build system and create initial preview templates 2017-12-06 22:12:52 -08:00
_headers Added netlify _header settings for static folder 2019-02-15 09:38:00 +02:00
gatsby-config.js Updated README and settings 2020-01-07 21:45:43 -06:00
gatsby-node.js Gatsby image w/preview compat (#122) 2018-11-01 10:51:04 -04:00
LICENSE first commit 2017-10-18 17:43:20 -04:00
netlify.toml Netlify function support (init. version) 2019-02-28 10:23:07 +02:00
package.json Added content. Changed title, etc. Initial up. 2020-01-07 23:48:25 -06:00
README.md Cleaned up template docs 2020-01-07 21:54:12 -06:00
renovate.json update renovate config 2019-09-03 20:36:46 -04:00
yarn.lock Added content. Changed title, etc. Initial up. 2020-01-07 23:48:25 -06:00

robbynshaw.com

Netlify Status

Getting Started

$ yarn
$ netlify dev # or ntl dev

This uses the new Netlify Dev CLI feature to serve any functions you have in the lambda folder.

CMS

To test the CMS locally, you'll need run a production build of the site:

$ npm run build
$ netlify dev # or ntl dev

CMS is found at /admin/

Available scripts

build

Build the static files into the public folder, turns lambda functions into a deployable form.

Usage

$ yarn build

clean

Runs gatsby clean command.

Usage

yarn clean

netlify dev

Starts the netlify dev environment, including the gatsby dev environment. For more infor check the Netlify Dev Docs

netlify dev

develop or start

Runs the clean script and starts the gatsby develop server using the command gatsby develop. We recomend using this command when you don't need Netlify specific features

Usage

yarn develop

test

Not implmented yet

Usage

yarn test

format

Formats code and docs according to our style guidelines using prettier

Usage

yarn format

Tech Stack

Prerequisites

Media Libraries (installed, but optional)

Media Libraries have been included in this starter as a default. If you are not planning to use Uploadcare or Cloudinary in your project, you can remove them from module import and registration in src/cms/cms.js. Here is an example of the lines to comment or remove them your project.

import CMS from 'netlify-cms-app'
// import uploadcare from 'netlify-cms-media-library-uploadcare'
// import cloudinary from 'netlify-cms-media-library-cloudinary'

import AboutPagePreview from './preview-templates/AboutPagePreview'
import BlogPostPreview from './preview-templates/BlogPostPreview'
import ProductPagePreview from './preview-templates/ProductPagePreview'
import IndexPagePreview from './preview-templates/IndexPagePreview'

// CMS.registerMediaLibrary(uploadcare);
// CMS.registerMediaLibrary(cloudinary);

CMS.registerPreviewTemplate('index', IndexPagePreview)
CMS.registerPreviewTemplate('about', AboutPagePreview)
CMS.registerPreviewTemplate('products', ProductPagePreview)
CMS.registerPreviewTemplate('blog', BlogPostPreview)

Note: Don't forget to also remove them from package.json and yarn.lock / package-lock.json using yarn or npm. During the build netlify-cms-app will bundle the media libraries as well, having them removed will save you build time. Example:

yarn remove netlify-cms-media-library-uploadcare

OR

yarn remove netlify-cms-media-library-cloudinary