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