mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-23 09:58:12 +00:00
Merge commit 'b997917ff35a608ddf672d7c4535e0cb43bfe301' into def_releases_2021081610154444_ali-lowcode_ali-lowcode-engine/1.0.63
This commit is contained in:
commit
5c476171c6
@ -2,6 +2,7 @@
|
|||||||
"entry": {
|
"entry": {
|
||||||
"engine-core": "src/index"
|
"engine-core": "src/index"
|
||||||
},
|
},
|
||||||
|
"sourceMap": true,
|
||||||
"library": "___AliLowCodeEngine___",
|
"library": "___AliLowCodeEngine___",
|
||||||
"libraryTarget": "umd",
|
"libraryTarget": "umd",
|
||||||
"externals": {
|
"externals": {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceMap": true,
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
[
|
[
|
||||||
"build-plugin-component",
|
"build-plugin-component",
|
||||||
|
|||||||
@ -7,18 +7,7 @@ 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.plugins.delete('hot');
|
||||||
config.devServer.hot(false);
|
config.devServer.hot(false);
|
||||||
config.devtool('hidden-source-map');
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,7 +5,7 @@ const { join } = require('path');
|
|||||||
const fse = require('fs-extra');
|
const fse = require('fs-extra');
|
||||||
|
|
||||||
const gitBranchName = process.env.BUILD_GIT_BRANCH || execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf-8' });
|
const gitBranchName = process.env.BUILD_GIT_BRANCH || execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf-8' });
|
||||||
const reBranchVersion = /^(?:[a-z]+\/)(\d+\.\d+\.\d+)$/im;
|
const reBranchVersion = /^(?:[\w-]+\/)(\d+\.\d+\.\d+)$/im;
|
||||||
|
|
||||||
const match = reBranchVersion.exec(gitBranchName);
|
const match = reBranchVersion.exec(gitBranchName);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
@ -17,7 +17,7 @@ const releaseVersion = match[1];
|
|||||||
|
|
||||||
const distDir = join(__dirname, '../dist');
|
const distDir = join(__dirname, '../dist');
|
||||||
|
|
||||||
const distFileNames = ['engine.js', 'engine-core.js'];
|
const distFileNames = ['engine-core.js'];
|
||||||
|
|
||||||
distFileNames.forEach(name => {
|
distFileNames.forEach(name => {
|
||||||
const distFile = join(distDir, 'js', name);
|
const distFile = join(distDir, 'js', name);
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
"entry": {
|
"entry": {
|
||||||
"vision-polyfill": "src/index"
|
"vision-polyfill": "src/index"
|
||||||
},
|
},
|
||||||
|
"sourceMap": true,
|
||||||
"library": "___VisionPolyfill___",
|
"library": "___VisionPolyfill___",
|
||||||
"libraryTarget": "umd",
|
"libraryTarget": "umd",
|
||||||
"externals": {
|
"externals": {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sourceMap": true,
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
[
|
[
|
||||||
"build-plugin-component",
|
"build-plugin-component",
|
||||||
|
|||||||
@ -19,6 +19,6 @@ module.exports = ({ onGetWebpackConfig }) => {
|
|||||||
*/
|
*/
|
||||||
config.plugins.delete('hot');
|
config.plugins.delete('hot');
|
||||||
config.devServer.hot(false);
|
config.devServer.hot(false);
|
||||||
config.devtool('hidden-source-map');
|
// config.devtool('hidden-source-map');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user