feat: provide usable UMD builds for all packages (#2141)

This commit is contained in:
Tony Alves
2019-03-16 15:44:29 -07:00
committed by Shawn Erquhart
parent 1d935c704d
commit 82cc7941cc
89 changed files with 1025 additions and 712 deletions

View File

@ -21,23 +21,13 @@
"develop": "npm run watch",
"build": "cross-env NODE_ENV=production webpack"
},
"dependencies": {
"netlify-cms-widget-file": "^2.2.1-beta.0"
},
"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",
"netlify-cms-ui-default": "^2.0.0",
"prop-types": "^15.5.10",
"react": "^16.4.1"
},
"localExternals": [
"netlify-cms-widget-file"
]
"netlify-cms-ui-default": "^2.4.1-beta.0",
"netlify-cms-widget-file": "^2.2.1-beta.0",
"prop-types": "^15.7.2",
"react": "^16.8.4"
}
}

View File

@ -1,4 +1,6 @@
import { withFileControl } from 'netlify-cms-widget-file';
export const ImageControl = withFileControl({ forImage: true });
export ImagePreview from './ImagePreview';
const controlComponent = withFileControl({ forImage: true });
import previewComponent from './ImagePreview';
export const NetlifyCmsWidgetImage = { controlComponent, previewComponent };
export { controlComponent, previewComponent };