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).
12
12
## Install
13
13
14
14
``` shell
15
- npm install @staticcms/core gatsby-plugin-static-cms
15
+ npm install @staticcms/app gatsby-plugin-static-cms
16
16
```
17
17
18
18
## How to use
@@ -65,11 +65,11 @@ The js module might look like this:
65
65
66
66
``` javascript
67
67
/**
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
69
69
* extension registration methods, such as `registerWidget` and
70
70
* `registerPreviewTemplate`.
71
71
*/
72
- import CMS from " @staticcms/core "
72
+ import CMS from " @staticcms/app "
73
73
74
74
/**
75
75
* Any imported styles should be automatically be applied to the editor preview
@@ -118,7 +118,7 @@ plugins: [
118
118
The js module might look like this:
119
119
120
120
``` javascript
121
- import CMS from " @staticcms/core "
121
+ import CMS from " @staticcms/app "
122
122
123
123
/**
124
124
* 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 "
2
2
// set global variables required by Gatsby's components
3
3
// https://github.com/gatsbyjs/gatsby/blob/deb41cdfefbefe0c170b5dd7c10a19ba2b338f6e/docs/docs/production-app.md#window-variables
4
4
// 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 = (
101
101
assetName : `react-dom.production.min.js` ,
102
102
} ,
103
103
{
104
- name : `@staticcms/core ` ,
105
- global : `StaticCmsCore ` ,
104
+ name : `@staticcms/app ` ,
105
+ global : `StaticCmsApp ` ,
106
106
assetDir : `dist` ,
107
- assetName : `static-cms-core .js`
107
+ assetName : `static-cms-app .js`
108
108
} ,
109
109
]
110
110
You can’t perform that action at this time.
0 commit comments