mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
chore: 增加 ignitor(点火器)
This commit is contained in:
parent
609e653938
commit
446ff98ba7
43
packages/ignitor/build.json
Normal file
43
packages/ignitor/build.json
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"entry": {
|
||||||
|
"editor-preset-vision": "../editor-preset-vision/src/index.ts",
|
||||||
|
"react-simulator-renderer": "../react-simulator-renderer/src/index.ts",
|
||||||
|
"rax-simulator-renderer": "../rax-simulator-renderer/src/index.ts"
|
||||||
|
},
|
||||||
|
"vendor": false,
|
||||||
|
"devServer": {
|
||||||
|
"hot": false
|
||||||
|
},
|
||||||
|
"publicPath": "/",
|
||||||
|
"externals": {
|
||||||
|
"react": "var window.React",
|
||||||
|
"react-dom": "var window.ReactDOM",
|
||||||
|
"prop-types": "var window.PropTypes",
|
||||||
|
"@alifd/next": "var window.Next",
|
||||||
|
"@ali/visualengine": "var window.VisualEngine",
|
||||||
|
"@ali/visualengine-utils": "var window.VisualEngineUtils",
|
||||||
|
"rax": "var window.Rax",
|
||||||
|
"monaco-editor/esm/vs/editor/editor.api": "var window.monaco",
|
||||||
|
"monaco-editor/esm/vs/editor/editor.main.js": "var window.monaco"
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
[
|
||||||
|
"build-plugin-react-app"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"build-plugin-fusion",
|
||||||
|
{
|
||||||
|
"themePackage": "@alife/theme-lowcode-light"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"build-plugin-moment-locales",
|
||||||
|
{
|
||||||
|
"locales": [
|
||||||
|
"zh-cn"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"./build.plugin.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
16
packages/ignitor/build.plugin.js
Normal file
16
packages/ignitor/build.plugin.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||||||
|
|
||||||
|
module.exports = ({ context, onGetWebpackConfig }) => {
|
||||||
|
onGetWebpackConfig((config) => {
|
||||||
|
config.resolve.plugin('tsconfigpaths').use(TsconfigPathsPlugin, [
|
||||||
|
{
|
||||||
|
configFile: './tsconfig.json',
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
config.plugins.delete('hot');
|
||||||
|
config.devServer.hot(false);
|
||||||
|
if (context.command === 'start') {
|
||||||
|
config.devtool('inline-source-map');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
@ -4,4 +4,4 @@
|
|||||||
lerna exec --scope @ali/lowcode-datasource-engine -- npm run build
|
lerna exec --scope @ali/lowcode-datasource-engine -- npm run build
|
||||||
lerna exec --scope @ali/lowcode-rax-renderer -- npm run build
|
lerna exec --scope @ali/lowcode-rax-renderer -- npm 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-demo -- npm start
|
lerna exec --scope @ali/lowcode-ignitor -- npm start
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user