@maxelms/create-plugin-cli 1.1.34 → 1.1.35

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 (50) hide show
  1. package/lib/index.js +8 -9
  2. package/package.json +1 -1
  3. package/templates/angular-micro-app/webpack.config.js +1 -3
  4. package/templates/angular-micro-button/webpack.config.js +0 -2
  5. package/templates/angular-micro-field/webpack.config.js +2 -4
  6. package/templates/angular-micro-plugin/webpack.config.js +1 -3
  7. package/templates/react-micro-field/webpack.config.js.tpl +1 -4
  8. package/templates/react-micro-field-umi/config/plugin.ts +0 -3
  9. package/templates/react-micro-plugin/webpack.config.js.tpl +1 -3
  10. package/templates/react-micro-plugin-umi/config/plugin.ts +0 -3
  11. package/templates/vue-micro-button/vue.config.js.tpl +1 -2
  12. package/templates/vue-micro-field/vue.config.js.tpl +1 -2
  13. package/templates/vue-micro-plugin/vue.config.js.tpl +1 -2
  14. package/templates/vue3-micro-app/vue.config.js.tpl +1 -0
  15. package/templates/vue3-micro-button/vue.config.js +7 -3
  16. package/templates/vue3-micro-field/vue.config.js +7 -3
  17. package/templates/vue3-micro-plugin/vue.config.js +7 -3
  18. package/templates/angular-micro-app/examples/main.css +0 -2
  19. package/templates/angular-micro-app/examples/main.js +0 -2
  20. package/templates/angular-micro-app/examples/main.js.LICENSE.txt +0 -52
  21. package/templates/angular-micro-app/examples/playground.html +0 -1
  22. package/templates/angular-micro-app/examples/react-dom.production.min.js +0 -2
  23. package/templates/angular-micro-app/examples/react-dom.production.min.js.LICENSE.txt +0 -8
  24. package/templates/angular-micro-app/examples/react.production.min.js +0 -2
  25. package/templates/angular-micro-app/examples/react.production.min.js.LICENSE.txt +0 -8
  26. package/templates/angular-micro-app/examples/vue.runtime.global.js +0 -9054
  27. package/templates/angular-micro-app/examples/zone.umd.min.js +0 -2
  28. package/templates/angular-micro-app/examples/zone.umd.min.js.LICENSE.txt +0 -29
  29. package/templates/angular-micro-field/examples/main.css +0 -2
  30. package/templates/angular-micro-field/examples/main.js +0 -2
  31. package/templates/angular-micro-field/examples/main.js.LICENSE.txt +0 -52
  32. package/templates/angular-micro-field/examples/playground.html +0 -1
  33. package/templates/angular-micro-field/examples/react-dom.production.min.js +0 -2
  34. package/templates/angular-micro-field/examples/react-dom.production.min.js.LICENSE.txt +0 -8
  35. package/templates/angular-micro-field/examples/react.production.min.js +0 -2
  36. package/templates/angular-micro-field/examples/react.production.min.js.LICENSE.txt +0 -8
  37. package/templates/angular-micro-field/examples/vue.runtime.global.js +0 -9054
  38. package/templates/angular-micro-field/examples/zone.umd.min.js +0 -2
  39. package/templates/angular-micro-field/examples/zone.umd.min.js.LICENSE.txt +0 -29
  40. package/templates/playground/dist/main.css +0 -2
  41. package/templates/playground/dist/main.js +0 -2
  42. package/templates/playground/dist/main.js.LICENSE.txt +0 -52
  43. package/templates/playground/dist/playground.html +0 -1
  44. package/templates/playground/dist/react-dom.production.min.js +0 -2
  45. package/templates/playground/dist/react-dom.production.min.js.LICENSE.txt +0 -8
  46. package/templates/playground/dist/react.production.min.js +0 -2
  47. package/templates/playground/dist/react.production.min.js.LICENSE.txt +0 -8
  48. package/templates/playground/dist/vue.runtime.global.js +0 -9054
  49. package/templates/playground/dist/zone.umd.min.js +0 -2
  50. package/templates/playground/dist/zone.umd.min.js.LICENSE.txt +0 -29
