Skip to content

Commit

Permalink
Fix the grunt task
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyril Gandon committed Oct 11, 2016
1 parent bb3d9a4 commit 4d9df6a
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Nimrod/TypeScriptType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public string ToString(Predicate<Type> includeNamespace, bool includeGenericArgu
var genericArguments = this.Type.GetGenericArguments();
if (this.Type.FullName != null && this.Type.FullName.Contains("System.Nullable") && genericArguments.Length == 1)
{
result = $"{genericArguments[0].ToTypeScript().ToString(includeNamespace)}{(strictNullCheck ? strictNullCheckString : "")}";
result = $"{genericArguments[0].ToTypeScript().ToString(includeNamespace)}{strictNullCheckString}";
}
else
{
Expand Down
2 changes: 0 additions & 2 deletions Nimrod/Writers/ControllerToTypeScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public override IEnumerable<string> GetLines()
.Select(p => $"{p.Name}: {p.Name}")
.Join($",{Environment.NewLine}");
bool isGetOrDelete = httpVerb == HttpMethodAttribute.Get || httpVerb == HttpMethodAttribute.Delete;
var paramsBody = isGetOrDelete ?
Expand Down
2 changes: 1 addition & 1 deletion grunt-nimrod/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-nimrod",
"description": "An .NET Controller to TypeScript Converter",
"version": "0.3.1",
"version": "0.4.0",
"homepage": "https://github.com/resgroup/nimrod",
"contributors": [
{
Expand Down
3 changes: 1 addition & 2 deletions grunt-nimrod/src/nimrod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import * as child from 'child_process';
export interface IGruntNimrodOptions {
exe?: string;
verbose?: boolean;
module?: string;
output?: string;
strictNullCheck?: boolean;
files?: string[];
Expand All @@ -36,7 +35,7 @@ module.exports = function (grunt: IGrunt) {

let pathExe = options.exe || __dirname + '\\Nimrod.Console\\bin\\Release\\Nimrod.Console.exe';

let cmd = pathExe + ' -m ' + options.module + ' -o ' + options.output + ' --files=' + options.files.join(',') + verbose + strictNullCheck;
let cmd = pathExe + ' -o ' + options.output + ' --files=' + options.files.join(',') + verbose + strictNullCheck;
if (options.verbose) {
grunt.log.write('Executing command : ' + cmd);
}
Expand Down
1 change: 0 additions & 1 deletion grunt-nimrod/tasks/nimrod.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export interface IGruntNimrodOptions {
exe?: string;
verbose?: boolean;
module?: string;
output?: string;
strictNullCheck?: boolean;
files?: string[];
Expand Down
2 changes: 1 addition & 1 deletion grunt-nimrod/tasks/nimrod.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion grunt-nimrod/tasks/nimrod.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d9df6a

Please sign in to comment.