feat: provide usable UMD builds for all packages (#2141)
This commit is contained in:
committed by
Shawn Erquhart
parent
1d935c704d
commit
82cc7941cc
@ -25,23 +25,18 @@
|
||||
"jwt-decode": "^2.2.0",
|
||||
"minimatch": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-env": "^5.2.0",
|
||||
"webpack": "^4.29.6",
|
||||
"webpack-cli": "^3.2.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@emotion/core": "^10.0.9",
|
||||
"@emotion/styled": "^10.0.9",
|
||||
"immutable": "^3.7.6",
|
||||
"lodash": "^4.17.10",
|
||||
"netlify-cms-backend-bitbucket": "^2.0.0",
|
||||
"netlify-cms-backend-github": "^2.0.0",
|
||||
"netlify-cms-backend-gitlab": "^2.0.0",
|
||||
"netlify-cms-lib-auth": "^2.0.0",
|
||||
"netlify-cms-lib-util": "^2.0.0",
|
||||
"netlify-cms-ui-default": "^2.0.0",
|
||||
"prop-types": "^15.6.2",
|
||||
"react": "^16.4.1"
|
||||
"lodash": "^4.17.11",
|
||||
"netlify-cms-backend-bitbucket": "^2.1.3-beta.0",
|
||||
"netlify-cms-backend-github": "^2.2.3-beta.0",
|
||||
"netlify-cms-backend-gitlab": "^2.1.4-beta.0",
|
||||
"netlify-cms-lib-auth": "^2.0.6-beta.0",
|
||||
"netlify-cms-lib-util": "^2.1.3-beta.0",
|
||||
"netlify-cms-ui-default": "^2.4.1-beta.0",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^16.8.4"
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import ini from 'ini';
|
||||
import { APIError, getBlobSHA, unsentRequest } from 'netlify-cms-lib-util';
|
||||
import { GitHubBackend } from 'netlify-cms-backend-github';
|
||||
import { GitLabBackend } from 'netlify-cms-backend-gitlab';
|
||||
import { BitBucketBackend, API as BitBucketAPI } from 'netlify-cms-backend-bitbucket';
|
||||
import { BitbucketBackend, API as BitBucketAPI } from 'netlify-cms-backend-bitbucket';
|
||||
import GitHubAPI from './GitHubAPI';
|
||||
import GitLabAPI from './GitLabAPI';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
@ -168,7 +168,7 @@ export default class GitGateway {
|
||||
requestFunction: this.requestFunction,
|
||||
hasWriteAccess: async () => true,
|
||||
});
|
||||
this.backend = new BitBucketBackend(this.config, { ...this.options, API: this.api });
|
||||
this.backend = new BitbucketBackend(this.config, { ...this.options, API: this.api });
|
||||
}
|
||||
|
||||
if (!(await this.api.hasWriteAccess())) {
|
||||
|
@ -1,2 +1,8 @@
|
||||
export GitGatewayBackend from './implementation';
|
||||
export AuthenticationPage from './AuthenticationPage';
|
||||
import Control from './implementation';
|
||||
import AuthenticationPage from './AuthenticationPage';
|
||||
|
||||
export const NetlifyCmsBackendGitGateway = {
|
||||
Control,
|
||||
AuthenticationPage,
|
||||
};
|
||||
export { Control, AuthenticationPage };
|
||||
|
Reference in New Issue
Block a user