package/lib/index.js CHANGED
@@ -212,15 +212,14 @@ var create = function (pluginName, options) { return __awaiter(void 0, void 0, v
212
212
  return [4 /*yield*/, (0, utils_1.writeFiles)(targetDir, files)];
213
213
  case 9:
214
214
  _e.sent();
215
- if (![
216
- ProjectTypeEnum.MICROFIELD,
217
- ProjectTypeEnum.MICROPLUGIN,
218
- ].includes(type)) return [3 /*break*/, 11];
219
- return [4 /*yield*/, createPlayground(targetDir)];
220
- case 10:
221
- _e.sent();
222
- _e.label = 11;
223
- case 11:
215
+ // if (
216
+ // [
217
+ // ProjectTypeEnum.MICROFIELD,
218
+ // ProjectTypeEnum.MICROPLUGIN,
219
+ // ].includes(type)
220
+ // ) {
221
+ // await createPlayground(targetDir);
222
+ // }
224
223
  console.log(chalk_1.default.greenBright("\n \u9879\u76EE\u521B\u5EFA\u6210\u529F\uFF01\n\n cd ".concat(pluginName, "\n\n yarn && yarn start\n ")));
225
224
  return [2 /*return*/];
226
225
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxelms/create-plugin-cli",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
4
4
  "main": "./bin/index.js",
5
5
  "author": "jackc_001",
6
6
  "bin": {
@@ -17,7 +17,7 @@ const config = {
17
17
  : '[name].bundle.js',
18
18
  },
19
19
  devServer: {
20
- open: ['/', '/playground.html'],
20
+ open: ['/'],
21
21
  host: 'localhost',
22
22
  port: 8080,
23
23
  headers: {
@@ -41,8 +41,6 @@ const config = {
41
41
  },
42
42
  },
43
43
  static: [{
44
- directory: path.join(__dirname, 'examples/'),
45
- }, {
46
44
  directory: path.join(__dirname, 'public/'),
47
45
  }],
48
46
  },
@@ -41,8 +41,6 @@ const config = {
41
41
  },
42
42
  },
43
43
  static: [{
44
- directory: path.join(__dirname, 'examples/'),
45
- }, {
46
44
  directory: path.join(__dirname, 'public/'),
47
45
  }],
48
46
  },
@@ -17,7 +17,7 @@ const config = {
17
17
  : '[name].bundle.js',
18
18
  },
19
19
  devServer: {
20
- open: ['/', '/playground.html'],
20
+ open: ['/'],
21
21
  host: 'localhost',
22
22
  port: 8080,
23
23
  headers: {
@@ -40,9 +40,7 @@ const config = {
40
40
  cookieDomainRewrite: '',
41
41
  },
42
42
  },
43
- static: [{
44
- directory: path.join(__dirname, 'examples/'),
45
- }, {
43
+ static: [ {
46
44
  directory: path.join(__dirname, 'public/'),
47
45
  }],
48
46
  },
@@ -17,7 +17,7 @@ const config = {
17
17
  : '[name].bundle.js',
18
18
  },
19
19
  devServer: {
20
- open: ['/', '/playground.html'],
20
+ open: ['/'],
21
21
  host: 'localhost',
22
22
  port: 8080,
23
23
  headers: {
@@ -41,8 +41,6 @@ const config = {
41
41
  },
42
42
  },
43
43
  static: [{
44
- directory: path.join(__dirname, 'examples/'),
45
- }, {
46
44
  directory: path.join(__dirname, 'public/'),
47
45
  }],
48
46
  },
@@ -27,15 +27,12 @@ const config = {
27
27
  : '[name].bundle.js',
28
28
  },
29
29
  devServer: {
30
- open: ['/', '/playground.html'],
30
+ open: ['/'],
31
31
  host: 'localhost',
32
32
  port: 8080,
33
33
  headers: {
34
34
  'Access-Control-Allow-Origin': '*',
35
35
  },
36
- static: {
37
- directory: path.join(__dirname, 'examples/'),
38
- },
39
36
  },
40
37
  plugins: [
41
38
  new CleanWebpackPlugin(),
@@ -8,9 +8,6 @@ const pluginConfig = {
8
8
  port: 8080,
9
9
  headers: {
10
10
  'Access-Control-Allow-Origin': '*',
11
- },
12
- static: {
13
- directory: path.join(__dirname, 'examples/'),
14
11
  }
15
12
  }
16
13
  }
@@ -27,15 +27,13 @@ const config = {
27
27
  : '[name].bundle.js',
28
28
  },
29
29
  devServer: {
30
- open: ['/', '/playground.html'],
30
+ open: ['/'],
31
31
  host: 'localhost',
32
32
  port: 8080,
33
33
  headers: {
34
34
  'Access-Control-Allow-Origin': '*',
35
35
  },
36
36
  static: [{
37
- directory: path.join(__dirname, 'examples/'),
38
- }, {
39
37
  directory: path.join(__dirname, 'public/')
40
38
  }],
41
39
  },
@@ -8,9 +8,6 @@ const pluginConfig = {
8
8
  port: 8080,
9
9
  headers: {
10
10
  'Access-Control-Allow-Origin': '*',
11
- },
12
- static: {
13
- directory: path.join(__dirname, 'examples/'),
14
11
  }
15
12
  }
16
13
  }
@@ -28,8 +28,7 @@ module.exports = {
28
28
  "Access-Control-Allow-Origin": "*",
29
29
  },
30
30
  port: 8080,
31
- // open: ['/', '/playground.html'],
32
- // contentBase: path.join(__dirname, 'examples/'),
31
+ // open: ['/'],
33
32
  },
34
33
  chainWebpack: (config) => {
35
34
  config.module
@@ -28,8 +28,7 @@ module.exports = {
28
28
  "Access-Control-Allow-Origin": "*",
29
29
  },
30
30
  port: 8080,
31
- open: ['/', '/playground.html'],
32
- contentBase: path.join(__dirname, 'examples/'),
31
+ open: ['/']
33
32
  },
34
33
  chainWebpack: (config) => {
35
34
  config.module
@@ -28,8 +28,7 @@ module.exports = {
28
28
  "Access-Control-Allow-Origin": "*",
29
29
  },
30
30
  port: 8080,
31
- open: ['/', '/playground.html'],
32
- contentBase: path.join(__dirname, 'examples/'),
31
+ open: ['/']
33
32
  },
34
33
  chainWebpack: (config) => {
35
34
  config.module
@@ -29,6 +29,7 @@ module.exports = {
29
29
  resolve: {
30
30
  alias: {
31
31
  '@': resolve('src'),
32
+ 'vue$': 'vue/dist/vue.esm-bundler.js'
32
33
  },
33
34
  },
34
35
  output: {
@@ -21,8 +21,7 @@ module.exports = {
21
21
  "Access-Control-Allow-Origin": "*",
22
22
  },
23
23
  port: 8080,
24
- open: ['/', '/playground.html'],
25
- contentBase: path.join(__dirname, 'examples/'),
24
+ open: ['/']
26
25
  },
27
26
  chainWebpack: (config) => {
28
27
  config.module
@@ -41,6 +40,11 @@ module.exports = {
41
40
  { from: 'README.md' },
42
41
  { from: 'manifest.json' },
43
42
  ]),
44
- ]
43
+ ],
44
+ resolve: {
45
+ alias: {
46
+ 'vue$': 'vue/dist/vue.esm-bundler.js'
47
+ }
48
+ }
45
49
  },
