mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
read build
This commit is contained in:
parent
f7fc729fbc
commit
ba13002a1e
@ -1,8 +1,6 @@
|
|||||||
{
|
{
|
||||||
"entry": {
|
"entry": {
|
||||||
"index": "src/index.ts",
|
"index": "src/vision/index.ts"
|
||||||
"react-simulator-renderer": "../react-simulator-renderer/src/index.ts",
|
|
||||||
"preview": "src/preview.ts"
|
|
||||||
},
|
},
|
||||||
"vendor": false,
|
"vendor": false,
|
||||||
"devServer": {
|
"devServer": {
|
||||||
@ -10,10 +8,13 @@
|
|||||||
},
|
},
|
||||||
"publicPath": "/",
|
"publicPath": "/",
|
||||||
"externals": {
|
"externals": {
|
||||||
"react": "window.React",
|
"react": "var window.React",
|
||||||
"react-dom": "window.ReactDOM",
|
"react-dom": "var window.ReactDOM",
|
||||||
"prop-types": "window.PropTypes",
|
"prop-types": "var window.PropTypes",
|
||||||
"@alifd/next": "window.Next"
|
"@alifd/next": "var window.Next",
|
||||||
|
"@ali/lowcode-editor-core": "var window.LCECore",
|
||||||
|
"@ali/visualengine": "var window.VisualEngine",
|
||||||
|
"@ali/visualengine-utils": "var window.VisualEngineUtils"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
[
|
[
|
||||||
|
|||||||
@ -16,8 +16,10 @@
|
|||||||
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></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" />
|
<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>
|
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
|
||||||
<!-- lowcode engine globals -->
|
<!-- lowcode engine core -->
|
||||||
<link href="/css/vision.css" rel="stylesheet" />
|
<link rel="stylesheet" href="/dist/core.css" />
|
||||||
|
<!-- lowcode engine vision-prest -->
|
||||||
|
<link rel="stylesheet" href="/dist/vision-preset.css" />
|
||||||
<script>
|
<script>
|
||||||
window.pageConfig = {
|
window.pageConfig = {
|
||||||
env: 'release',
|
env: 'release',
|
||||||
@ -69,8 +71,9 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<!-- lowcode engine globals -->
|
<!-- lowcode engine globals -->
|
||||||
<script src="/js/vision.js"></script>
|
<script src="/dist/core.js"></script>
|
||||||
<!-- <script src="https://g.alicdn.com/vision/visualengine-utils/4.3.1/engine-utils.js"></script> -->
|
<!-- lowcode engine globals -->
|
||||||
|
<script src="/dist/vision-preset.js"></script>
|
||||||
<script src="https://dev.g.alicdn.com/vision/visualengine-utils/5.0.0/engine-utils.js"></script>
|
<script src="https://dev.g.alicdn.com/vision/visualengine-utils/5.0.0/engine-utils.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -8,15 +8,5 @@ module.exports = ({ onGetWebpackConfig }) => {
|
|||||||
.use(TsconfigPathsPlugin, [{
|
.use(TsconfigPathsPlugin, [{
|
||||||
configFile: "./tsconfig.json"
|
configFile: "./tsconfig.json"
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
config
|
|
||||||
// 定义插件名称
|
|
||||||
.plugin('MonacoWebpackPlugin')
|
|
||||||
// 第一项为具体插件,第二项为插件参数
|
|
||||||
.use(new MonacoWebpackPlugin({
|
|
||||||
languages:["javascript","css","json"]
|
|
||||||
}), []);
|
|
||||||
config.plugins.delete('hot');
|
|
||||||
config.devServer.hot(false);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -7,10 +7,10 @@
|
|||||||
"library": "VisualEngine",
|
"library": "VisualEngine",
|
||||||
"libraryTarget": "umd",
|
"libraryTarget": "umd",
|
||||||
"externals": {
|
"externals": {
|
||||||
"react": "window.React",
|
"react": "var window.React",
|
||||||
"react-dom": "window.ReactDOM",
|
"react-dom": "var window.ReactDOM",
|
||||||
"prop-types": "window.PropTypes",
|
"prop-types": "var window.PropTypes",
|
||||||
"@ali/lowcode-editor-core": "window.LCECore"
|
"@ali/lowcode-editor-core": "var window.LCECore"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -11,9 +11,6 @@ import Preview from '@ali/lowcode-plugin-sample-preview';
|
|||||||
import SourceEditor from '@ali/lowcode-plugin-source-editor';
|
import SourceEditor from '@ali/lowcode-plugin-source-editor';
|
||||||
import { i18nReducer } from './i18n-reducer';
|
import { i18nReducer } from './i18n-reducer';
|
||||||
|
|
||||||
export * from '@ali/lowcode-editor-core';
|
|
||||||
export * from '@ali/lowcode-designer';
|
|
||||||
|
|
||||||
registerSetters();
|
registerSetters();
|
||||||
|
|
||||||
export const editor = new Editor();
|
export const editor = new Editor();
|
||||||
|
|||||||
@ -21,7 +21,7 @@ import Field from './field';
|
|||||||
import Prop from './prop';
|
import Prop from './prop';
|
||||||
import Env from './env';
|
import Env from './env';
|
||||||
import DragEngine from './drag-engine';
|
import DragEngine from './drag-engine';
|
||||||
export * from './editor';
|
import { designer, editor } from './editor';
|
||||||
|
|
||||||
import './vision.less';
|
import './vision.less';
|
||||||
|
|
||||||
@ -61,6 +61,9 @@ const modules = {
|
|||||||
const context = new VisualEngineContext();
|
const context = new VisualEngineContext();
|
||||||
|
|
||||||
const VisualEngine = {
|
const VisualEngine = {
|
||||||
|
designer,
|
||||||
|
editor,
|
||||||
|
skeleton,
|
||||||
/**
|
/**
|
||||||
* VE.Popup
|
* VE.Popup
|
||||||
*/
|
*/
|
||||||
@ -96,9 +99,48 @@ const VisualEngine = {
|
|||||||
DragEngine,
|
DragEngine,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
(window as any).VisualEngine = VisualEngine;
|
||||||
|
|
||||||
export default VisualEngine;
|
export default VisualEngine;
|
||||||
|
|
||||||
(window as any).VisualEngine = VisualEngine;
|
export {
|
||||||
|
designer,
|
||||||
|
editor,
|
||||||
|
skeleton,
|
||||||
|
/**
|
||||||
|
* VE.Popup
|
||||||
|
*/
|
||||||
|
Popup,
|
||||||
|
/**
|
||||||
|
* VE Utils
|
||||||
|
*/
|
||||||
|
utils,
|
||||||
|
I18nUtil,
|
||||||
|
Hotkey,
|
||||||
|
Env,
|
||||||
|
/* pub/sub 集线器 */
|
||||||
|
Bus,
|
||||||
|
/* 事件 */
|
||||||
|
EVENTS,
|
||||||
|
/* 修饰方法 */
|
||||||
|
HOOKS,
|
||||||
|
Exchange,
|
||||||
|
context,
|
||||||
|
/**
|
||||||
|
* VE.init
|
||||||
|
*
|
||||||
|
* Initialized the whole VisualEngine UI
|
||||||
|
*/
|
||||||
|
init,
|
||||||
|
ui,
|
||||||
|
Panes,
|
||||||
|
modules,
|
||||||
|
Trunk,
|
||||||
|
Prototype,
|
||||||
|
Bundle,
|
||||||
|
Pages,
|
||||||
|
DragEngine,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
# FIXME! do not run build
|
# FIXME! do not run build
|
||||||
lerna exec --scope @ali/lowcode-react-renderer -- npm run build
|
lerna exec --scope @ali/lowcode-react-renderer -- npm run build
|
||||||
lerna exec --scope @ali/lowcode-vision-polyfill -- npm start
|
lerna exec --scope @ali/lowcode-demo -- npm start
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user