mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
Merge branch react-renderer-umd into develop
Title: react-renderer生成umd,并上传cdn Link: https://code.aone.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/codereview/7499278
This commit is contained in:
commit
a6ef038b69
28
packages/react-renderer/build.cloud.json
Normal file
28
packages/react-renderer/build.cloud.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"entry": {
|
||||||
|
"react-renderer": "src/index"
|
||||||
|
},
|
||||||
|
"sourceMap": true,
|
||||||
|
"library": "___AliLowCodeReactRenderer___",
|
||||||
|
"libraryTarget": "umd",
|
||||||
|
"externals": {
|
||||||
|
"react": "var window.React",
|
||||||
|
"react-dom": "var window.ReactDOM",
|
||||||
|
"prop-types": "var window.PropTypes",
|
||||||
|
"@alifd/next": "var Next",
|
||||||
|
"moment": "var window.moment"
|
||||||
|
},
|
||||||
|
"polyfill": false,
|
||||||
|
"outputDir": "dist",
|
||||||
|
"vendor": false,
|
||||||
|
"ignoreHtmlTemplate": true,
|
||||||
|
"plugins": [
|
||||||
|
"build-plugin-react-app",
|
||||||
|
["build-plugin-fusion", {
|
||||||
|
"externalNext": "umd"
|
||||||
|
}],
|
||||||
|
["build-plugin-moment-locales", {
|
||||||
|
"locales": ["zh-cn"]
|
||||||
|
}]
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -11,7 +11,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "build-scripts test --config build.test.json",
|
"test": "build-scripts test --config build.test.json",
|
||||||
"start": "build-scripts start",
|
"start": "build-scripts start",
|
||||||
"build": "build-scripts build --skip-demo"
|
"build": "build-scripts build --skip-demo",
|
||||||
|
"cloud-build": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build --config build.cloud.json"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@ -35,6 +35,8 @@ mv ./packages/rax-simulator-renderer/dist/js/* $BUILD_DEST
|
|||||||
mv ./packages/rax-simulator-renderer/dist/css/* $BUILD_DEST
|
mv ./packages/rax-simulator-renderer/dist/css/* $BUILD_DEST
|
||||||
mv ./packages/engine/dist/js/* $BUILD_DEST
|
mv ./packages/engine/dist/js/* $BUILD_DEST
|
||||||
mv ./packages/engine/dist/css/* $BUILD_DEST
|
mv ./packages/engine/dist/css/* $BUILD_DEST
|
||||||
|
mv ./packages/react-renderer/dist/js/* $BUILD_DEST
|
||||||
|
mv ./packages/react-renderer/dist/css/* $BUILD_DEST
|
||||||
mv ./packages/vision-polyfill/dist/js/* $BUILD_DEST
|
mv ./packages/vision-polyfill/dist/js/* $BUILD_DEST
|
||||||
mv ./packages/vision-polyfill/dist/css/* $BUILD_DEST
|
mv ./packages/vision-polyfill/dist/css/* $BUILD_DEST
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user