Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nx-dotnet/core

Package Overview
Dependencies
Maintainers
1
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx-dotnet/core - npm Package Compare versions

Comparing version 0.0.6-dev.14 to 0.0.6-dev.15

0

executors.json

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

2

package.json
{
"name": "@nx-dotnet/core",
"version": "0.0.6-dev.14",
"version": "0.0.6-dev.15",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "generators": "./generators.json",

@@ -0,0 +0,0 @@ # nx-dotnet

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -21,3 +21,3 @@ import { execSync } from 'child_process';

const cmd = `${this.cliCommand.command} new ${template} ${paramString}`;
return execSync(cmd, {stdio: 'inherit'});
return execSync(cmd, { stdio: 'inherit' });
}

@@ -24,0 +24,0 @@

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ /**

@@ -26,4 +26,4 @@ "use strict";

global: true,
version
}
version,
},
};

@@ -30,0 +30,0 @@ }

@@ -24,10 +24,15 @@ import { execSync } from 'child_process';

global: true,
version
}
}
version,
},
};
} catch (e) {
throw new Error('dotnet not installed. Local support not yet added https://github.com/AgentEnder/nx-dotnet/issues/3');
throw new Error(
'dotnet not installed. Local support not yet added https://github.com/AgentEnder/nx-dotnet/issues/3'
);
}
}
export type LoadedCLI = { command: string; info: { global: boolean; version: string | number; }; };
export type LoadedCLI = {
command: string;
info: { global: boolean; version: string | number };
};

@@ -0,0 +0,0 @@ "use strict";

export * from './dotnet';
export * from './dotnet.client';
export * from './dotnet.factory';

@@ -0,0 +0,0 @@ "use strict";

declare const _default: any;
export default _default;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ExecutorContext } from '@nrwl/devkit';

@@ -8,3 +8,3 @@ "use strict";

const params = {
'-c': options.configuration
'-c': options.configuration,
};

@@ -11,0 +11,0 @@ if (options.versionSuffix) {

@@ -7,7 +7,6 @@ import { BuildExecutorSchema } from './schema';

configuration: 'Debug',
versionSuffix: 1
versionSuffix: 1,
};
describe('Build Executor', () => {
let context: ExecutorContext;

@@ -27,3 +26,3 @@

};
})
});

@@ -30,0 +29,0 @@ it('can run', async () => {

@@ -0,0 +0,0 @@ export interface BuildExecutorSchema {

@@ -10,3 +10,3 @@ {

"type": "string",
"description": "Compiles for a specific framework. The framework must be defined in the project file"
"description": "Compiles for a specific framework. The framework must be defined in the project file"
},

@@ -13,0 +13,0 @@ "versionSuffix": {

@@ -1,5 +0,5 @@

import { ExecutorContext } from "@nrwl/devkit";
import { BuildCommandTypes, CommandParams } from "../../core/dotnet";
import { ExecutorContext } from '@nrwl/devkit';
import { BuildCommandTypes, CommandParams } from '../../core/dotnet';
export declare function ExecuteDotNet(command: BuildCommandTypes, context: ExecutorContext, params: CommandParams): {
success: boolean;
};

@@ -10,3 +10,5 @@ "use strict";

const sourceRoot = context.workspace.projects[context.projectName].root;
const projectFile = fs_1.readdirSync(sourceRoot).find((elm) => { return elm.match(/.*\.([a-zA-Z]{2})(proj)/ig); });
const projectFile = fs_1.readdirSync(sourceRoot).find((elm) => {
return elm.match(/.*\.([a-zA-Z]{2})(proj)/gi);
});
dotnet_1.dotnetCLI(command, projectFile, params);

@@ -13,0 +15,0 @@ return { success: true };

import { Tree } from '@nrwl/devkit';
import { NxDotnetGeneratorSchema } from './schema';
export default function (host: Tree, options: NxDotnetGeneratorSchema): Promise<void>;

@@ -34,2 +34,5 @@ "use strict";

},
test: {
executor: '@nx-dotnet/core:test',
},
},

@@ -54,3 +57,3 @@ tags: normalizedOptions.parsedTags,

newParams.push({
flag: 'dryRun'
flag: 'dryRun',
});

@@ -57,0 +60,0 @@ }

@@ -29,5 +29,7 @@ import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';

expect(config).toBeDefined();
const directoryCreated = await (await fs.stat(config.sourceRoot)).isDirectory();
const directoryCreated = await (
await fs.stat(config.sourceRoot)
).isDirectory();
expect(directoryCreated).toBeTruthy();
});
});

@@ -0,0 +0,0 @@ export interface NxDotnetGeneratorSchema {

import { Tree } from '@nrwl/devkit';
import { NxDotnetGeneratorSchema } from './schema';
export default function (host: Tree, options: NxDotnetGeneratorSchema): Promise<void>;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';

@@ -0,0 +0,0 @@ export interface NxDotnetGeneratorSchema {

@@ -0,0 +0,0 @@ import { Tree } from '@nrwl/devkit';

@@ -0,0 +0,0 @@ "use strict";

import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
import { Tree, readProjectConfiguration, addProjectConfiguration } from '@nrwl/devkit';
import {
Tree,
readProjectConfiguration,
addProjectConfiguration,
} from '@nrwl/devkit';

@@ -16,3 +20,3 @@ import generator from './generator';

project: appId,
reference: libId
reference: libId,
};

@@ -25,7 +29,7 @@

global: false,
version: 0
}
version: 0,
},
});
client.addProjectReference = () => Buffer.from([]);
})
});

@@ -40,3 +44,3 @@ beforeEach(() => {

targets: {},
tags: []
tags: [],
});

@@ -48,3 +52,3 @@

targets: {},
tags: []
tags: [],
});

@@ -56,12 +60,12 @@ });

await generator(appTree, options, client);
expect(spy).toHaveBeenCalled();
});
it('should update dependencies', async () => {
await generator(appTree, options, client);
expect(readProjectConfiguration(appTree, appId).implicitDependencies).toContain(libId);
expect(
readProjectConfiguration(appTree, appId).implicitDependencies
).toContain(libId);
});
});

@@ -0,0 +0,0 @@ export interface NxDotnetGeneratorSchema {

@@ -0,0 +0,0 @@ export declare type cmdLineParameter = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=cmd-line-parameter.js.map
export declare type dotnetNewFlags = 'dryRun' | 'force' | 'language' | 'name' | 'install' | 'nugetSource' | 'output' | 'uninstall' | 'updateApply' | 'updateCheck';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=dotnet-new-flags.js.map

@@ -1,2 +0,2 @@

import { dotnetNewFlags } from "./dotnet-new-flags";
import { dotnetNewFlags } from './dotnet-new-flags';
export declare type dotnetNewOptions = {

@@ -3,0 +3,0 @@ flag: dotnetNewFlags;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=dotnet-new-options.js.map
export declare type dotnetTemplate = 'console' | 'classlib' | 'wpf' | 'wpflib' | 'wpfcustomcontrollib' | 'wpfusercontrollib' | 'winforms' | 'winformslib' | 'worker' | 'grpc' | 'mstest' | 'xunit' | 'nunit' | 'page' | 'viewimports' | 'proto' | 'blazorserver' | 'blazorserver' | 'blazorwasm' | 'web' | 'mvc' | 'webapp' | 'angular' | 'react' | 'reactredux' | 'razorclasslib' | 'webapi' | 'globaljson' | string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=dotnet-template.js.map
export * from './dotnet-new-flags';
export * from './dotnet-new-options';
export * from './dotnet-template';

@@ -0,0 +0,0 @@ "use strict";

export * from './cmd-line-parameter';
export * from './dotnet-new';

@@ -0,0 +0,0 @@ "use strict";

export declare function isDryRun(): boolean;

@@ -5,5 +5,5 @@ "use strict";

function isDryRun() {
return process.argv.some(x => x === '--dry-run');
return process.argv.some((x) => x === '--dry-run');
}
exports.isDryRun = isDryRun;
//# sourceMappingURL=args.js.map

@@ -0,0 +0,0 @@ /**

@@ -10,5 +10,5 @@ "use strict";

function glob(path) {
return new Promise((resolve, reject) => _glob(path, (err, matches) => err ? reject() : resolve(matches)));
return new Promise((resolve, reject) => _glob(path, (err, matches) => (err ? reject() : resolve(matches))));
}
exports.glob = glob;
//# sourceMappingURL=glob.js.map
export * from './rimraf';
export * from './parameters';
export * from './args';

@@ -0,0 +0,0 @@ "use strict";

@@ -1,2 +0,2 @@

import { cmdLineParameter } from "../models";
import { cmdLineParameter } from '../models';
export declare function getParameterString(parameters: cmdLineParameter[]): string;

@@ -0,0 +0,0 @@ "use strict";

export declare function rimraf(path: any): Promise<void>;

@@ -8,3 +8,5 @@ "use strict";

return tslib_1.__awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => rimrafExternal(path, () => { resolve(); }));
return new Promise((resolve) => rimrafExternal(path, () => {
resolve();
}));
});

@@ -11,0 +13,0 @@ }

@@ -8,4 +8,4 @@ import { isDryRun } from './args';

const after = isDryRun();
expect({before, after}).toStrictEqual({before: false, after: true})
expect({ before, after }).toStrictEqual({ before: false, after: true });
});
});
import { ProjectConfiguration } from '@nrwl/devkit';
export declare function getProjectFileForNxProject(project: ProjectConfiguration): Promise<string>;

@@ -9,3 +9,3 @@ "use strict";

const srcDirectory = project.sourceRoot;
return glob_1.glob(`${srcDirectory}/**/*.*proj`).then(x => x[0]);
return glob_1.glob(`${srcDirectory}/**/*.*proj`).then((x) => x[0]);
});

@@ -12,0 +12,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc