+68
-4
lines changedFilter options
+68
-4
lines changed Original file line number Diff line number Diff line change
@@ -285,7 +285,7 @@ private void AssertExtension(params string[] extension)
285
285
throw new InvalidOperationException("");
286
286
}
287
287
288
-
public void UpgradeNpmPackage(string packageName, string version)
288
+
public void UpdateNpmPackage(string packageName, string version)
289
289
{
290
290
AssertExtension(".json");
291
291
this.ReplaceLine(condition: a => a.Contains(@$"""{packageName}"""),
Original file line number Diff line number Diff line change
@@ -63,9 +63,9 @@ public override void Execute(UpgradeContext uctx)
63
63
64
64
uctx.ChangeCodeFile($@"Southwind.React/package.json", file =>
65
65
{
66
-
file.UpgradeNpmPackage("@types/react", "file:../Framework/Signum.React/node_modules/@types/react");
67
-
file.UpgradeNpmPackage("node-sass", "5.0.0");
68
-
file.UpgradeNpmPackage("sass-loader", "10.1.0");
66
+
file.UpdateNpmPackage("@types/react", "file:../Framework/Signum.React/node_modules/@types/react");
67
+
file.UpdateNpmPackage("node-sass", "5.0.0");
68
+
file.UpdateNpmPackage("sass-loader", "10.1.0");
69
69
});
70
70
71
71
uctx.ChangeCodeFile($@"Southwind.React/Dockerfile", file =>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
1
+
using System;
2
+
using System.Collections.Generic;
3
+
using System.IO;
4
+
using System.Linq;
5
+
using System.Security.Cryptography.X509Certificates;
6
+
using System.Text;
7
+
using System.Threading.Tasks;
8
+
9
+
namespace Signum.Upgrade.Upgrades
10
+
{
11
+
class Upgrade_20201123_Typescript41 : CodeUpgradeBase
12
+
{
13
+
public override string Description => "Update to Typescript 4.1";
14
+
15
+
public override string SouthwindCommitHash => "60d43b2f94249ff9ef0ee36eaecc1b7fc8f65c71";
16
+
17
+
public override void Execute(UpgradeContext uctx)
18
+
{
19
+
uctx.ChangeCodeFile("Southwind.React/package.json", file =>
20
+
{
21
+
file.UpdateNpmPackage("ts-loader", "8.0.11");
22
+
file.UpdateNpmPackage("typescript", "4.1.2");
23
+
});
24
+
25
+
uctx.ChangeCodeFile("Southwind.React/Southwind.React.csproj", file =>
26
+
{
27
+
file.UpdateNugetReference("Microsoft.TypeScript.MSBuild", "4.1.2");
28
+
});
29
+
30
+
uctx.ChangeCodeFile("Southwind.React/tsconfig.json", file =>
31
+
{
32
+
file.RemoveAllLines(a => a.Contains(@"""baseUrl"": ""."","));
33
+
file.Replace("*", "./*");
34
+
});
35
+
}
36
+
}
37
+
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
1
+
using System;
2
+
using System.Collections.Generic;
3
+
using System.IO;
4
+
using System.Linq;
5
+
using System.Security.Cryptography.X509Certificates;
6
+
using System.Text;
7
+
using System.Threading.Tasks;
8
+
9
+
namespace Signum.Upgrade.Upgrades
10
+
{
11
+
class Upgrade_20201124_CombinedUserChartPart : CodeUpgradeBase
12
+
{
13
+
public override string Description => "CombinedUserChartPart";
14
+
15
+
public override string SouthwindCommitHash => "5d87563412c238710d184528853d65f67848d03c";
16
+
17
+
public override void Execute(UpgradeContext uctx)
18
+
{
19
+
uctx.ChangeCodeFile("Southwind.Logic/Starter.cs", file =>
20
+
{
21
+
file.Replace(
22
+
"typeof(UserChartPartEntity),",
23
+
"typeof(UserChartPartEntity), typeof(CombinedUserChartPartEntity),");
24
+
});
25
+
}
26
+
}
27
+
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4