Skip to content

Commit

Permalink
finally have the NPM class working
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhill committed Jul 7, 2021
1 parent 3993d5c commit 622a9e5
Show file tree
Hide file tree
Showing 13 changed files with 338 additions and 175 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
.cache/
obj/
node_modules/
System Volume Information/
System Volume Information/

# ignore everything except the plugin
bin/Release/*
!bin/Release/sppm.dll
!bin/Release/sppm.pdb
44 changes: 22 additions & 22 deletions Properties/Resources.Designer.cs

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

Binary file added bin/Debug/sppm.dll
Binary file not shown.
Binary file added bin/Debug/sppm.pdb
Binary file not shown.
Binary file added bin/Release/sppm.dll
Binary file not shown.
Binary file added bin/Release/sppm.pdb
Binary file not shown.
Binary file removed bin/Release/sspm.dll
Binary file not shown.
Binary file removed bin/Release/sspm.pdb
Binary file not shown.
19 changes: 15 additions & 4 deletions sppm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0000CF33-0000-0000-0000-000000000000}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>SSPM</RootNamespace>
<AssemblyName>sspm</AssemblyName>
<RootNamespace>SPPM</RootNamespace>
<AssemblyName>sppm</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand All @@ -33,7 +33,7 @@
<RegisterForComInterop>false</RegisterForComInterop>
</PropertyGroup>
<ItemGroup>
<Reference Include="ClearScript.Core, Version=7.1.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="ClearScript.Core, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\StrokesPlus.net\ClearScript.Core.dll</HintPath>
<Private>False</Private>
Expand All @@ -42,9 +42,19 @@
<HintPath>C:\Program Files\StrokesPlus.net\ClearScript.V8.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\Program Files\StrokesPlus.net\Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="StrokesPlus.net">
<HintPath>..\..\..\..\..\..\Program Files\StrokesPlus.net\StrokesPlus.net.exe</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
Expand All @@ -53,6 +63,7 @@
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="src\package.cs" />
<Compile Include="src\sppm.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
12 changes: 12 additions & 0 deletions sppm.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ VisualStudioVersion = 16.0.31321.278
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sppm", "sppm.csproj", "{0000CF33-0000-0000-0000-000000000000}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sppm-tests", "..\sppm-tests\sppm-tests.csproj", "{E0702065-4972-46BE-9C7F-826C47D1FABE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sppm-demo", "..\sppm-demo\sppm-demo.csproj", "{FDCF12E0-B5BF-4A49-8DBC-951D903F0379}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +19,14 @@ Global
{0000CF33-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0000CF33-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0000CF33-0000-0000-0000-000000000000}.Release|Any CPU.Build.0 = Release|Any CPU
{E0702065-4972-46BE-9C7F-826C47D1FABE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E0702065-4972-46BE-9C7F-826C47D1FABE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E0702065-4972-46BE-9C7F-826C47D1FABE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E0702065-4972-46BE-9C7F-826C47D1FABE}.Release|Any CPU.Build.0 = Release|Any CPU
{FDCF12E0-B5BF-4A49-8DBC-951D903F0379}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDCF12E0-B5BF-4A49-8DBC-951D903F0379}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDCF12E0-B5BF-4A49-8DBC-951D903F0379}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDCF12E0-B5BF-4A49-8DBC-951D903F0379}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
89 changes: 89 additions & 0 deletions src/package.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
using System.CodeDom.Compiler;
using System.Collections.Generic;
using Newtonsoft.Json;
using static Newtonsoft.Json.Required;
using static Newtonsoft.Json.NullValueHandling;

namespace PackageJson
{
[GeneratedCode("NJsonSchema", "10.4.4.0 (Newtonsoft.Json v13.0.0.0)")]
public partial class Author
{
[JsonProperty("name", Required = DisallowNull, NullValueHandling = Ignore)]
public string Name { get; set; }

[JsonProperty("email", Required = DisallowNull, NullValueHandling = Ignore)]
public string Email { get; set; }

[JsonProperty("url", Required = DisallowNull, NullValueHandling = Ignore)]
public string Url { get; set; }

private IDictionary<string, object> _additionalProperties = new Dictionary<string, object>();

[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties; }
set { _additionalProperties = value; }
}
}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.4.0 (Newtonsoft.Json v13.0.0.0)")]
public partial class PublishConfig
{
[JsonProperty("access", Required = DisallowNull, NullValueHandling = Ignore)]
public string Access { get; set; }

private IDictionary<string, object> _additionalProperties = new Dictionary<string, object>();

[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties; }
set { _additionalProperties = value; }
}
}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.4.0 (Newtonsoft.Json v13.0.0.0)")]
public partial class Root
{
[JsonProperty("name", Required = DisallowNull, NullValueHandling = Ignore)]
public string Name { get; set; }

[JsonProperty("version", Required = DisallowNull, NullValueHandling = Ignore)]
public string Version { get; set; }

[JsonProperty("private", Required = DisallowNull, NullValueHandling = Ignore)]
public bool Private { get; set; }

[JsonProperty("description", Required = DisallowNull, NullValueHandling = Ignore)]
public string Description { get; set; }

[JsonProperty("keywords", Required = DisallowNull, NullValueHandling = Ignore)]
public ICollection<string> Keywords { get; set; }

[JsonProperty("license", Required = DisallowNull, NullValueHandling = Ignore)]
public string License { get; set; }

[JsonProperty("author", Required = DisallowNull, NullValueHandling = Ignore)]
public Author Author { get; set; }

[JsonProperty("repository", Required = DisallowNull, NullValueHandling = Ignore)]
public Author Repository { get; set; }

[JsonProperty("main", Required = DisallowNull, NullValueHandling = Ignore)]
public string Main { get; set; }

[JsonProperty("publishConfig", Required = DisallowNull, NullValueHandling = Ignore)]
public PublishConfig PublishConfig { get; set; }

private IDictionary<string, object> _additionalProperties = new Dictionary<string, object>();

[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties; }
set { _additionalProperties = value; }
}
}
}
Loading

0 comments on commit 622a9e5

Please sign in to comment.