2 |
3 |
Index Page
4 | Archives
5 |
6 |
7 |
--------------------------------------------------------------------------------
/greenkeeper.json:
--------------------------------------------------------------------------------
1 | {
2 | "groups": {
3 | "default": {
4 | "packages": [
5 | "example/package.json",
6 | "package.json"
7 | ]
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | const netlifyCmsModule = require("./dist/module.js");
2 |
3 | module.exports = netlifyCmsModule.default;
4 | module.exports.meta = netlifyCmsModule.meta;
5 |
--------------------------------------------------------------------------------
/lib/entry.js:
--------------------------------------------------------------------------------
1 | /* global REQUIRE_EXTENSIONS, REQUIRE_CSS, CSS_FILE */
2 | /* eslint-disable import/order */
3 |
4 | function requireAll(r) {
5 | r.keys().forEach(r);
6 | }
7 |
8 | const CMS = require("netlify-cms");
9 |
10 | if (REQUIRE_EXTENSIONS) {
11 | requireAll(require.context("extensions/", true, /\.js$/));
12 | }
13 |
14 | if (REQUIRE_CSS) {
15 | require(CSS_FILE);
16 | }
17 |
18 | module.exports = {
19 | CMS
20 | };
21 |
--------------------------------------------------------------------------------
/lib/hmr.client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | "use strict";
3 | const webpackHotMiddlewareClient = require(`webpack-hot-middleware/client?name=client&reload=true&timeout=3000&dynamicPublicPath=true&path=__webpack_hmr`);
4 |
5 | webpackHotMiddlewareClient.subscribe(function(payload) {
6 | if (payload.action === "reload" || payload.reload === true) {
7 | window.location.reload();
8 | }
9 | });
10 |
11 | module.exports = webpackHotMiddlewareClient;
12 | })();
13 |
--------------------------------------------------------------------------------
/lib/template/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |