This repository was archived by the owner on Sep 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5126
-47
lines changed
Expand file tree Collapse file tree 4 files changed +5126
-47
lines changed Original file line number Diff line number Diff 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: [
118118The 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
Original file line number Diff line number Diff line change 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:
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments