fix: fix umd builds (#2214)
This commit is contained in:
parent
e906091c8f
commit
e04f6bec1d
@ -42,9 +42,11 @@ const plugins = () => {
|
||||
Integrations: path.join(__dirname, 'packages/netlify-cms-core/src/integrations/'),
|
||||
Lib: path.join(__dirname, 'packages/netlify-cms-core/src/lib/'),
|
||||
Reducers: path.join(__dirname, 'packages/netlify-cms-core/src/reducers/'),
|
||||
Redux: path.join(__dirname, 'packages/netlify-cms-core/src/redux/'),
|
||||
ReduxStore: path.join(__dirname, 'packages/netlify-cms-core/src/redux/'),
|
||||
Routing: path.join(__dirname, 'packages/netlify-cms-core/src/routing/'),
|
||||
ValueObjects: path.join(__dirname, 'packages/netlify-cms-core/src/valueObjects/'),
|
||||
redux: 'redux',
|
||||
localforage: 'localforage',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
@ -1,10 +1,10 @@
|
||||
import Control from './implementation';
|
||||
import BitbucketBackend from './implementation';
|
||||
import API from './API';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
|
||||
export const NetlifyCmsBackendBitbucket = {
|
||||
Control,
|
||||
BitbucketBackend,
|
||||
API,
|
||||
AuthenticationPage,
|
||||
};
|
||||
export { Control, API, AuthenticationPage };
|
||||
export { BitbucketBackend, API, AuthenticationPage };
|
||||
|
@ -1,8 +1,8 @@
|
||||
import Control from './implementation';
|
||||
import GitGatewayBackend from './implementation';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
|
||||
export const NetlifyCmsBackendGitGateway = {
|
||||
Control,
|
||||
GitGatewayBackend,
|
||||
AuthenticationPage,
|
||||
};
|
||||
export { Control, AuthenticationPage };
|
||||
export { GitGatewayBackend, AuthenticationPage };
|
||||
|
@ -1,10 +1,10 @@
|
||||
import Control from './implementation';
|
||||
import GitHubBackend from './implementation';
|
||||
import API from './API';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
|
||||
export const NetlifyCmsBackendGithub = {
|
||||
Control,
|
||||
GitHubBackend,
|
||||
API,
|
||||
AuthenticationPage,
|
||||
};
|
||||
export { Control, API, AuthenticationPage };
|
||||
export { GitHubBackend, API, AuthenticationPage };
|
||||
|
@ -1,10 +1,10 @@
|
||||
import Control from './implementation';
|
||||
import GitLabBackend from './implementation';
|
||||
import API from './API';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
|
||||
export const NetlifyCmsBackendGitlab = {
|
||||
Control,
|
||||
GitLabBackend,
|
||||
API,
|
||||
AuthenticationPage,
|
||||
};
|
||||
export { Control, API, AuthenticationPage };
|
||||
export { GitLabBackend, API, AuthenticationPage };
|
||||
|
@ -1,8 +1,8 @@
|
||||
import Control from './implementation';
|
||||
import TestBackend from './implementation';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
|
||||
export const NetlifyCmsBackendTest = {
|
||||
Control,
|
||||
TestBackend,
|
||||
AuthenticationPage,
|
||||
};
|
||||
export { Control, AuthenticationPage };
|
||||
export { TestBackend, AuthenticationPage };
|
||||
|
2
packages/netlify-cms-core/src/bootstrap.js
vendored
2
packages/netlify-cms-core/src/bootstrap.js
vendored
@ -4,7 +4,7 @@ import { Provider } from 'react-redux';
|
||||
import { Route } from 'react-router-dom';
|
||||
import { ConnectedRouter } from 'react-router-redux';
|
||||
import history from 'Routing/history';
|
||||
import store from 'Redux';
|
||||
import store from 'ReduxStore';
|
||||
import { mergeConfig } from 'Actions/config';
|
||||
import { getPhrases } from 'Constants/defaultPhrases';
|
||||
import { I18n } from 'react-polyglot';
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { once } from 'lodash';
|
||||
import { getMediaLibrary } from 'Lib/registry';
|
||||
import store from 'Redux';
|
||||
import store from 'ReduxStore';
|
||||
import { createMediaLibrary, insertMedia } from 'Actions/mediaLibrary';
|
||||
|
||||
const initializeMediaLibrary = once(async function initializeMediaLibrary(name, options) {
|
||||
|
@ -2,7 +2,7 @@ import { combineReducers } from 'redux';
|
||||
import { routerReducer } from 'react-router-redux';
|
||||
import { reducer as notifReducer } from 'redux-notifications';
|
||||
import optimist from 'redux-optimist';
|
||||
import reducers from '.';
|
||||
import reducers from './index';
|
||||
|
||||
export default optimist(
|
||||
combineReducers({
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { resolvePath } from 'netlify-cms-lib-util';
|
||||
import { currentBackend } from 'coreSrc/backend';
|
||||
import store from 'Redux';
|
||||
import store from 'ReduxStore';
|
||||
import { getIntegrationProvider } from 'Integrations';
|
||||
import { selectIntegration } from 'Reducers';
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { registerBackend } from 'netlify-cms-core/src';
|
||||
import { Control as NetlifyCmsBackendGithub } from 'netlify-cms-backend-github/src';
|
||||
import { Control as NetlifyCmsBackendGitlab } from 'netlify-cms-backend-gitlab/src';
|
||||
import { Control as NetlifyCmsBackendGitGateway } from 'netlify-cms-backend-git-gateway/src';
|
||||
import { Control as NetlifyCmsBackendBitbucket } from 'netlify-cms-backend-bitbucket/src';
|
||||
import { Control as NetlifyCmsBackendTest } from 'netlify-cms-backend-test/src';
|
||||
import { GitHubBackend } from 'netlify-cms-backend-github/src';
|
||||
import { GitLabBackend } from 'netlify-cms-backend-gitlab/src';
|
||||
import { GitGatewayBackend } from 'netlify-cms-backend-git-gateway/src';
|
||||
import { BitbucketBackend } from 'netlify-cms-backend-bitbucket/src';
|
||||
import { TestBackend } from 'netlify-cms-backend-test/src';
|
||||
|
||||
registerBackend('git-gateway', NetlifyCmsBackendGitGateway);
|
||||
registerBackend('github', NetlifyCmsBackendGithub);
|
||||
registerBackend('gitlab', NetlifyCmsBackendGitlab);
|
||||
registerBackend('bitbucket', NetlifyCmsBackendBitbucket);
|
||||
registerBackend('test-repo', NetlifyCmsBackendTest);
|
||||
registerBackend('git-gateway', GitGatewayBackend);
|
||||
registerBackend('github', GitHubBackend);
|
||||
registerBackend('gitlab', GitLabBackend);
|
||||
registerBackend('bitbucket', BitbucketBackend);
|
||||
registerBackend('test-repo', TestBackend);
|
||||
|
Loading…
x
Reference in New Issue
Block a user