@mpxjs/cli 3.1.0-beta.1 → 3.1.1
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/bin/mpx.js +1 -1
- package/lib/plugins.js +12 -4
- package/lib/preset.js +12 -4
- package/package.json +2 -2
package/bin/mpx.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const path = require('path')
|
|
4
4
|
const execa = require('execa')
|
|
5
5
|
const minimist = require('minimist')
|
|
6
|
-
const vueCliBinPath =
|
|
6
|
+
const vueCliBinPath = require.resolve('@vue/cli/bin/vue')
|
|
7
7
|
const builtInPreset = require('../lib/preset')
|
|
8
8
|
const inquirer = require('inquirer')
|
|
9
9
|
const prompts = require('../lib/prompts')
|
package/lib/plugins.js
CHANGED
|
@@ -2,16 +2,24 @@ const prefix = '@mpxjs/vue-cli-plugin-mpx'
|
|
|
2
2
|
|
|
3
3
|
const plugins = {
|
|
4
4
|
tsSupport: {
|
|
5
|
-
[`${prefix}-typescript`]: {
|
|
5
|
+
[`${prefix}-typescript`]: {
|
|
6
|
+
version: '^1.0.0'
|
|
7
|
+
}
|
|
6
8
|
},
|
|
7
9
|
cloudFunc: {
|
|
8
|
-
[`${prefix}-cloud-func`]: {
|
|
10
|
+
[`${prefix}-cloud-func`]: {
|
|
11
|
+
version: '^1.0.0'
|
|
12
|
+
}
|
|
9
13
|
},
|
|
10
14
|
isPlugin: {
|
|
11
|
-
[`${prefix}-plugin-mode`]: {
|
|
15
|
+
[`${prefix}-plugin-mode`]: {
|
|
16
|
+
version: '^1.0.0'
|
|
17
|
+
}
|
|
12
18
|
},
|
|
13
19
|
transWeb: {
|
|
14
|
-
[`${prefix}-web`]: {
|
|
20
|
+
[`${prefix}-web`]: {
|
|
21
|
+
version: '^1.0.0'
|
|
22
|
+
}
|
|
15
23
|
}
|
|
16
24
|
// TODO: 添加其他插件配置
|
|
17
25
|
}
|
package/lib/preset.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
cssPreprocessor: 'stylus',
|
|
3
3
|
plugins: {
|
|
4
|
-
'@mpxjs/mpx-cli-service': {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'@mpxjs/vue-cli-plugin-mpx
|
|
4
|
+
'@mpxjs/mpx-cli-service': {
|
|
5
|
+
version: '^1.0.0'
|
|
6
|
+
},
|
|
7
|
+
'@mpxjs/vue-cli-plugin-mpx': {
|
|
8
|
+
version: '^1.0.0'
|
|
9
|
+
},
|
|
10
|
+
'@mpxjs/vue-cli-plugin-mpx-mp': {
|
|
11
|
+
version: '^1.0.0'
|
|
12
|
+
},
|
|
13
|
+
'@mpxjs/vue-cli-plugin-mpx-eslint': {
|
|
14
|
+
version: '^1.0.0'
|
|
15
|
+
}
|
|
8
16
|
}
|
|
9
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "Apache",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@vue/cli": "^5.0.0
|
|
13
|
+
"@vue/cli": "^5.0.0",
|
|
14
14
|
"execa": "^4.1.0",
|
|
15
15
|
"lodash.merge": "^4.6.2",
|
|
16
16
|
"shelljs": "^0.8.4"
|