Skip to content

Commit

Permalink
add npmignore/yarn.lock update to netcoreapp3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danwbyrne committed Aug 6, 2020
1 parent ce42006 commit e83af44
Show file tree
Hide file tree
Showing 14 changed files with 299 additions and 27 deletions.
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.gitattributes
appveyor.yml
.travis.yml
Dockerfile
.gitignore
node_modules/
.vscode
build/
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
'lib/bootstrap/*.cs'
],
'outputs': [
'lib/bootstrap/bin/$(BUILDTYPE)/netcoreapp1.1/bootstrap.dll'
'lib/bootstrap/bin/$(BUILDTYPE)/netcoreapp3.0/bootstrap.dll'
],
'action': [
'bash',
Expand Down
2 changes: 1 addition & 1 deletion lib/bootstrap/bootstrap.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>bootstrap</AssemblyName>
<PackageId>bootstrap</PackageId>
Expand Down
6 changes: 3 additions & 3 deletions lib/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ if (edgeNative.match(/edge_coreclr\.node$/i)) {
// how to compile literal C# at https://github.com/tjanczuk/edge-cs/blob/master/lib/edge-cs.js
process.env.EDGE_USE_CORECLR = 1;
}
if (process.env.EDGE_USE_CORECLR && !process.env.EDGE_BOOTSTRAP_DIR && fs.existsSync(path.join(__dirname, 'bootstrap', 'bin', 'Release', 'netcoreapp1.1', 'bootstrap.dll'))) {
process.env.EDGE_BOOTSTRAP_DIR = path.join(__dirname, 'bootstrap', 'bin', 'Release', 'netcoreapp1.1');
if (process.env.EDGE_USE_CORECLR && !process.env.EDGE_BOOTSTRAP_DIR && fs.existsSync(path.join(__dirname, 'bootstrap', 'bin', 'Release', 'netcoreapp3.0', 'bootstrap.dll'))) {
process.env.EDGE_BOOTSTRAP_DIR = path.join(__dirname, 'bootstrap', 'bin', 'Release', 'netcoreapp3.0');
}

process.env.EDGE_NATIVE = edgeNative;
Expand Down Expand Up @@ -119,7 +119,7 @@ exports.func = function(language, options) {
}

if (process.env.EDGE_USE_CORECLR) {
var defaultManifest = path.join(__dirname, 'bootstrap', 'bin', 'Release', 'netcoreapp1.1', 'bootstrap.deps.json');
var defaultManifest = path.join(__dirname, 'bootstrap', 'bin', 'Release', 'netcoreapp3.0', 'bootstrap.deps.json');
var compilerManifest;
if(compiler.getBootstrapDependencyManifest){
compilerManifest = compiler.getBootstrapDependencyManifest();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "edge-js",
"name": "@neo-one/edge",
"author": {
"name": "Tomasz Janczuk <tomasz@janczuk.org>",
"url": "http://tomasz.janczuk.org",
Expand Down
6 changes: 3 additions & 3 deletions src/double/Edge.js.CSharp/Edge.js.CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<Description>Edge.js enables scripting CLR languages from Node.js. This package is a dependency of Edge.js and supports scripting C# from Node.</Description>
<AssemblyTitle>C# compiler for Edge.js</AssemblyTitle>
<VersionPrefix>1.2.0</VersionPrefix>
<TargetFrameworks>netcoreapp1.1</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
<AssemblyName>Edge.js.CSharp</AssemblyName>
<PackageId>Edge.js.CSharp</PackageId>
<PackageProjectUrl>https://github.com/tjanczuk/edge</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/tjanczuk/edge-cs/blob/master/LICENSE.txt</PackageLicenseUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.8.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.6.0" />
</ItemGroup>
</Project>
14 changes: 7 additions & 7 deletions src/double/Edge.js/Edge.js.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Description>With Edge.js you can script Node.js in a .NET application. Edge.js allows you to run Node.js and .NET code in one process. You can call Node.js functions from .NET and .NET functions from Node.js. Edge.js takes care of marshalling data between CLR and V8. Edge.js also reconciles threading models of single threaded V8 and multi-threaded CLR. Edge.js ensures correct lifetime of objects on V8 and CLR heaps. This Edge.js NuGet package supports scripting Node.js v6.5.0.</Description>
<Copyright>Copyright 2015 Tomasz Janczuk</Copyright>
<VersionPrefix>9.3.0</VersionPrefix>
<TargetFrameworks>net461;netcoreapp1.1;netcoreapp2.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
<AssemblyName>EdgeJs</AssemblyName>
<PackageId>Edge.js</PackageId>
<PackageTags>node.js;node;.net;edge;edge.js;v8;clr;coreclr;mono;interop;javascript</PackageTags>
Expand All @@ -28,20 +28,20 @@
<Pack>true</Pack>
</None>
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<ItemGroup>
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
<Compile Remove="dotnetcore\*.cs;..\..\common\*.cs" />
<Compile Include="dotnet\*.cs" />
</ItemGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' OR '$(TargetFramework)' == 'netcoreapp2.0' ">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' OR '$(TargetFramework)' == 'netcoreapp2.0' ">
<ItemGroup>
<Compile Remove="dotnet\*.cs" />
<Compile Include="dotnetcore\*.cs;..\..\common\*.cs" Exclude="dotnet\*.cs;bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' OR '$(TargetFramework)' == 'netcoreapp2.0' ">
<ItemGroup>
<PackageReference Include="System.AppContext" Version="4.3.0" />
<PackageReference Include="System.Collections.Specialized" Version="4.3.0" />
<PackageReference Include="System.Console" Version="4.3.1" />
Expand All @@ -61,8 +61,8 @@
<PackageReference Include="Microsoft.DotNet.InternalAbstractions" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.8.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.6.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion test/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -n "$(which dotnet 2>/dev/null)" ]
then
dotnet restore
dotnet build
cp bin/Debug/netcoreapp1.1/test.dll Edge.Tests.CoreClr.dll
cp bin/Debug/netcoreapp3.0/test.dll Edge.Tests.CoreClr.dll
fi

if [ -n "$(which mono 2>/dev/null)" ]
Expand Down
2 changes: 1 addition & 1 deletion test/test.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rem usage: test.bat [ia32|x64 {version}], e.g. test.bat x64 0.10.0
@echo off
set EDGE_APP_ROOT=%~dp0\bin\Debug\netcoreapp1.1
set EDGE_APP_ROOT=%~dp0\bin\Debug\netcoreapp3.0
set NODEEXE=node.exe
set EDGE_USE_CORECLR=
if "%1" neq "" if "%2" neq "" set NODEEXE=%~dp0\..\lib\native\win32\%1\%2\node.exe
Expand Down
8 changes: 4 additions & 4 deletions test/test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
<PreserveCompilationContext>true</PreserveCompilationContext>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AssemblyName>test</AssemblyName>
Expand Down Expand Up @@ -33,11 +33,11 @@
<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.3.0" />
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
<PackageReference Include="System.Xml.ReaderWriter" Version="4.3.1" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.8.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.6.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="Microsoft.DotNet.InternalAbstractions" Version="1.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="3.1.6" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />

</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions tools/build_double_new.bat
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mkdir "%SELF%\build\nuget\lib"
robocopy /NFL /NDL /NJH /NJS /nc /ns /np /is /s "%SELF%\..\src\double\Edge.js\bin\Release" "%SELF%\build\nuget\lib"
rem robocopy /NFL /NDL /NJH /NJS /nc /ns /np /is /s "%SELF%\..\src\double\Edge.js\bin\Release\net40" "%SELF%\build\nuget\lib\net40"
rem robocopy /NFL /NDL /NJH /NJS /nc /ns /np /is /s "%SELF%\..\src\double\Edge.js\bin\Release\net45" "%SELF%\build\nuget\lib\net45"
rem robocopy /NFL /NDL /NJH /NJS /nc /ns /np /is /s "%SELF%\..\src\double\Edge.js\bin\Release\netcoreapp1.1" "%SELF%\build\nuget\lib\netcoreapp1.1"
rem robocopy /NFL /NDL /NJH /NJS /nc /ns /np /is /s "%SELF%\..\src\double\Edge.js\bin\Release\netcoreapp3.0" "%SELF%\build\nuget\lib\netcoreapp3.0"
rem robocopy /NFL /NDL /NJH /NJS /nc /ns /np /is /s "%SELF%\..\src\double\Edge.js\bin\Release\netcoreapp2.0" "%SELF%\build\nuget\lib\netcoreapp2.0"

cd "%SELF%"
Expand Down Expand Up @@ -201,7 +201,7 @@ ROBOCOPY build/nuget/content/edge/x64 nuget/content/edge/x64 *.* /NFL /NDL /NJH

ROBOCOPY build/nuget/lib/net40 nuget/lib/net40 *.dll /NFL /NDL /NJH /NJS /nc /ns /np
ROBOCOPY build/nuget/lib/net45 nuget/lib/net45 *.dll /NFL /NDL /NJH /NJS /nc /ns /np
ROBOCOPY build/nuget/lib/netcoreapp1.1 nuget/lib/netcoreapp1.1 *.dll /NFL /NDL /NJH /NJS /nc /ns /np
ROBOCOPY build/nuget/lib/netcoreapp3.0 nuget/lib/netcoreapp3.0 *.dll /NFL /NDL /NJH /NJS /nc /ns /np
ROBOCOPY build/nuget/lib/netcoreapp2.0 nuget/lib/netcoreapp2.0 *.dll /NFL /NDL /NJH /NJS /nc /ns /np

rem nuget pack
Expand Down
2 changes: 1 addition & 1 deletion tools/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function run(cmd, args, onClose, signal){

function runOnSuccess(code, framework) {
if (code === 0) {
process.env['EDGE_APP_ROOT'] = path.join(testDir, 'bin', 'Debug', 'netcoreapp1.1');
process.env['EDGE_APP_ROOT'] = path.join(testDir, 'bin', 'Debug', 'netcoreapp3.0');

createJunitReports(framework, false);
createJunitReports(framework, true);
Expand Down
4 changes: 2 additions & 2 deletions tools/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else {
if (code === 0) {
run(process.platform === 'win32' ? 'dotnet.exe' : 'dotnet', ['build'], function(code, signal) {
if (code === 0) {
run('cp', ['../test/bin/Debug/netcoreapp1.1/test.dll', '../test/Edge.Tests.CoreClr.dll'], runOnSuccess);
run('cp', ['../test/bin/Debug/netcoreapp3.0/test.dll', '../test/Edge.Tests.CoreClr.dll'], runOnSuccess);
}
});
}
Expand Down Expand Up @@ -53,7 +53,7 @@ function run(cmd, args, onClose){

function runOnSuccess(code, signal) {
if (code === 0) {
process.env['EDGE_APP_ROOT'] = path.join(testDir, 'bin', 'Debug', 'netcoreapp1.1');
process.env['EDGE_APP_ROOT'] = path.join(testDir, 'bin', 'Debug', 'netcoreapp3.0');
spawn('node', [mocha, testDir, '-R', 'spec', '-t', '10000', '-gc'], {
stdio: 'inherit'
}).on('error', function(err) {
Expand Down
Loading

0 comments on commit e83af44

Please sign in to comment.