@qse/edu-scripts 1.14.6 → 1.14.7
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/CHANGELOG.md +4 -0
- package/lib/cli.js +5 -0
- package/lib/deploy.js +9 -0
- package/package.json +1 -1
- package/src/cli.js +6 -0
- package/src/deploy.js +9 -0
package/CHANGELOG.md
CHANGED
package/lib/cli.js
CHANGED
|
@@ -32,6 +32,11 @@ require("yargs").usage(`教育工程化 webpack5 基础框架
|
|
|
32
32
|
desc: "上传到公文",
|
|
33
33
|
default: false,
|
|
34
34
|
boolean: true
|
|
35
|
+
}).option("compositionshelves", {
|
|
36
|
+
alias: "c",
|
|
37
|
+
desc: "上传到文曲智阅",
|
|
38
|
+
default: false,
|
|
39
|
+
boolean: true
|
|
35
40
|
}),
|
|
36
41
|
(args) => require("./deploy")(args)
|
|
37
42
|
).command(
|
package/lib/deploy.js
CHANGED
|
@@ -29,6 +29,10 @@ async function normalDeploy(args) {
|
|
|
29
29
|
d: {
|
|
30
30
|
context: "eduwebngv1",
|
|
31
31
|
folder: "documentshelves"
|
|
32
|
+
},
|
|
33
|
+
c: {
|
|
34
|
+
context: "eduwebngv1",
|
|
35
|
+
folder: "compositionshelves"
|
|
32
36
|
}
|
|
33
37
|
};
|
|
34
38
|
const resolve = (...pathSegments) => path.resolve(process.cwd(), ...pathSegments);
|
|
@@ -104,6 +108,9 @@ async function normalDeploy(args) {
|
|
|
104
108
|
if (args.d) {
|
|
105
109
|
presets.push(presetConfig.d);
|
|
106
110
|
}
|
|
111
|
+
if (args.c) {
|
|
112
|
+
presets.push(presetConfig.c);
|
|
113
|
+
}
|
|
107
114
|
if (presets.length === 0) {
|
|
108
115
|
console.log(
|
|
109
116
|
`
|
|
@@ -115,6 +122,8 @@ async function normalDeploy(args) {
|
|
|
115
122
|
${chalk.green("edu-scripts deploy -b")}
|
|
116
123
|
# 部署代码 公文
|
|
117
124
|
${chalk.green("edu-scripts deploy -d")}
|
|
125
|
+
# 部署代码 文曲智阅
|
|
126
|
+
${chalk.green("edu-scripts deploy -c")}
|
|
118
127
|
# 部署代码 校端 + 局端
|
|
119
128
|
${chalk.green("edu-scripts deploy -s -b")}
|
|
120
129
|
`
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
package/src/deploy.js
CHANGED
|
@@ -31,6 +31,10 @@ async function normalDeploy(args) {
|
|
|
31
31
|
context: 'eduwebngv1',
|
|
32
32
|
folder: 'documentshelves',
|
|
33
33
|
},
|
|
34
|
+
c: {
|
|
35
|
+
context: 'eduwebngv1',
|
|
36
|
+
folder: 'compositionshelves',
|
|
37
|
+
},
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
const resolve = (...pathSegments) => path.resolve(process.cwd(), ...pathSegments)
|
|
@@ -134,6 +138,9 @@ async function normalDeploy(args) {
|
|
|
134
138
|
if (args.d) {
|
|
135
139
|
presets.push(presetConfig.d)
|
|
136
140
|
}
|
|
141
|
+
if (args.c) {
|
|
142
|
+
presets.push(presetConfig.c)
|
|
143
|
+
}
|
|
137
144
|
if (presets.length === 0) {
|
|
138
145
|
console.log(
|
|
139
146
|
`
|
|
@@ -145,6 +152,8 @@ async function normalDeploy(args) {
|
|
|
145
152
|
${chalk.green('edu-scripts deploy -b')}
|
|
146
153
|
# 部署代码 公文
|
|
147
154
|
${chalk.green('edu-scripts deploy -d')}
|
|
155
|
+
# 部署代码 文曲智阅
|
|
156
|
+
${chalk.green('edu-scripts deploy -c')}
|
|
148
157
|
# 部署代码 校端 + 局端
|
|
149
158
|
${chalk.green('edu-scripts deploy -s -b')}
|
|
150
159
|
`
|