mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 04:40:32 +00:00
chore: 调整自动生成引擎版本号的逻辑
feat: 增加新版引擎全局 API feat: 增加 vision-polyfill, 用作纯 API 级别的适配
This commit is contained in:
parent
373f8c3b2e
commit
9023aee088
@ -12,8 +12,8 @@
|
||||
"scripts": {
|
||||
"start": "build-scripts start",
|
||||
"version:update": "node ./scripts/version.js",
|
||||
"build": "tnpm run version:update && build-scripts build --skip-demo",
|
||||
"cloud-build": "build-scripts build --skip-demo",
|
||||
"build": "build-scripts build --skip-demo",
|
||||
"cloud-build": "build-scripts build --skip-demo && tnpm run version:update",
|
||||
"test": "build-scripts test --config build.test.json"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@ -15,8 +15,15 @@ if (!match) {
|
||||
|
||||
const releaseVersion = match[1];
|
||||
|
||||
const indexFile = join(__dirname, '../src/index.ts');
|
||||
const distDir = join(__dirname, '../dist');
|
||||
|
||||
const indexContent = fse.readFileSync(indexFile, 'utf-8');
|
||||
const distFile = join(distDir, 'editor-preset-vision.js');
|
||||
|
||||
fse.writeFileSync(indexFile, indexContent.replace('{VERSION}', releaseVersion));
|
||||
if (!fse.existsSync(distFile)) {
|
||||
console.warn('dist dir doesn\'t exists');
|
||||
return;
|
||||
}
|
||||
|
||||
const indexContent = fse.readFileSync(distFile, 'utf-8');
|
||||
|
||||
fse.writeFileSync(distFile, indexContent.replace('{{VERSION_PLACEHOLDER}}', releaseVersion));
|
||||
|
||||
@ -183,7 +183,7 @@ export {
|
||||
plugins,
|
||||
};
|
||||
|
||||
const version = '1.0.29';
|
||||
const version = '{{VERSION_PLACEHOLDER}}';
|
||||
|
||||
console.log(
|
||||
`%c AliLowCodeEngine %c v${version} `,
|
||||
|
||||
@ -12,8 +12,8 @@
|
||||
"scripts": {
|
||||
"start": "build-scripts start",
|
||||
"version:update": "node ./scripts/version.js",
|
||||
"build": "tnpm run version:update && build-scripts build --skip-demo",
|
||||
"cloud-build": "build-scripts build --skip-demo",
|
||||
"build": "build-scripts build --skip-demo",
|
||||
"cloud-build": "build-scripts build --skip-demo && tnpm run version:update",
|
||||
"test": "build-scripts test --config build.test.json"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@ -15,8 +15,15 @@ if (!match) {
|
||||
|
||||
const releaseVersion = match[1];
|
||||
|
||||
const indexFile = join(__dirname, '../src/index.ts');
|
||||
const distDir = join(__dirname, '../dist');
|
||||
|
||||
const indexContent = fse.readFileSync(indexFile, 'utf-8');
|
||||
const distFile = join(distDir, 'engine.js');
|
||||
|
||||
fse.writeFileSync(indexFile, indexContent.replace('{VERSION}', releaseVersion));
|
||||
if (!fse.existsSync(distFile)) {
|
||||
console.warn('dist dir doesn\'t exists');
|
||||
return;
|
||||
}
|
||||
|
||||
const indexContent = fse.readFileSync(distFile, 'utf-8');
|
||||
|
||||
fse.writeFileSync(distFile, indexContent.replace('{{VERSION_PLACEHOLDER}}', releaseVersion));
|
||||
|
||||
@ -80,7 +80,7 @@ export async function init(container?: Element) {
|
||||
);
|
||||
}
|
||||
|
||||
const version = '{VERSION}';
|
||||
const version = '{{VERSION_PLACEHOLDER}}';
|
||||
|
||||
console.log(
|
||||
`%c AliLowCodeEngine %c v${version} `,
|
||||
|
||||
@ -57,5 +57,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.29/build/index.html"
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.30-beta.7/build/index.html"
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@ali/lowcode-editor-preset-vision",
|
||||
"name": "@ali/lowcode-vision-polyfill",
|
||||
"version": "1.0.29",
|
||||
"description": "Vision Polyfill for Ali lowCode engine",
|
||||
"main": "lib/index.js",
|
||||
|
||||
@ -25,6 +25,8 @@ mkdir packages
|
||||
cp -r $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer
|
||||
cp -r $WORK_DIR/packages/rax-simulator-renderer packages/rax-simulator-renderer
|
||||
cp -r $WORK_DIR/packages/editor-preset-vision packages/editor-preset-vision
|
||||
cp -r $WORK_DIR/packages/engine packages/engine
|
||||
cp -r $WORK_DIR/packages/vision-polyfill packages/vision-polyfill
|
||||
# cp -r $WORK_DIR/packages/editor-preset-general packages/editor-preset-general
|
||||
lerna bootstrap
|
||||
lerna run cloud-build --stream
|
||||
@ -34,6 +36,8 @@ cd $WORK_DIR
|
||||
mv deploy-space/packages/react-simulator-renderer/dist $BUILD_DEST
|
||||
mv deploy-space/packages/rax-simulator-renderer/dist/* $BUILD_DEST
|
||||
mv deploy-space/packages/editor-preset-vision/dist/* $BUILD_DEST
|
||||
mv deploy-space/packages/editor-engine/dist/* $BUILD_DEST
|
||||
mv deploy-space/packages/editor-vision-polyfill/dist/* $BUILD_DEST
|
||||
# mv deploy-space/packages/editor-preset-general/dist/* $BUILD_DEST
|
||||
# cp deploy-space/static/* $BUILD_DEST
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user