@maxelms/create-plugin-cli 1.1.24 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +2 -2
  3. package/templates/angular-micro-plugin/.eslintrc.js +3 -0
  4. package/templates/angular-micro-plugin/README.md +5 -0
  5. package/templates/angular-micro-plugin/manifest.json.tpl +3 -0
  6. package/templates/angular-micro-plugin/package.json.tpl +38 -0
  7. package/templates/angular-micro-plugin/pnpm-lock.yaml +7988 -0
  8. package/templates/angular-micro-plugin/public/configuration.html +13 -0
  9. package/templates/angular-micro-plugin/public/configuration.json +34 -0
  10. package/templates/angular-micro-plugin/public/index.html.tpl +15 -0
  11. package/templates/angular-micro-plugin/src/app.component.css +22 -0
  12. package/templates/angular-micro-plugin/src/app.component.html +312 -0
  13. package/templates/angular-micro-plugin/src/app.component.ts.tpl +33 -0
  14. package/templates/angular-micro-plugin/src/app.module.ts +10 -0
  15. package/templates/angular-micro-plugin/src/index.ts.tpl +53 -0
  16. package/templates/angular-micro-plugin/src/single-spa-props.ts +7 -0
  17. package/templates/angular-micro-plugin/tsconfig.json +25 -0
  18. package/templates/angular-micro-plugin/webpack.config.js +112 -0
  19. package/templates/jQuery-micro-app/src/main.js.tpl +1 -1
  20. package/templates/playground/dist/main.js +1 -1
  21. package/templates/react-micro-app/src/index.tsx +1 -1
  22. package/templates/react-micro-button/configuration/Configuration.tsx +1 -1
  23. package/templates/react-micro-button/public/configuration.html +1 -1
  24. package/templates/react-micro-field/configuration/Configuration.tsx +1 -1
  25. package/templates/react-micro-field/public/configuration.html +1 -1
  26. package/templates/react-micro-field/public/index.html +1 -1
  27. package/templates/react-micro-field/src/App.tsx.tpl +4 -4
  28. package/templates/react-micro-field-umi/src/pages/configuration/index.tsx +1 -1
  29. package/templates/react-micro-field-umi/src/pages/index.tsx.tpl +4 -4
  30. package/templates/react-micro-field-umi/src/pages/interface.ts +1 -1
  31. package/templates/react-micro-plugin/configuration/Configuration.tsx +1 -1
  32. package/templates/react-micro-plugin/public/configuration.html +11 -8
  33. package/templates/react-micro-plugin-umi/src/pages/configuration/index.tsx +1 -1
  34. package/templates/vue-micro-app/src/main.js +1 -1
  35. package/templates/vue-micro-button/public/configuration.html +1 -1
  36. package/templates/vue-micro-field/public/configuration.html +1 -1
  37. package/templates/vue-micro-field/public/index.html +1 -1
  38. package/templates/vue-micro-field/src/App.vue.tpl +2 -2
  39. package/templates/vue-micro-plugin/configuration/App.vue +1 -1
  40. package/templates/vue3-micro-app/src/main.js +2 -2
  41. package/templates/vue3-micro-app/src/public-path.js +1 -1
  42. package/templates/vue3-micro-button/public/configuration.html +1 -1
  43. package/templates/vue3-micro-button/public/index.html +1 -1
  44. package/templates/vue3-micro-field/public/configuration.html +1 -1
  45. package/templates/vue3-micro-field/public/index.html +1 -1
  46. package/templates/vue3-micro-field/src/App.vue.tpl +2 -2
package/lib/index.js CHANGED
@@ -48,7 +48,7 @@ var uuid_1 = require("uuid");
48
48
  var utils_1 = require("./utils");
49
49
  var pkg = require('../package.json');
50
50
  var cliVersion = pkg.version;
51
- var frameworks = ['react', 'vue', 'vue3', 'vue3vite'];
51
+ var frameworks = ['react', 'vue', 'vue3', 'vue3vite', 'angular'];
52
52
  var jQuery = 'jQuery';
