Skip to content

Commit 0b10265

Browse files
authored
Update Starter to Use Decap CMS (#910)
* Reference new Decap CMS packages * Update media package references
1 parent 588ebfc commit 0b10265

File tree

7 files changed

+15998
-30348
lines changed

7 files changed

+15998
-30348
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bootstrap and run the development server using `yarn develop`.
1414
Since this starter using the [netlify-dev](https://www.netlify.com/products/dev/#how-it-works), there could be further issues you, please check the [netlify-dev](https://github.com/netlify/netlify-dev) repository for further information and set up questions.
1515

1616
```sh
17-
$ git clone https://github.com/netlify-templates/gatsby-starter-netlify-cms
17+
$ git clone https://github.com/decaporg/gatsby-starter-decap-cms
1818
$ yarn
1919
```
2020

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ $ netlify dev # or ntl dev
6363
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.
6464

6565
```javascript
66-
import CMS from "netlify-cms-app";
67-
// import uploadcare from 'netlify-cms-media-library-uploadcare'
68-
// import cloudinary from 'netlify-cms-media-library-cloudinary'
66+
import CMS from "decap-cms-app";
67+
// import uploadcare from 'decap-cms-media-library-uploadcare'
68+
// import cloudinary from 'decap-cms-media-library-cloudinary'
6969

7070
import AboutPagePreview from "./preview-templates/AboutPagePreview";
7171
import BlogPostPreview from "./preview-templates/BlogPostPreview";
@@ -81,17 +81,17 @@ CMS.registerPreviewTemplate("products", ProductPagePreview);
8181
CMS.registerPreviewTemplate("blog", BlogPostPreview);
8282
```
8383

84-
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.
84+
Note: Don't forget to also remove them from `package.json` and `yarn.lock` / `package-lock.json` using `yarn` or `npm`. During the build decap-cms-app will bundle the media libraries as well, having them removed will save you build time.
8585
Example:
8686

8787
```
88-
yarn remove netlify-cms-media-library-uploadcare
88+
yarn remove decap-cms-media-library-uploadcare
8989
```
9090

9191
OR
9292

9393
```
94-
yarn remove netlify-cms-media-library-cloudinary
94+
yarn remove decap-cms-media-library-cloudinary
9595
```
9696

9797
## Getting Started (Without Netlify)

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = {
6363
},
6464
},
6565
{
66-
resolve: "gatsby-plugin-netlify-cms",
66+
resolve: "gatsby-plugin-decap-cms",
6767
options: {
6868
modulePath: `${__dirname}/src/cms/cms.js`,
6969
},

0 commit comments

Comments
 (0)