zarro 1.195.0 → 1.197.0
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/gulp-tasks/modules/dotnet-cli.js +27 -0
- package/package.json +1 -1
- package/types.d.ts +21 -0
|
@@ -1153,7 +1153,34 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
1153
1153
|
clearCaches.httpCache = DotNetCache.httpCache;
|
|
1154
1154
|
clearCaches.globalPackages = DotNetCache.globalPackages;
|
|
1155
1155
|
clearCaches.temp = DotNetCache.temp;
|
|
1156
|
+
async function run(opts) {
|
|
1157
|
+
verifyExists(opts, `no options passed to create`);
|
|
1158
|
+
verifyNonEmptyString(opts.target, `target was not specified`);
|
|
1159
|
+
const args = ["run", "--project", opts.target];
|
|
1160
|
+
pushConfiguration(args, opts.configuration);
|
|
1161
|
+
pushIfSet(args, opts.framework, "--framework");
|
|
1162
|
+
pushRuntime(args, opts);
|
|
1163
|
+
pushIfSet(args, opts.launchProfile, "--launch-profile");
|
|
1164
|
+
pushFlag(args, opts.noLaunchProfile, "--no-launch-profile");
|
|
1165
|
+
pushFlag(args, opts.noBuild, "--no-build");
|
|
1166
|
+
pushFlag(args, opts.interactive, "--interactive");
|
|
1167
|
+
pushFlag(args, opts.noRestore, "--no-restore");
|
|
1168
|
+
pushFlag(args, opts.noSelfContained, "--no-self-contained");
|
|
1169
|
+
pushFlag(args, opts.selfContained, "--self-contained");
|
|
1170
|
+
pushIfSet(args, opts.os, "--os");
|
|
1171
|
+
pushFlag(args, opts.disableBuildServers, "--disable-build-servers");
|
|
1172
|
+
pushIfSet(args, opts.artifactsPath, "--artifacts-path");
|
|
1173
|
+
const programArgs = opts.args || [];
|
|
1174
|
+
if (programArgs.length) {
|
|
1175
|
+
args.push("--");
|
|
1176
|
+
for (const arg of programArgs) {
|
|
1177
|
+
args.push(q(arg));
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
return runDotNetWith(args);
|
|
1181
|
+
}
|
|
1156
1182
|
module.exports = {
|
|
1183
|
+
run,
|
|
1157
1184
|
test,
|
|
1158
1185
|
build,
|
|
1159
1186
|
pack,
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1543,6 +1543,25 @@ declare global {
|
|
|
1543
1543
|
output?: string;
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
|
+
interface DotNetRunProjectOptions
|
|
1547
|
+
extends DotNetMsBuildOptions {
|
|
1548
|
+
target: string;
|
|
1549
|
+
framework?: string;
|
|
1550
|
+
runtime?: string;
|
|
1551
|
+
configuration?: string;
|
|
1552
|
+
launchProfile?: string;
|
|
1553
|
+
noLaunchProfile?: boolean;
|
|
1554
|
+
noBuild?: boolean;
|
|
1555
|
+
interactive?: boolean;
|
|
1556
|
+
noRestore?: boolean;
|
|
1557
|
+
selfContained?: boolean;
|
|
1558
|
+
noSelfContained?: boolean;
|
|
1559
|
+
os?: string;
|
|
1560
|
+
disableBuildServers?: boolean;
|
|
1561
|
+
artifactsPath?: string;
|
|
1562
|
+
args?: string[]
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1546
1565
|
interface DotNetNugetPushOptions
|
|
1547
1566
|
extends DotNetMsBuildOptions {
|
|
1548
1567
|
target: string;
|
|
@@ -1707,8 +1726,10 @@ declare global {
|
|
|
1707
1726
|
globalPackages: DotNetCache;
|
|
1708
1727
|
temp: DotNetCache;
|
|
1709
1728
|
}
|
|
1729
|
+
type DotNetRunProjectFunction = (opts: DotNetRunProjectOptions) => Promise<SystemResult | SystemError>;
|
|
1710
1730
|
|
|
1711
1731
|
interface DotNetCli {
|
|
1732
|
+
run: DotNetRunProjectFunction;
|
|
1712
1733
|
clean: DotNetCleanFunction;
|
|
1713
1734
|
build: DotNetBuildFunction;
|
|
1714
1735
|
test: DotNetTestFunction;
|