@giteeteam/apps-cli 0.1.11 → 0.1.12
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/dist/index.js +9 -6
- package/package.json +2 -2
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.
|
|
29
|
+
var version = "0.1.12";
|
|
30
30
|
|
|
31
31
|
const packageApp = async (outputDir, manifest, _copyFiles = []) => {
|
|
32
32
|
// add copy file manifest
|
|
@@ -161,12 +161,13 @@ var run$1 = async (opts) => {
|
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
var build = async (options) => {
|
|
164
|
+
const { input = 'src', output = 'dist', prod, copy, zip } = options;
|
|
164
165
|
await run$1({
|
|
165
|
-
outputDir: path__default["default"].resolve(
|
|
166
|
-
inputDir: path__default["default"].resolve(
|
|
167
|
-
prod: !!
|
|
168
|
-
copyFiles:
|
|
169
|
-
zip:
|
|
166
|
+
outputDir: path__default["default"].resolve(output),
|
|
167
|
+
inputDir: path__default["default"].resolve(input),
|
|
168
|
+
prod: !!prod,
|
|
169
|
+
copyFiles: copy,
|
|
170
|
+
zip: zip,
|
|
170
171
|
});
|
|
171
172
|
};
|
|
172
173
|
|
|
@@ -331,6 +332,8 @@ program
|
|
|
331
332
|
.option('--prod', 'build in production')
|
|
332
333
|
.option('--no-zip', 'no archive')
|
|
333
334
|
.option('-c --copy [letters...]', 'copy files')
|
|
335
|
+
.option('-i --input [dir]', 'input dir')
|
|
336
|
+
.option('-o --output [dir]', 'output dir')
|
|
334
337
|
.action(build);
|
|
335
338
|
program.command('create [name]').action(create);
|
|
336
339
|
program.parse(process.argv);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@giteeteam/apps-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Giteeteam Apps cli",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"@types/inquirer": "^8.2.1",
|
|
57
57
|
"@types/uuid": "^8.3.4"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "0030d0a92683b04230c31a1f27b747a5c73480cb"
|
|
60
60
|
}
|