Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit ed856ca

Browse files
committed
fix: update to app instead of core
1 parent 82fe43e commit ed856ca

File tree

4 files changed

+5126
-47
lines changed

4 files changed

+5126
-47
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ site](https://staticjscms.netlify.app).
1212
## Install
1313

1414
```shell
15-
npm install @staticcms/core gatsby-plugin-static-cms
15+
npm install @staticcms/app gatsby-plugin-static-cms
1616
```
1717

1818
## How to use
@@ -65,11 +65,11 @@ The js module might look like this:
6565

6666
```javascript
6767
/**
68-
* The default export of `@staticcms/core` is an object with all of the Static CMS
68+
* The default export of `@staticcms/app` is an object with all of the Static CMS
6969
* extension registration methods, such as `registerWidget` and
7070
* `registerPreviewTemplate`.
7171
*/
72-
import CMS from "@staticcms/core"
72+
import CMS from "@staticcms/app"
7373

7474
/**
7575
* Any imported styles should be automatically be applied to the editor preview
@@ -118,7 +118,7 @@ plugins: [
118118
The js module might look like this:
119119

120120
```javascript
121-
import CMS from "@staticcms/core"
121+
import CMS from "@staticcms/app"
122122

123123
/**
124124
* Optionally pass in a config object. This object will be merged into `config.yml` if it exists

src/cms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import CMS from "@staticcms/core"
1+
import CMS from "@staticcms/app"
22
// set global variables required by Gatsby's components
33
// https://github.com/gatsbyjs/gatsby/blob/deb41cdfefbefe0c170b5dd7c10a19ba2b338f6e/docs/docs/production-app.md#window-variables
44
// some Gatsby components require these global variables set here:

src/gatsby-node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ exports.onCreateWebpackConfig = (
101101
assetName: `react-dom.production.min.js`,
102102
},
103103
{
104-
name: `@staticcms/core`,
105-
global: `StaticCmsCore`,
104+
name: `@staticcms/app`,
105+
global: `StaticCmsApp`,
106106
assetDir: `dist`,
107-
assetName: `static-cms-core.js`
107+
assetName: `static-cms-app.js`
108108
},
109109
]
110110

0 commit comments

Comments
 (0)