@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.
- package/lib/index.js +8 -9
- package/package.json +1 -1
- package/templates/angular-micro-app/webpack.config.js +1 -3
- package/templates/angular-micro-button/webpack.config.js +0 -2
- package/templates/angular-micro-field/webpack.config.js +2 -4
- package/templates/angular-micro-plugin/webpack.config.js +1 -3
- package/templates/react-micro-field/webpack.config.js.tpl +1 -4
- package/templates/react-micro-field-umi/config/plugin.ts +0 -3
- package/templates/react-micro-plugin/webpack.config.js.tpl +1 -3
- package/templates/react-micro-plugin-umi/config/plugin.ts +0 -3
- package/templates/vue-micro-button/vue.config.js.tpl +1 -2
- package/templates/vue-micro-field/vue.config.js.tpl +1 -2
- package/templates/vue-micro-plugin/vue.config.js.tpl +1 -2
- package/templates/vue3-micro-app/vue.config.js.tpl +1 -0
- package/templates/vue3-micro-button/vue.config.js +7 -3
- package/templates/vue3-micro-field/vue.config.js +7 -3
- package/templates/vue3-micro-plugin/vue.config.js +7 -3
- package/templates/angular-micro-app/examples/main.css +0 -2
- package/templates/angular-micro-app/examples/main.js +0 -2
- package/templates/angular-micro-app/examples/main.js.LICENSE.txt +0 -52
- package/templates/angular-micro-app/examples/playground.html +0 -1
- package/templates/angular-micro-app/examples/react-dom.production.min.js +0 -2
- package/templates/angular-micro-app/examples/react-dom.production.min.js.LICENSE.txt +0 -8
- package/templates/angular-micro-app/examples/react.production.min.js +0 -2
- package/templates/angular-micro-app/examples/react.production.min.js.LICENSE.txt +0 -8
- package/templates/angular-micro-app/examples/vue.runtime.global.js +0 -9054
- package/templates/angular-micro-app/examples/zone.umd.min.js +0 -2
- package/templates/angular-micro-app/examples/zone.umd.min.js.LICENSE.txt +0 -29
- package/templates/angular-micro-field/examples/main.css +0 -2
- package/templates/angular-micro-field/examples/main.js +0 -2
- package/templates/angular-micro-field/examples/main.js.LICENSE.txt +0 -52
- package/templates/angular-micro-field/examples/playground.html +0 -1
- package/templates/angular-micro-field/examples/react-dom.production.min.js +0 -2
- package/templates/angular-micro-field/examples/react-dom.production.min.js.LICENSE.txt +0 -8
- package/templates/angular-micro-field/examples/react.production.min.js +0 -2
- package/templates/angular-micro-field/examples/react.production.min.js.LICENSE.txt +0 -8
- package/templates/angular-micro-field/examples/vue.runtime.global.js +0 -9054
- package/templates/angular-micro-field/examples/zone.umd.min.js +0 -2
- package/templates/angular-micro-field/examples/zone.umd.min.js.LICENSE.txt +0 -29
- package/templates/playground/dist/main.css +0 -2
- package/templates/playground/dist/main.js +0 -2
- package/templates/playground/dist/main.js.LICENSE.txt +0 -52
- package/templates/playground/dist/playground.html +0 -1
- package/templates/playground/dist/react-dom.production.min.js +0 -2
- package/templates/playground/dist/react-dom.production.min.js.LICENSE.txt +0 -8
- package/templates/playground/dist/react.production.min.js +0 -2
- package/templates/playground/dist/react.production.min.js.LICENSE.txt +0 -8
- package/templates/playground/dist/vue.runtime.global.js +0 -9054
- package/templates/playground/dist/zone.umd.min.js +0 -2
- 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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
@@ -17,7 +17,7 @@ const config = {
|
|
|
17
17
|
: '[name].bundle.js',
|
|
18
18
|
},
|
|
19
19
|
devServer: {
|
|
20
|
-
open: ['/'
|
|
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
|
},
|
|
@@ -17,7 +17,7 @@ const config = {
|
|
|
17
17
|
: '[name].bundle.js',
|
|
18
18
|
},
|
|
19
19
|
devServer: {
|
|
20
|
-
open: ['/'
|
|
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: ['/'
|
|
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: ['/'
|
|
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(),
|
|
@@ -27,15 +27,13 @@ const config = {
|
|
|
27
27
|
: '[name].bundle.js',
|
|
28
28
|
},
|
|
29
29
|
devServer: {
|
|
30
|
-
open: ['/'
|
|
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
|
},
|
|
@@ -21,8 +21,7 @@ module.exports = {
|
|
|
21
21
|
"Access-Control-Allow-Origin": "*",
|
|
22
22
|
},
|
|
23
23
|
port: 8080,
|
|
24
|
-
open: ['/'
|
|
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: ['/'
|
|
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: ['/'
|
|
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
|
};
|