zarro 1.157.0 → 1.158.2
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.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(function () {
|
|
3
|
+
const gulp = requireModule("gulp");
|
|
4
|
+
gulp.task("generate-local-task", async () => {
|
|
5
|
+
const path = require("path"), { ask } = requireModule("ask"), rawName = await ask("name of new task"), { writeTextFile, fileExists } = require("yafs"), taskName = rawName.trim().replace(/\s+/g, "-"), target = path.join("local-tasks", `${taskName}.ts`);
|
|
6
|
+
if (await fileExists(target)) {
|
|
7
|
+
throw new Error(`File already exists at '${target}' - remove it first or rename your task`);
|
|
8
|
+
}
|
|
9
|
+
await writeTextFile(target, template.replace("%TASK_NAME%", taskName));
|
|
10
|
+
});
|
|
11
|
+
const template = `
|
|
12
|
+
/// <reference path="../node_modules/zarro/types.d.ts" />
|
|
13
|
+
const
|
|
14
|
+
gulp = requireModule<Gulp>("gulp");
|
|
15
|
+
gulp.task(\`%TASK_NAME%\`, async () => {
|
|
16
|
+
});
|
|
17
|
+
`;
|
|
18
|
+
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zarro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.158.2",
|
|
4
4
|
"description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
|
|
5
5
|
"bin": {
|
|
6
6
|
"zarro": "./index.js"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"gulp-filter": "^6.0.0",
|
|
69
69
|
"gulp-msbuild": "^0.10.0",
|
|
70
70
|
"lodash.kebabcase": "^4.1.1",
|
|
71
|
-
"node-nuget-client": "^0.
|
|
71
|
+
"node-nuget-client": "^0.12.0",
|
|
72
72
|
"npm-run-all": "^4.1.5",
|
|
73
73
|
"plugin-error": "^1.0.1",
|
|
74
74
|
"readline": "^1.3.0",
|