Skip to content

Commit 8a8e515

Browse files
LeoYuanJackLian
authored andcommitted
refactor: support inject debug mode for plugin-code-editor
1 parent 6b142d9 commit 8a8e515

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
plugins: [
3+
[
4+
'build-plugin-fusion',
5+
{
6+
themePackage: '@alifd/theme-lowcode-light',
7+
},
8+
],
9+
[
10+
'@alilc/build-plugin-alt',
11+
{
12+
type: 'plugin',
13+
// 开启注入调试模式,see:https://www.yuque.com/lce/doc/ulvlkz
14+
inject: true,
15+
// 配置要打开的页面,在注入调试模式下,不配置此项的话不会打开浏览器
16+
// 支持直接使用官方 demo 项目:https://lowcode-engine.cn/demo/index.html
17+
// openUrl: 'https://lowcode-engine.cn/demo/index.html?debug',
18+
},
19+
],
20+
'./build.plugin.js',
21+
],
22+
};

packages/plugin-code-editor/build.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/plugin-code-editor/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"types": "lib/index.d.ts",
1313
"README": "README.md",
1414
"scripts": {
15-
"start": "build-scripts start",
15+
"start": "build-scripts start --config build.js",
1616
"prepublishOnly": "npm run build",
17-
"build": "build-scripts build"
17+
"build": "build-scripts build --skip-demo --config build.js"
1818
},
1919
"publishConfig": {
2020
"access": "public"

packages/plugin-datasource-pane/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"scripts": {
1010
"start": "build-scripts start --config build.js",
11-
"build": "build-scripts build",
11+
"build": "build-scripts build --config build.js",
1212
"test": "ava",
1313
"test:snapshot": "ava --update-snapshots"
1414
},

packages/plugin-simulator-size/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"scripts": {
77
"start": "build-scripts start --config build.js",
8-
"build": "build-scripts build --skip-demo",
8+
"build": "build-scripts build --skip-demo --config build.js",
99
"prepublishOnly": "npm run build",
1010
"test": "echo \"Error: no test specified\" && exit 1"
1111
},

0 commit comments

Comments
 (0)