mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-14 13:03:07 +00:00
chore: 🤖 test cloud build 3
This commit is contained in:
parent
5efdaf36a5
commit
a4daf5693a
29
html/index.html
Normal file
29
html/index.html
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>LowCodeEngine DEMO</title>
|
||||
<link rel="shortcut icon" href="./favicon.png" />
|
||||
<script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
|
||||
<script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
|
||||
<script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
|
||||
<script> React.PropTypes = PropTypes; </script>
|
||||
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css" />
|
||||
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
|
||||
<!-- lowcode engine globals -->
|
||||
<link rel="stylesheet" href="./globals.css" />
|
||||
<!-- lowcode engine app -->
|
||||
<link rel="stylesheet" href="./lowcode-demo.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="lce-container"></div>
|
||||
<!-- lowcode engine globals -->
|
||||
<script src="./globals.js"></script>
|
||||
<!-- lowcode engine app -->
|
||||
<script src="./lowcode-demo.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
21
html/preview.html
Normal file
21
html/preview.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>LowCodeEngine DEMO</title>
|
||||
<script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
|
||||
<script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
|
||||
<script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
|
||||
<script> React.PropTypes = PropTypes; </script>
|
||||
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css">
|
||||
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="lce-container"></div>
|
||||
</body>
|
||||
</html>
|
||||
@ -4,10 +4,10 @@
|
||||
"clean": "rm -rf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build",
|
||||
"setup": "./scripts/setup.sh",
|
||||
"start": "./scripts/start.sh",
|
||||
"build": "lerna exec -- npm run build",
|
||||
"build": "lerna run build",
|
||||
"test": "lerna run test",
|
||||
"test:snapshot": "lerna run test:snapshot",
|
||||
"pub": "npm run test && lerna publish",
|
||||
"pub": "lerna publish",
|
||||
"commit": "git-cz"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -9,10 +9,7 @@
|
||||
},
|
||||
"publicPath": "/",
|
||||
"externals": {
|
||||
"react": "var window.React",
|
||||
"react-dom": "var window.ReactDOM",
|
||||
"prop-types": "var window.PropTypes",
|
||||
"@alifd/next": "var window.Next"
|
||||
"prop-types": "var window.PropTypes"
|
||||
},
|
||||
"plugins": [
|
||||
["build-plugin-react-app"],
|
||||
|
||||
30
packages/demo/cloud-build.json
Normal file
30
packages/demo/cloud-build.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"entry": {
|
||||
"lowcode-demo": "src/index.jsx"
|
||||
},
|
||||
"vendor": false,
|
||||
"externals": {
|
||||
"prop-types": "PropTypes",
|
||||
"@ali/lowcode-globals": "LCEGlobals"
|
||||
},
|
||||
"minify": false,
|
||||
"sourcemap": true,
|
||||
"outputAssetsPath": {
|
||||
"js": "", "css": ""
|
||||
},
|
||||
"plugins": [
|
||||
["build-plugin-react-app"],
|
||||
[
|
||||
"build-plugin-fusion",
|
||||
{
|
||||
"themePackage": "@alife/theme-lowcode-light"
|
||||
}
|
||||
],
|
||||
[
|
||||
"build-plugin-moment-locales",
|
||||
{
|
||||
"locales": ["zh-cn"]
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
@ -3,15 +3,16 @@
|
||||
"version": "0.8.0",
|
||||
"description": "低代码引擎 DEMO",
|
||||
"scripts": {
|
||||
"start": "build-scripts start"
|
||||
"start": "build-scripts start",
|
||||
"cloud-build": "build-scripts build --config cloud-build.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-editor-core": "^0.8",
|
||||
"@ali/lowcode-editor-skeleton": "^0.8.0",
|
||||
"@ali/lowcode-plugin-components-pane": "^0.8.0",
|
||||
"@ali/lowcode-plugin-designer": "^0.8.0",
|
||||
"@ali/lowcode-plugin-logo": "^0.8.0",
|
||||
"@ali/lowcode-plugin-save": "^0.8.0",
|
||||
"@ali/lowcode-plugin-sample-logo": "^0.8.0",
|
||||
"@ali/lowcode-plugin-sample-preview": "^0.8.0",
|
||||
"@ali/lowcode-plugin-undo-redo": "^0.8.0",
|
||||
"@alife/theme-lowcode-dark": "^0.1.0",
|
||||
"@alife/theme-lowcode-light": "^0.1.0",
|
||||
|
||||
@ -119,11 +119,11 @@ export default {
|
||||
shortCuts: [],
|
||||
lifeCycles: {
|
||||
init: async function init(editor) {
|
||||
const assets = await editor.utils.get('/assets.json');
|
||||
const assets = await editor.utils.get('./assets.json');
|
||||
editor.set('assets', assets);
|
||||
editor.emit('assets.loaded', assets);
|
||||
|
||||
const schema = await editor.utils.get('/schema.json');
|
||||
const schema = await editor.utils.get('./schema.json');
|
||||
editor.set('schema', schema);
|
||||
editor.emit('schema.loaded', schema);
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-designer",
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.1",
|
||||
"description": "Designer for Ali LowCode Engine",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
||||
@ -38,5 +38,7 @@
|
||||
"build-plugin-component": "^0.2.10"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-editor-core@0.0.1/build/index.html"
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,9 +36,7 @@
|
||||
"build-plugin-fusion": "^0.1.0",
|
||||
"build-plugin-moment-locales": "^0.1.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ice-lab/react-materials/tree/master/scaffolds/ice-ts"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-engine-skeleton@0.0.1/build/index.html"
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,14 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
[
|
||||
"build-plugin-component",
|
||||
{
|
||||
"filename": "globals",
|
||||
"library": "LCEGlobals",
|
||||
"libraryExport": "default",
|
||||
"libraryTarget": "umd"
|
||||
}
|
||||
],
|
||||
"build-plugin-component",
|
||||
"build-plugin-fusion",
|
||||
["build-plugin-moment-locales", {
|
||||
"locales": ["zh-cn"]
|
||||
|
||||
17
packages/globals/cloud-build.json
Normal file
17
packages/globals/cloud-build.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"plugins": [
|
||||
[
|
||||
"build-plugin-component",
|
||||
{
|
||||
"filename": "globals",
|
||||
"library": "LCEGlobals",
|
||||
"libraryExport": "default",
|
||||
"libraryTarget": "umd"
|
||||
}
|
||||
],
|
||||
"build-plugin-fusion",
|
||||
["build-plugin-moment-locales", {
|
||||
"locales": ["zh-cn"]
|
||||
}]
|
||||
]
|
||||
}
|
||||
@ -6,11 +6,11 @@
|
||||
"module": "es/index.js",
|
||||
"files": [
|
||||
"lib",
|
||||
"es",
|
||||
"dist"
|
||||
"es"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "build-scripts build --skip-demo",
|
||||
"cloud-build": "build-scripts build --skip-demo --config cloud-build.json",
|
||||
"test": "ava",
|
||||
"test:snapshot": "ava --update-snapshots"
|
||||
},
|
||||
|
||||
@ -34,5 +34,8 @@
|
||||
"build-plugin-component": "^0.2.7-1",
|
||||
"build-plugin-fusion": "^0.1.0",
|
||||
"build-plugin-moment-locales": "^0.1.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,5 +30,8 @@
|
||||
"@types/react-dom": "^16.9.4",
|
||||
"@alib/build-scripts": "^0.1.3",
|
||||
"build-plugin-component": "^0.2.7-1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -41,5 +41,8 @@
|
||||
"ts-node/register"
|
||||
]
|
||||
},
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -28,5 +28,8 @@
|
||||
"@types/react": "^16.9.13",
|
||||
"@types/react-dom": "^16.9.4",
|
||||
"build-plugin-component": "^0.2.10"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,5 +30,8 @@
|
||||
"build-plugin-component": "^0.2.11",
|
||||
"build-plugin-fusion": "^0.1.0",
|
||||
"build-plugin-moment-locales": "^0.1.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,9 +31,7 @@
|
||||
"build-plugin-fusion": "^0.1.0",
|
||||
"build-plugin-moment-locales": "^0.1.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ice-lab/react-materials/tree/master/scaffolds/ice-ts"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-engine-skeleton@0.0.1/build/index.html"
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -40,5 +40,8 @@
|
||||
"ts-node/register"
|
||||
]
|
||||
},
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,5 +31,8 @@
|
||||
"build-plugin-component": "^0.2.7-1",
|
||||
"build-plugin-fusion": "^0.1.0",
|
||||
"build-plugin-moment-locales": "^0.1.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-react-renderer",
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.1",
|
||||
"description": "react renderer for ali lowcode engine",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
||||
@ -1 +1,3 @@
|
||||
内置模拟器渲染进程
|
||||
|
||||
DO NOT tnpm publish
|
||||
|
||||
@ -5,20 +5,16 @@
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"lib",
|
||||
"es",
|
||||
"dist"
|
||||
],
|
||||
"files": [],
|
||||
"scripts": {
|
||||
"build": "build-scripts build --skip-demo",
|
||||
"cloud-build": "build-scripts build --skip-demo",
|
||||
"test": "ava",
|
||||
"test:snapshot": "ava --update-snapshots"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-globals": "^0.8",
|
||||
"@ali/lowcode-designer": "^0.8",
|
||||
"@ali/lowcode-react-renderer": "0.8.0-1",
|
||||
"@ali/lowcode-react-renderer": "^0.8.0",
|
||||
"@recore/obx": "^1.0.8",
|
||||
"@recore/obx-react": "^1.0.7",
|
||||
"classnames": "^2.2.6",
|
||||
|
||||
@ -52,5 +52,8 @@
|
||||
"require": [
|
||||
"ts-node/register"
|
||||
]
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,16 +9,26 @@ echo "Deploy ${PWD} -> ${BUILD_DEST} ..."
|
||||
echo "build globals"
|
||||
cd packages/globals
|
||||
tnpm ii
|
||||
tnpm run build
|
||||
tnpm run cloud-build
|
||||
cd $WORK_DIR
|
||||
mv packages/globals/dist $BUILD_DEST
|
||||
|
||||
# build simulator-renderer
|
||||
echo "build simulator-renderer"
|
||||
cd packages/react-simulator-renderer
|
||||
tnpm ii
|
||||
tnpm run build
|
||||
tnpm run cloud-build
|
||||
cd $WORK_DIR
|
||||
mv packages/react-simulator-renderer/dist/* $BUILD_DEST
|
||||
|
||||
# build lowcode demo
|
||||
echo "build lowcode demo"
|
||||
cd packages/demo
|
||||
tnpm ii
|
||||
tnpm run cloud-build
|
||||
cd $WORK_DIR
|
||||
|
||||
mv packages/demo/build $BUILD_DEST
|
||||
mv packages/react-simulator-renderer/dist/* $BUILD_DEST
|
||||
mv packages/globals/dist/* $BUILD_DEST
|
||||
|
||||
cp html/* $BUILD_DEST
|
||||
echo "complete"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user