@giteeteam/apps-cli 0.1.9 → 0.1.10

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 (2) hide show
  1. package/dist/index.js +12 -8
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ var simpleGit__default = /*#__PURE__*/_interopDefaultLegacy(simpleGit);
26
26
  var readline__default = /*#__PURE__*/_interopDefaultLegacy(readline);
27
27
  var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
28
28
 
29
- var version = "0.1.9";
29
+ var version = "0.1.10";
30
30
 
31
31
  const packageApp = async (outputDir, manifest, _copyFiles = []) => {
32
32
  // add copy file manifest
@@ -134,7 +134,7 @@ const getManifestObject = async () => {
134
134
  };
135
135
 
136
136
  var run$1 = async (opts) => {
137
- const { outputDir, inputDir, prod, copyFiles } = opts;
137
+ const { outputDir, inputDir, prod, copyFiles, zip } = opts;
138
138
  const manifest = await getManifestObject();
139
139
  // bundle
140
140
  await execActionWithSpinner({
@@ -148,12 +148,14 @@ var run$1 = async (opts) => {
148
148
  error: 'package failed',
149
149
  succeed: 'package success',
150
150
  }, () => packageApp(outputDir, manifest, copyFiles));
151
- // archive
152
- await execActionWithSpinner({
153
- start: 'start archive',
154
- error: 'archive failed',
155
- succeed: 'archive success',
156
- }, () => archiveApp(outputDir));
151
+ if (zip) {
152
+ // archive
153
+ await execActionWithSpinner({
154
+ start: 'start archive',
155
+ error: 'archive failed',
156
+ succeed: 'archive success',
157
+ }, () => archiveApp(outputDir));
158
+ }
157
159
  };
158
160
 
159
161
  var build = async (options) => {
@@ -162,6 +164,7 @@ var build = async (options) => {
162
164
  inputDir: path__default["default"].resolve('src'),
163
165
  prod: !!options.prod,
164
166
  copyFiles: options.copy,
167
+ zip: options.zip,
165
168
  });
166
169
  };
167
170
 
@@ -324,6 +327,7 @@ program.version(version).description('Giteeteam Apps Cli');
324
327
  program
325
328
  .command('build')
326
329
  .option('--prod', 'build in production')
330
+ .option('--no-zip', 'no archive')
327
331
  .option('-c --copy [letters...]', 'copy files')
328
332
  .action(build);
329
333
  program.command('create [name]').action(create);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Giteeteam Apps cli",
5
5
  "keywords": [
6
6
  "typescript",
@@ -55,6 +55,5 @@
55
55
  "@types/fs-extra": "^9.0.13",
56
56
  "@types/inquirer": "^8.2.1",
57
57
  "@types/uuid": "^8.3.4"
58
- },
59
- "gitHead": "09a6b545da63b26d19524d653bf78a79c72de270"
58
+ }
60
59
  }