mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +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/
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
deploy-space/packages
|
||||
|
||||
|
||||
# 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 classNames from 'classnames';
|
||||
import { TipContainer } from '@ali/lowcode-globals';
|
||||
import BuiltinDragGhostComponent from './drag-ghost';
|
||||
import { Designer, DesignerProps } from './designer';
|
||||
import { ProjectView } from '../project';
|
||||
@ -46,6 +47,7 @@ export class DesignerView extends Component<DesignerProps> {
|
||||
<div className={classNames('lc-designer', className)} style={style}>
|
||||
<DragGhost designer={this.designer} />
|
||||
<ProjectView designer={this.designer} />
|
||||
<TipContainer />
|
||||
</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;
|
||||
position: fixed;
|
||||
box-sizing: border-box;
|
||||
background: #57a672;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
max-height: 400px;
|
||||
color: var(--color-text-reverse, rgba(255, 255, 255, 0.8));
|
||||
left: 0;
|
||||
@ -178,7 +178,7 @@
|
||||
height: 8px;
|
||||
&:after {
|
||||
border: 6px solid transparent;
|
||||
border-top-color: #57a672;
|
||||
border-top-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
}
|
||||
&.lc-theme-black {
|
||||
|
||||
@ -57,7 +57,8 @@ export default class TreeTitle extends Component<{
|
||||
}
|
||||
input.focus();
|
||||
input.select();
|
||||
input.selectionStart = input.selectionEnd;
|
||||
// 光标定位最后一个
|
||||
// input.selectionStart = input.selectionEnd;
|
||||
};
|
||||
|
||||
render() {
|
||||
@ -195,7 +196,6 @@ class ExpandBtn extends Component<{ treeNode: TreeNode }> {
|
||||
}}
|
||||
>
|
||||
<IconArrowRight size="small" />
|
||||
<EmbedTip>{treeNode.expanded ? intl('Collapse') : intl('Expand')}</EmbedTip>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React, { Component } from 'react';
|
||||
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 { SettingsMain, SettingField, isSettingField } from './main';
|
||||
import SettingsPane, { createSettingFieldView } from './settings-pane';
|
||||
@ -99,7 +99,6 @@ export default class SettingsMainView extends Component {
|
||||
|
||||
return (
|
||||
<div className="lc-settings-main">
|
||||
<TipContainer />
|
||||
<Tab
|
||||
navClassName="lc-settings-tabs"
|
||||
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} ..."
|
||||
|
||||
# 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
|
||||
npm i --registry=http://registry.npm.alibaba-inc.com
|
||||
npm run cloud-build
|
||||
cd $WORK_DIR
|
||||
tnpm install -g yarn lerna
|
||||
yarn config set registry https://registry.npm.alibaba-inc.com
|
||||
cd deploy-space
|
||||
mkdir packages
|
||||
ln -s $WORK_DIR/packages/demo packages/demo
|
||||
ln -s $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer
|
||||
ln -s $WORK_DIR/packages/globals packages/globals
|
||||
lerna bootstrap
|
||||
lerna run cloud-build --stream
|
||||
|
||||
mv packages/demo/build $BUILD_DEST
|
||||
mv packages/react-simulator-renderer/dist/* $BUILD_DEST
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
rm -rf node_modules package-lock.json
|
||||
rm -rf node_modules package-lock.json yarn.lock
|
||||
lerna clean -y
|
||||
find ./packages -type f -name "package-lock.json" -exec rm -f {} \;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user