begin scaffolding for lerna

This commit is contained in:
Shawn Erquhart
2018-07-03 15:47:15 -04:00
parent 26f7c38a9f
commit 768fcbaa1d
320 changed files with 50292 additions and 464 deletions

View File

@ -1,25 +0,0 @@
import React from 'react';
import bootstrap from './bootstrap';
import registry from 'Lib/registry';
import createReactClass from 'create-react-class';
/**
* Load Netlify CMS automatically if `window.CMS_MANUAL_INIT` is set.
*/
if (!window.CMS_MANUAL_INIT) {
bootstrap();
} else {
console.log('`window.CMS_MANUAL_INIT` flag set, skipping automatic initialization.');
}
/**
* Add extension hooks to global scope.
*/
if (typeof window !== 'undefined') {
window.CMS = registry;
window.initCMS = bootstrap;
window.createClass = window.createClass || createReactClass;
window.h = window.h || React.createElement;
}
export { registry as default, bootstrap as init };