add-cms
This commit is contained in:
1 parent
30106e0129
commit
0ae8d7a709
1044 files changed
+321581
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,41 @@
|
||||
# Decap CMS App
|
||||
_For a Decap CMS overview, see the general [Decap CMS project README](https://github.com/decaporg/decap-cms)._
|
||||
|
||||
## Purpose
|
||||
This package is similar to the [`decap-cms`](https://github.com/decaporg/decap-cms/tree/main/packages/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` or `react-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:
|
||||
|
||||
```html
|
||||
<!-- 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
|
||||
```
|
||||
|
||||
```js
|
||||
import CMS from 'decap-cms-app';
|
||||
|
||||
CMS.init();
|
||||
```
|
||||
@@ -0,0 +1,7 @@
|
||||
declare module 'decap-cms-app' {
|
||||
import type { CMS } from 'decap-cms-core';
|
||||
|
||||
export const DecapCmsApp: CMS;
|
||||
|
||||
export default DecapCmsApp;
|
||||
}
|
||||
Loaded 3 of 1044 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user