@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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # 更新日志
2
2
 
3
+ ## 1.14.7 (2024-11-22)
4
+
5
+ - feat: 增加文曲智阅部署
6
+
3
7
  ## 1.14.6 (2024-08-12)
4
8
 
5
9
  - feat: 增加开发环境启动后的消息提示
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qse/edu-scripts",
3
- "version": "1.14.6",
3
+ "version": "1.14.7",
4
4
  "author": "Kinoko",
5
5
  "license": "MIT",
6
6
  "description": "教育工程化基础框架",
package/src/cli.js CHANGED
@@ -47,6 +47,12 @@ require('yargs')
47
47
  desc: '上传到公文',
48
48
  default: false,
49
49
  boolean: true,
50
+ })
51
+ .option('compositionshelves', {
52
+ alias: 'c',
53
+ desc: '上传到文曲智阅',
54
+ default: false,
55
+ boolean: true,
50
56
  }),
51
57
  (args) => require('./deploy')(args)
52
58
  )
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
  `