decap-cms-app
v3.4.0
Published
An extensible, open source, Git-based, React CMS for static sites. Reusable congiuration with React as peer.
Downloads
33,596
Readme
Decap CMS App
For a Decap CMS overview, see the general Decap CMS project README.
Purpose
This package is similar to the decap-cms
package, but is designed for use with extensions. It serves that purpose in the following ways.
- It does not automatically initialize - you must run the CMS
init
method. - It does not include
react
orreact-dom
- they are required as peer dependencies. - It does not include the following extensions:
- [
decap-cms-media-library-cloudinary
] - [
decap-cms-media-library-uploadcare
]
- [
Usage
Install via script tag:
<!-- Excluding `doctype` and `head` but you should add them -->
<body>
<!-- Add these scripts to the bottom of the body -->
<script src="https://unpkg.com/react@^18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@^18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/decap-cms-app/dist/decap-cms-app.js"></script>
<!-- Initialize the CMS -->
<script>
DecapCmsApp.init();
</script>
</body>
Install via npm:
npm i react react-dom decap-cms-app
import CMS from 'decap-cms-app';
CMS.init();