mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-27 20:30:28 +00:00
chore: cloud build test 8
This commit is contained in:
parent
7a8fb63b05
commit
697eb3b189
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ packages/*/es/
|
|||||||
packages/*/dist/
|
packages/*/dist/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
deploy-space/packages
|
||||||
|
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
|
|||||||
9
deploy-space/lerna.json
Normal file
9
deploy-space/lerna.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"version": "independent",
|
||||||
|
"npmClient": "yarn",
|
||||||
|
"registry": "http://registry.npm.alibaba-inc.com",
|
||||||
|
"useWorkspaces": true,
|
||||||
|
"packages": [
|
||||||
|
"packages/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
16
deploy-space/package.json
Normal file
16
deploy-space/package.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^1.9.3",
|
||||||
|
"typescript": "^3.2.2"
|
||||||
|
},
|
||||||
|
"workspaces": {
|
||||||
|
"packages": [
|
||||||
|
"packages/*"
|
||||||
|
],
|
||||||
|
"nohoist": [
|
||||||
|
"**/css-modules-typescript-loader",
|
||||||
|
"**/@alife/theme-lowcode-*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
1
packages/demo/demo
Symbolic link
1
packages/demo/demo
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/Users/onbing/Code/ali-lowcode-engine/packages/demo
|
||||||
@ -1,5 +1,6 @@
|
|||||||
import { Component } from 'react';
|
import { Component } from 'react';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
import { TipContainer } from '@ali/lowcode-globals';
|
||||||
import BuiltinDragGhostComponent from './drag-ghost';
|
import BuiltinDragGhostComponent from './drag-ghost';
|
||||||
import { Designer, DesignerProps } from './designer';
|
import { Designer, DesignerProps } from './designer';
|
||||||
import { ProjectView } from '../project';
|
import { ProjectView } from '../project';
|
||||||
@ -46,6 +47,7 @@ export class DesignerView extends Component<DesignerProps> {
|
|||||||
<div className={classNames('lc-designer', className)} style={style}>
|
<div className={classNames('lc-designer', className)} style={style}>
|
||||||
<DragGhost designer={this.designer} />
|
<DragGhost designer={this.designer} />
|
||||||
<ProjectView designer={this.designer} />
|
<ProjectView designer={this.designer} />
|
||||||
|
<TipContainer />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
1
packages/globals/globals
Symbolic link
1
packages/globals/globals
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/Users/onbing/Code/ali-lowcode-engine/packages/globals
|
||||||
@ -147,7 +147,7 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #57a672;
|
background: rgba(0, 0, 0, 0.7);
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
color: var(--color-text-reverse, rgba(255, 255, 255, 0.8));
|
color: var(--color-text-reverse, rgba(255, 255, 255, 0.8));
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -178,7 +178,7 @@
|
|||||||
height: 8px;
|
height: 8px;
|
||||||
&:after {
|
&:after {
|
||||||
border: 6px solid transparent;
|
border: 6px solid transparent;
|
||||||
border-top-color: #57a672;
|
border-top-color: rgba(0, 0, 0, 0.7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.lc-theme-black {
|
&.lc-theme-black {
|
||||||
|
|||||||
@ -57,7 +57,8 @@ export default class TreeTitle extends Component<{
|
|||||||
}
|
}
|
||||||
input.focus();
|
input.focus();
|
||||||
input.select();
|
input.select();
|
||||||
input.selectionStart = input.selectionEnd;
|
// 光标定位最后一个
|
||||||
|
// input.selectionStart = input.selectionEnd;
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@ -195,7 +196,6 @@ class ExpandBtn extends Component<{ treeNode: TreeNode }> {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconArrowRight size="small" />
|
<IconArrowRight size="small" />
|
||||||
<EmbedTip>{treeNode.expanded ? intl('Collapse') : intl('Expand')}</EmbedTip>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Tab, Breadcrumb } from '@alifd/next';
|
import { Tab, Breadcrumb } from '@alifd/next';
|
||||||
import { Title, TipContainer, createIcon } from '@ali/lowcode-globals';
|
import { Title, createIcon } from '@ali/lowcode-globals';
|
||||||
import { Node } from '@ali/lowcode-designer';
|
import { Node } from '@ali/lowcode-designer';
|
||||||
import { SettingsMain, SettingField, isSettingField } from './main';
|
import { SettingsMain, SettingField, isSettingField } from './main';
|
||||||
import SettingsPane, { createSettingFieldView } from './settings-pane';
|
import SettingsPane, { createSettingFieldView } from './settings-pane';
|
||||||
@ -99,7 +99,6 @@ export default class SettingsMainView extends Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="lc-settings-main">
|
<div className="lc-settings-main">
|
||||||
<TipContainer />
|
|
||||||
<Tab
|
<Tab
|
||||||
navClassName="lc-settings-tabs"
|
navClassName="lc-settings-tabs"
|
||||||
animation={false}
|
animation={false}
|
||||||
|
|||||||
1
packages/react-simulator-renderer/react-simulator-renderer
Symbolic link
1
packages/react-simulator-renderer/react-simulator-renderer
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/Users/onbing/Code/ali-lowcode-engine/packages/react-simulator-renderer
|
||||||
35
scripts/deploy.bak.sh
Executable file
35
scripts/deploy.bak.sh
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
WORK_DIR=$PWD
|
||||||
|
BUILD_DEST=$1
|
||||||
|
|
||||||
|
echo "Deploy ${PWD} -> ${BUILD_DEST} ..."
|
||||||
|
|
||||||
|
# build globals
|
||||||
|
echo "build globals"
|
||||||
|
cd packages/globals
|
||||||
|
tnpm ii
|
||||||
|
tnpm run cloud-build
|
||||||
|
cd $WORK_DIR
|
||||||
|
|
||||||
|
# build simulator-renderer
|
||||||
|
echo "build simulator-renderer"
|
||||||
|
cd packages/react-simulator-renderer
|
||||||
|
tnpm ii
|
||||||
|
tnpm run cloud-build
|
||||||
|
cd $WORK_DIR
|
||||||
|
|
||||||
|
# build lowcode demo
|
||||||
|
echo "build lowcode demo"
|
||||||
|
cd packages/demo
|
||||||
|
# FIXME! npm is slow, but tnpm has a depends bug
|
||||||
|
npm i --registry=http://registry.npm.alibaba-inc.com
|
||||||
|
npm 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"
|
||||||
@ -5,26 +5,15 @@ BUILD_DEST=$1
|
|||||||
|
|
||||||
echo "Deploy ${PWD} -> ${BUILD_DEST} ..."
|
echo "Deploy ${PWD} -> ${BUILD_DEST} ..."
|
||||||
|
|
||||||
# build globals
|
tnpm install -g yarn lerna
|
||||||
echo "build globals"
|
yarn config set registry https://registry.npm.alibaba-inc.com
|
||||||
cd packages/globals
|
cd deploy-space
|
||||||
tnpm ii
|
mkdir packages
|
||||||
tnpm run cloud-build
|
ln -s $WORK_DIR/packages/demo packages/demo
|
||||||
cd $WORK_DIR
|
ln -s $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer
|
||||||
|
ln -s $WORK_DIR/packages/globals packages/globals
|
||||||
# build simulator-renderer
|
lerna bootstrap
|
||||||
echo "build simulator-renderer"
|
lerna run cloud-build --stream
|
||||||
cd packages/react-simulator-renderer
|
|
||||||
tnpm ii
|
|
||||||
tnpm run cloud-build
|
|
||||||
cd $WORK_DIR
|
|
||||||
|
|
||||||
# build lowcode demo
|
|
||||||
echo "build lowcode demo"
|
|
||||||
cd packages/demo
|
|
||||||
npm i --registry=http://registry.npm.alibaba-inc.com
|
|
||||||
npm run cloud-build
|
|
||||||
cd $WORK_DIR
|
|
||||||
|
|
||||||
mv packages/demo/build $BUILD_DEST
|
mv packages/demo/build $BUILD_DEST
|
||||||
mv packages/react-simulator-renderer/dist/* $BUILD_DEST
|
mv packages/react-simulator-renderer/dist/* $BUILD_DEST
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
rm -rf node_modules package-lock.json
|
rm -rf node_modules package-lock.json yarn.lock
|
||||||
lerna clean -y
|
lerna clean -y
|
||||||
find ./packages -type f -name "package-lock.json" -exec rm -f {} \;
|
find ./packages -type f -name "package-lock.json" -exec rm -f {} \;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user