53
53
  var templates = ['umi'];
54
54
  /** 项目类型 */
@@ -92,7 +92,7 @@ var create = function (pluginName, options) { return __awaiter(void 0, void 0, v
92
92
  value: ProjectTypeEnum.MICROPLUGIN
93
93
  },
94
94
  {
95
- name: '字段组件(替换系统内置字段组件)',
95
+ name: '属性组件(替换系统内置属性组件)',
96
96
  value: ProjectTypeEnum.MICROFIELD
97
97
  },
98
98
  {
@@ -100,7 +100,7 @@ var create = function (pluginName, options) { return __awaiter(void 0, void 0, v
100
100
  value: ProjectTypeEnum.MICROAPP
101
101
  },
102
102
  {
103
- name: '按钮组件(自定义标准对象按钮行为、扩展业务后台)',
103
+ name: '按钮组件(自定义标准实体按钮行为、扩展业务后台)',
104
104
  value: ProjectTypeEnum.MICROBUTTON
105
105
  },
106
106
  // {
@@ -184,7 +184,7 @@ var create = function (pluginName, options) { return __awaiter(void 0, void 0, v
184
184
  if (type === ProjectTypeEnum.SCRIPT) {
185
185
  templateName = 'maxelms-script';
186
186
  }
187
- // React 字段、页面组件,增加 umi 模版
187
+ // React 属性、页面组件,增加 umi 模版
188
188
  if (framework === 'react') {
189
189
  if (TEMPLATE && templates.includes(TEMPLATE))
190
190
  templateName += "-".concat(TEMPLATE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxelms/create-plugin-cli",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "main": "./bin/index.js",
5
5
  "author": "jackc_001",
6
6
  "bin": {
@@ -43,4 +43,4 @@
43
43
  "typescript": "4.7.3"
44
44
  },
45
45
  "gitHead": "d034472e8762a7b6ff01bafec131911ded8b2d51"
46
- }
46
+ }
@@ -0,0 +1,3 @@
1
+
2
+ const rule = require('@max-kit/eslint')
3
+ module.exports = rule
@@ -0,0 +1,5 @@
1
+ # Maxelms Custom Plugin
2
+
3
+ ## 功能介绍
4
+
5
+ ## 使用说明
@@ -0,0 +1,3 @@
1
+ {
2
+ "configurationType": "<%= configurationType %>"
3
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "<%= pluginName %>",
3
+ "version": "1.0.0",
4
+ "scripts": {
5
+ "start": "webpack serve --mode development",
6
+ "build": "webpack --mode production && maxelms-plugin-cli -c"
7
+ },
8
+ "dependencies": {
9
+ "@angular/common": "13.0.0",
10
+ "@angular/core": "13.0.0",
11
+ "@angular/platform-browser": "13.0.0",
12
+ "@angular/platform-browser-dynamic": "13.0.0",
13
+ "@maxelms/create-plugin-cli": "1.1.24",
14
+ "@maxelms/create-pulgin-api": "1.0.0",
15
+ "@ngtools/webpack": "13",
16
+ "css-loader": "7.1.2",
17
+ "raw-loader": "4.0.2",
18
+ "rxjs": "7.0.0",
19
+ "single-spa": "4.0.0",
20
+ "single-spa-angular": "4.3.1",
21
+ "to-string-loader": "1.2.0"
22
+ },
23
+ "devDependencies": {
24
+ "@angular-devkit/build-angular": "13.0.0",
25
+ "@angular/compiler": "13.0.0",
26
+ "@angular/compiler-cli": "13.0.0",
27
+ "copy-webpack-plugin": "11.0.0",
28
+ "html-webpack-plugin": "5.5.0",
29
+ "ts-loader": "9.3.1",
30
+ "typescript": "4.4.4",
31
+ "webpack": "5.75.0",
32
+ "webpack-cli": "5.0.0",
33
+ "webpack-dev-server": "4.15.0"
34
+ },
35
+ "resolutions": {
36
+ "@types/node": "18.16.19"
37
+ }
38
+ }