mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
read build
This commit is contained in:
parent
f7fc729fbc
commit
ba13002a1e
@ -1,8 +1,6 @@
|
||||
{
|
||||
"entry": {
|
||||
"index": "src/index.ts",
|
||||
"react-simulator-renderer": "../react-simulator-renderer/src/index.ts",
|
||||
"preview": "src/preview.ts"
|
||||
"index": "src/vision/index.ts"
|
||||
},
|
||||
"vendor": false,
|
||||
"devServer": {
|
||||
@ -10,10 +8,13 @@
|
||||
},
|
||||
"publicPath": "/",
|
||||
"externals": {
|
||||
"react": "window.React",
|
||||
"react-dom": "window.ReactDOM",
|
||||
"prop-types": "window.PropTypes",
|
||||
"@alifd/next": "window.Next"
|
||||
"react": "var window.React",
|
||||
"react-dom": "var window.ReactDOM",
|
||||
"prop-types": "var window.PropTypes",
|
||||
"@alifd/next": "var window.Next",
|
||||
"@ali/lowcode-editor-core": "var window.LCECore",
|
||||
"@ali/visualengine": "var window.VisualEngine",
|
||||
"@ali/visualengine-utils": "var window.VisualEngineUtils"
|
||||
},
|
||||
"plugins": [
|
||||
[
|
||||
@ -35,4 +36,4 @@
|
||||
],
|
||||
"./build.plugin.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,8 +16,10 @@
|
||||
<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 href="/css/vision.css" rel="stylesheet" />
|
||||
<!-- lowcode engine core -->
|
||||
<link rel="stylesheet" href="/dist/core.css" />
|
||||
<!-- lowcode engine vision-prest -->
|
||||
<link rel="stylesheet" href="/dist/vision-preset.css" />
|
||||
<script>
|
||||
window.pageConfig = {
|
||||
env: 'release',
|
||||
@ -69,8 +71,9 @@
|
||||
|
||||
<body>
|
||||
<!-- lowcode engine globals -->
|
||||
<script src="/js/vision.js"></script>
|
||||
<!-- <script src="https://g.alicdn.com/vision/visualengine-utils/4.3.1/engine-utils.js"></script> -->
|
||||
<script src="/dist/core.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>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -8,15 +8,5 @@ module.exports = ({ onGetWebpackConfig }) => {
|
||||
.use(TsconfigPathsPlugin, [{
|
||||
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",
|
||||
"libraryTarget": "umd",
|
||||
"externals": {
|
||||
"react": "window.React",
|
||||
"react-dom": "window.ReactDOM",
|
||||
"prop-types": "window.PropTypes",
|
||||
"@ali/lowcode-editor-core": "window.LCECore"
|
||||
"react": "var window.React",
|
||||
"react-dom": "var window.ReactDOM",
|
||||
"prop-types": "var window.PropTypes",
|
||||
"@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 { i18nReducer } from './i18n-reducer';
|
||||
|
||||
export * from '@ali/lowcode-editor-core';
|
||||
export * from '@ali/lowcode-designer';
|
||||
|
||||
registerSetters();
|
||||
|
||||
export const editor = new Editor();
|
||||
|
||||
@ -21,7 +21,7 @@ import Field from './field';
|
||||
import Prop from './prop';
|
||||
import Env from './env';
|
||||
import DragEngine from './drag-engine';
|
||||
export * from './editor';
|
||||
import { designer, editor } from './editor';
|
||||
|
||||
import './vision.less';
|
||||
|
||||
@ -61,6 +61,9 @@ const modules = {
|
||||
const context = new VisualEngineContext();
|
||||
|
||||
const VisualEngine = {
|
||||
designer,
|
||||
editor,
|
||||
skeleton,
|
||||
/**
|
||||
* VE.Popup
|
||||
*/
|
||||
@ -96,9 +99,48 @@ const VisualEngine = {
|
||||
DragEngine,
|
||||
};
|
||||
|
||||
(window as any).VisualEngine = 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
|
||||
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