@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
64 lines (50 loc) • 1.62 kB
text/typescript
import packNugetModule from '@microsoft/windows-admin-center-sdk/tools/pack-nuget';
import { Utilities } from './utilities';
interface PackOptions {
rootPath: string;
version: string;
backendVersion: string;
icon: string;
readme: string;
license: string;
company: string;
copyright: string;
targetPath: string;
// obsolete due to new nuget feature
iconUrl: string;
}
export module PackModule {
const argv = Utilities.gulpArgv();
const packNuget = packNugetModule as any;
export function pack(cb) {
const options = <PackOptions>{};
if (argv['rootPath']) {
options.rootPath = argv['rootPath'] as string;
}
if (argv['version']) {
options.version = argv['version'] as string;
}
if (argv['backendVersion']) {
options.backendVersion = argv['backendVersion'] as string;
}
if (argv['icon']) {
options.icon = argv['icon'] as string;
}
if (argv['readme']) {
options.readme = argv['readme'] as string;
}
if (argv['license']) {
options.license = argv['license'] as string;
}
if (argv['company']) {
options.company = argv['company'] as string;
}
if (argv['copyright']) {
options.copyright = argv['copyright'] as string;
}
if (argv['targetPath']) {
options.targetPath = argv['targetPath'] as string;
}
packNuget(options, cb);
}
}