Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix the umd builds #2214

Merged
merged 4 commits into from
Mar 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
],
Expand Down
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-bitbucket/src/index.js
Original file line number Diff line number Diff line change
@@ -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 };
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-git-gateway/src/index.js
Original file line number Diff line number Diff line change
@@ -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 };
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-github/src/index.js
Original file line number Diff line number Diff line change
@@ -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 };
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-gitlab/src/index.js
Original file line number Diff line number Diff line change
@@ -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 };
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-test/src/index.js
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion packages/netlify-cms-core/src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/netlify-cms-core/src/mediaLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/netlify-cms-core/src/reducers/combinedReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion packages/netlify-cms-core/src/valueObjects/AssetProxy.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
20 changes: 10 additions & 10 deletions packages/netlify-cms/src/backends.js
Original file line number Diff line number Diff line change
@@ -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);