46
50
  };
@@ -21,8 +21,7 @@ module.exports = {
21
21
  "Access-Control-Allow-Origin": "*",
22
22
  },
23
23
  port: 8080,
24
- open: ['/', '/playground.html'],
25
- contentBase: path.join(__dirname, 'examples/'),
24
+ open: ['/']
26
25
  },
27
26
  chainWebpack: (config) => {
28
27
  config.module
@@ -41,6 +40,11 @@ module.exports = {
41
40
  { from: 'README.md' },
42
41
  { from: 'manifest.json' },
43
42
  ]),
44
- ]
43
+ ],
44
+ resolve: {
45
+ alias: {
46
+ 'vue$': 'vue/dist/vue.esm-bundler.js'
47
+ }
48
+ }
45
49
  },
46
50
  };
@@ -21,8 +21,7 @@ module.exports = {
21
21
  "Access-Control-Allow-Origin": "*",
22
22
  },
23
23
  port: 8080,
24
- open: ['/', '/playground.html'],
25
- contentBase: path.join(__dirname, 'examples/'),
24
+ open: ['/']
26
25
  },
27
26
  chainWebpack: (config) => {
28
27
  config.module
@@ -41,6 +40,11 @@ module.exports = {
41
40
  { from: 'README.md' },
42
41
  { from: 'manifest.json' },
43
42
  ]),
44
- ]
43
+ ],
44
+ resolve: {
45
+ alias: {
46
+ 'vue$': 'vue/dist/vue.esm-bundler.js'
47
+ }
48
+ }
45
49
  },
46
50
  };