mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Change all Microsoft.AspNet.* namespaces and references to Microsoft.AspNetCore.*
This commit is contained in:
@@ -5,7 +5,7 @@ VisualStudioVersion = 14.0.23107.0
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{E6E88944-4800-40BA-8AF5-069EA3ADFEB8}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{E6E88944-4800-40BA-8AF5-069EA3ADFEB8}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.NodeServices", "src\Microsoft.AspNet.NodeServices\Microsoft.AspNet.NodeServices.xproj", "{B0FA4175-8B29-4904-9780-28B3C24B0567}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.NodeServices", "src\Microsoft.AspNetCore.NodeServices\Microsoft.AspNetCore.NodeServices.xproj", "{B0FA4175-8B29-4904-9780-28B3C24B0567}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ES2015Transpilation", "samples\misc\ES2015Transpilation\ES2015Transpilation.xproj", "{6D4BCDD6-7951-449B-BE55-CB7F014B7430}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ES2015Transpilation", "samples\misc\ES2015Transpilation\ES2015Transpilation.xproj", "{6D4BCDD6-7951-449B-BE55-CB7F014B7430}"
|
||||||
EndProject
|
EndProject
|
||||||
@@ -18,11 +18,11 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "MusicStore", "samples\angul
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ReactGrid", "samples\react\ReactGrid\ReactGrid.xproj", "{ABF90A5B-F4E0-438C-A6E4-9549FB43690B}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ReactGrid", "samples\react\ReactGrid\ReactGrid.xproj", "{ABF90A5B-F4E0-438C-A6E4-9549FB43690B}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.AngularServices", "src\Microsoft.AspNet.AngularServices\Microsoft.AspNet.AngularServices.xproj", "{421807E6-B62C-417B-B901-46C5DEDAA8F1}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.AngularServices", "src\Microsoft.AspNetCore.AngularServices\Microsoft.AspNetCore.AngularServices.xproj", "{421807E6-B62C-417B-B901-46C5DEDAA8F1}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.ReactServices", "src\Microsoft.AspNet.ReactServices\Microsoft.AspNet.ReactServices.xproj", "{B04381DE-991F-4831-A0B5-FE1BD3EF80C4}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.ReactServices", "src\Microsoft.AspNetCore.ReactServices\Microsoft.AspNetCore.ReactServices.xproj", "{B04381DE-991F-4831-A0B5-FE1BD3EF80C4}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.SpaServices", "src\Microsoft.AspNet.SpaServices\Microsoft.AspNet.SpaServices.xproj", "{4624F728-6DFF-44B6-93B5-3C7D9C94BF3F}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.SpaServices", "src\Microsoft.AspNetCore.SpaServices\Microsoft.AspNetCore.SpaServices.xproj", "{4624F728-6DFF-44B6-93B5-3C7D9C94BF3F}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Templates", "Templates", "{727E6D58-6830-4792-96C6-E138A33959FB}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Templates", "Templates", "{727E6D58-6830-4792-96C6-E138A33959FB}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ This project is part of ASP.NET Core. You can find samples, documentation and ge
|
|||||||
|
|
||||||
## What is this?
|
## What is this?
|
||||||
|
|
||||||
This repo hosts sources for the `Microsoft.AspNet.AngularServices` and `Microsoft.AspNet.ReactServices` packages, along with samples and the underlying `Microsoft.AspNet.NodeServices` project.
|
This repo hosts sources for the `Microsoft.AspNetCore.AngularServices` and `Microsoft.AspNetCore.ReactServices` packages, along with samples and the underlying `Microsoft.AspNetCore.NodeServices project`.
|
||||||
|
|
||||||
#### `Microsoft.AspNet.AngularServices`
|
#### `Microsoft.AspNetCore.AngularServices`
|
||||||
|
|
||||||
This package provides facilities for developers building Angular 2 applications on ASP.NET.
|
This package provides facilities for developers building Angular 2 applications on ASP.NET.
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ A sample is included in this repo.
|
|||||||
|
|
||||||
We are also working with the Angular team to add support for other client+server features such as cache priming, so that the client-side SPA code does not need to wait for an initial set of ajax requests to complete - the necessary data can be bundled with the initial page. Another possible future feature would be helpers to emit a JSON representation of C# class model metadata, so some validation rules can transparently apply both on the server and the client.
|
We are also working with the Angular team to add support for other client+server features such as cache priming, so that the client-side SPA code does not need to wait for an initial set of ajax requests to complete - the necessary data can be bundled with the initial page. Another possible future feature would be helpers to emit a JSON representation of C# class model metadata, so some validation rules can transparently apply both on the server and the client.
|
||||||
|
|
||||||
#### `Microsoft.AspNet.ReactServices`
|
#### `Microsoft.AspNetCore.ReactServices`
|
||||||
|
|
||||||
This package provides similar facilities for React applications on ASP.NET.
|
This package provides similar facilities for React applications on ASP.NET.
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ We are open to adding other client+server features that will make React develope
|
|||||||
|
|
||||||
Although we have finite resources and are currently focused on adding Angular 2 and React support, the architecture here is designed so that you can build your own server-side support for other client-side libraries and frameworks.
|
Although we have finite resources and are currently focused on adding Angular 2 and React support, the architecture here is designed so that you can build your own server-side support for other client-side libraries and frameworks.
|
||||||
|
|
||||||
The underlying `Microsoft.AspNet.NodeServices` package is a general-purpose way for ASP.NET applications (or .NET applications more generally) to interoperate with code running inside Node.js. That's how `AngularServices`/`ReactServices` server-side rendering works - those packages transparently spin up Node.js instances that can perform the server-side rendering. Any code that runs inside Node can efficiently be invoked from .NET via this package, which takes care of starting and stopping Node instances and manages the communication between .NET and Node.
|
The underlying `Microsoft.AspNetCore.NodeServices` package is a general-purpose way for ASP.NET applications (or .NET applications more generally) to interoperate with code running inside Node.js. That's how `AngularServices`/`ReactServices` server-side rendering works - those packages transparently spin up Node.js instances that can perform the server-side rendering. Any code that runs inside Node can efficiently be invoked from .NET via this package, which takes care of starting and stopping Node instances and manages the communication between .NET and Node.
|
||||||
|
|
||||||
## Using AngularServices/ReactServices in your own projects
|
## Using AngularServices/ReactServices in your own projects
|
||||||
|
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ namespace MusicStore
|
|||||||
.AddEntityFrameworkStores<MusicStoreContext>()
|
.AddEntityFrameworkStores<MusicStoreContext>()
|
||||||
.AddDefaultTokenProviders();
|
.AddDefaultTokenProviders();
|
||||||
|
|
||||||
// Uncomment the following line to add Web API services which makes it easier to port Web API 2 controllers.
|
|
||||||
// You will also need to add the Microsoft.AspNet.Mvc.WebApiCompatShim package to the 'dependencies' section of project.json.
|
|
||||||
// services.AddWebApiConventions();
|
|
||||||
|
|
||||||
// Configure Auth
|
// Configure Auth
|
||||||
services.Configure<AuthorizationOptions>(options =>
|
services.Configure<AuthorizationOptions>(options =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@using MusicStore
|
@using MusicStore
|
||||||
@using Microsoft.AspNet.AngularServices
|
@using Microsoft.AspNetCore.AngularServices
|
||||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.EntityFrameworkCore.SQLite": "1.0.0-*",
|
"Microsoft.EntityFrameworkCore.SQLite": "1.0.0-*",
|
||||||
"Microsoft.AspNet.AngularServices": "1.0.0-*",
|
"Microsoft.AspNetCore.AngularServices": "1.0.0-*",
|
||||||
"AutoMapper": "4.1.1"
|
"AutoMapper": "4.1.1"
|
||||||
},
|
},
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"netstandardapp1.5": {
|
"netstandardapp1.5": {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNet.NodeServices;
|
using Microsoft.AspNetCore.NodeServices;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.AspNet.NodeServices": "1.0.0-*"
|
"Microsoft.AspNetCore.NodeServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {},
|
"dnx451": {},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.AspNet.SpaServices": "1.0.0-*"
|
"Microsoft.AspNetCore.SpaServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Authorization;
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
@@ -37,10 +37,6 @@ namespace MusicStore
|
|||||||
.AddEntityFrameworkStores<MusicStoreContext>()
|
.AddEntityFrameworkStores<MusicStoreContext>()
|
||||||
.AddDefaultTokenProviders();
|
.AddDefaultTokenProviders();
|
||||||
|
|
||||||
// Uncomment the following line to add Web API services which makes it easier to port Web API 2 controllers.
|
|
||||||
// You will also need to add the Microsoft.AspNet.Mvc.WebApiCompatShim package to the 'dependencies' section of project.json.
|
|
||||||
// services.AddWebApiConventions();
|
|
||||||
|
|
||||||
// Configure Auth
|
// Configure Auth
|
||||||
services.Configure<AuthorizationOptions>(options =>
|
services.Configure<AuthorizationOptions>(options =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@using MusicStore
|
@using MusicStore
|
||||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||||
|
|||||||
@@ -22,12 +22,12 @@
|
|||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.EntityFrameworkCore.SQLite": "1.0.0-*",
|
"Microsoft.EntityFrameworkCore.SQLite": "1.0.0-*",
|
||||||
"Microsoft.AspNet.ReactServices": "1.0.0-*",
|
"Microsoft.AspNetCore.ReactServices": "1.0.0-*",
|
||||||
"AutoMapper": "4.1.1"
|
"AutoMapper": "4.1.1"
|
||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@using ReactExample
|
@using ReactExample
|
||||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||||
|
|||||||
@@ -16,10 +16,10 @@
|
|||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.AspNet.ReactServices": "1.0.0-*"
|
"Microsoft.AspNetCore.ReactServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {},
|
"dnx451": {},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>421807e6-b62c-417b-b901-46c5dedaa8f1</ProjectGuid>
|
<ProjectGuid>421807e6-b62c-417b-b901-46c5dedaa8f1</ProjectGuid>
|
||||||
<RootNamespace>Microsoft.AspNet.AngularServices</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.AngularServices</RootNamespace>
|
||||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc.Rendering;
|
|||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.AngularServices {
|
namespace Microsoft.AspNetCore.AngularServices {
|
||||||
public static class PrimeCacheHelper {
|
public static class PrimeCacheHelper {
|
||||||
public static async Task<HtmlString> PrimeCache(this IHtmlHelper html, string url) {
|
public static async Task<HtmlString> PrimeCache(this IHtmlHelper html, string url) {
|
||||||
// TODO: Consider deduplicating the PrimeCache calls (that is, if there are multiple requests to precache
|
// TODO: Consider deduplicating the PrimeCache calls (that is, if there are multiple requests to precache
|
||||||
|
|||||||
@@ -7,10 +7,6 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"prepublish": "tsd install && tsc && node build.js"
|
"prepublish": "tsd install && tsc && node build.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/aspnet/NodeServices/tree/master/Microsoft.AspNet.AngularServices"
|
|
||||||
},
|
|
||||||
"typings": "dist/Exports",
|
"typings": "dist/Exports",
|
||||||
"author": "Microsoft",
|
"author": "Microsoft",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"description": "Helpers for building Angular 2 applications on ASP.NET 5.",
|
"description": "Helpers for building Angular 2 applications on ASP.NET Core.",
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk"
|
||||||
},
|
},
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"url": "git://github.com/aspnet/nodeservices"
|
"url": "git://github.com/aspnet/nodeservices"
|
||||||
},
|
},
|
||||||
"tooling": {
|
"tooling": {
|
||||||
"defaultNamespace": "Microsoft.AspNet.AngularServices"
|
"defaultNamespace": "Microsoft.AspNetCore.AngularServices"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {},
|
"dnx451": {},
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*",
|
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*",
|
||||||
"Microsoft.AspNet.NodeServices": "1.0.0-*",
|
"Microsoft.AspNetCore.NodeServices": "1.0.0-*",
|
||||||
"Microsoft.AspNet.SpaServices": "1.0.0-*"
|
"Microsoft.AspNetCore.SpaServices": "1.0.0-*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using Microsoft.Extensions.DependencyInjection;
|
|||||||
using Microsoft.Extensions.PlatformAbstractions;
|
using Microsoft.Extensions.PlatformAbstractions;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
public static class Configuration {
|
public static class Configuration {
|
||||||
private readonly static string[] defaultWatchFileExtensions = new[] { ".js", ".jsx", ".ts", ".tsx", ".json", ".html" };
|
private readonly static string[] defaultWatchFileExtensions = new[] { ".js", ".jsx", ".ts", ".tsx", ".json", ".html" };
|
||||||
private readonly static NodeServicesOptions defaultOptions = new NodeServicesOptions {
|
private readonly static NodeServicesOptions defaultOptions = new NodeServicesOptions {
|
||||||
|
|||||||
@@ -52,10 +52,10 @@ var server = http.createServer(function(req, res) {
|
|||||||
|
|
||||||
server.listen(requestedPortOrZero, 'localhost', function () {
|
server.listen(requestedPortOrZero, 'localhost', function () {
|
||||||
// Signal to HttpNodeHost which port it should make its HTTP connections on
|
// Signal to HttpNodeHost which port it should make its HTTP connections on
|
||||||
console.log('[Microsoft.AspNet.NodeServices.HttpNodeHost:Listening on port ' + server.address().port + '\]');
|
console.log('[Microsoft.AspNetCore.NodeServices.HttpNodeHost:Listening on port ' + server.address().port + '\]');
|
||||||
|
|
||||||
// Signal to the NodeServices base class that we're ready to accept invocations
|
// Signal to the NodeServices base class that we're ready to accept invocations
|
||||||
console.log('[Microsoft.AspNet.NodeServices:Listening]');
|
console.log('[Microsoft.AspNetCore.NodeServices:Listening]');
|
||||||
});
|
});
|
||||||
|
|
||||||
function readRequestBodyAsJson(request, callback) {
|
function readRequestBodyAsJson(request, callback) {
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ readline.createInterface({ input: process.stdin }).on('line', function (message)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('[Microsoft.AspNet.NodeServices:Listening]'); // The .NET app waits for this signal before sending any invocations
|
console.log('[Microsoft.AspNetCore.NodeServices:Listening]'); // The .NET app waits for this signal before sending any invocations
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ using System.Threading.Tasks;
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
internal class HttpNodeInstance : OutOfProcessNodeInstance {
|
internal class HttpNodeInstance : OutOfProcessNodeInstance {
|
||||||
private readonly static Regex PortMessageRegex = new Regex(@"^\[Microsoft.AspNet.NodeServices.HttpNodeHost:Listening on port (\d+)\]$");
|
private readonly static Regex PortMessageRegex = new Regex(@"^\[Microsoft.AspNetCore.NodeServices.HttpNodeHost:Listening on port (\d+)\]$");
|
||||||
|
|
||||||
private readonly static JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings {
|
private readonly static JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings {
|
||||||
ContractResolver = new CamelCasePropertyNamesContractResolver()
|
ContractResolver = new CamelCasePropertyNamesContractResolver()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
// This is just to demonstrate that other transports are possible. This implementation is extremely
|
// This is just to demonstrate that other transports are possible. This implementation is extremely
|
||||||
// dubious - if the Node-side code fails to conform to the expected protocol in any way (e.g., has an
|
// dubious - if the Node-side code fails to conform to the expected protocol in any way (e.g., has an
|
||||||
// error), then it will just hang forever. So don't use this.
|
// error), then it will just hang forever. So don't use this.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
public class NodeInvocationInfo
|
public class NodeInvocationInfo
|
||||||
{
|
{
|
||||||
public string ModuleName;
|
public string ModuleName;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Diagnostics;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
/**
|
/**
|
||||||
* Class responsible for launching the Node child process, determining when it is ready to accept invocations,
|
* Class responsible for launching the Node child process, determining when it is ready to accept invocations,
|
||||||
* and finally killing it when the parent process exits. Also it restarts the child process if it dies.
|
* and finally killing it when the parent process exits. Also it restarts the child process if it dies.
|
||||||
@@ -91,7 +91,7 @@ namespace Microsoft.AspNet.NodeServices {
|
|||||||
this._nodeProcessIsReadySource = new TaskCompletionSource<bool>();
|
this._nodeProcessIsReadySource = new TaskCompletionSource<bool>();
|
||||||
|
|
||||||
this._nodeProcess.OutputDataReceived += (sender, evt) => {
|
this._nodeProcess.OutputDataReceived += (sender, evt) => {
|
||||||
if (evt.Data == "[Microsoft.AspNet.NodeServices:Listening]" && !initializationIsCompleted) {
|
if (evt.Data == "[Microsoft.AspNetCore.NodeServices:Listening]" && !initializationIsCompleted) {
|
||||||
this._nodeProcessIsReadySource.SetResult(true);
|
this._nodeProcessIsReadySource.SetResult(true);
|
||||||
initializationIsCompleted = true;
|
initializationIsCompleted = true;
|
||||||
} else if (evt.Data != null) {
|
} else if (evt.Data != null) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
public interface INodeServices : IDisposable {
|
public interface INodeServices : IDisposable {
|
||||||
Task<T> Invoke<T>(string moduleName, params object[] args);
|
Task<T> Invoke<T>(string moduleName, params object[] args);
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>b0fa4175-8b29-4904-9780-28b3c24b0567</ProjectGuid>
|
<ProjectGuid>b0fa4175-8b29-4904-9780-28b3c24b0567</ProjectGuid>
|
||||||
<RootNamespace>Microsoft.AspNet.NodeServices</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.NodeServices</RootNamespace>
|
||||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\NodeServices.sln\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\NodeServices.sln\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\NodeServices.sln\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
<OutputPath Condition="'$(OutputPath)'=='' ">..\NodeServices.sln\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
public enum NodeHostingModel {
|
public enum NodeHostingModel {
|
||||||
Http,
|
Http,
|
||||||
InputOutputStream,
|
InputOutputStream,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
public static class EmbeddedResourceReader {
|
public static class EmbeddedResourceReader {
|
||||||
public static string Read(Type assemblyContainingType, string path) {
|
public static string Read(Type assemblyContainingType, string path) {
|
||||||
var asm = assemblyContainingType.GetTypeInfo().Assembly;
|
var asm = assemblyContainingType.GetTypeInfo().Assembly;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.NodeServices {
|
namespace Microsoft.AspNetCore.NodeServices {
|
||||||
// Makes it easier to pass script files to Node in a way that's sure to clean up after the process exits
|
// Makes it easier to pass script files to Node in a way that's sure to clean up after the process exits
|
||||||
public sealed class StringAsTempFile : IDisposable {
|
public sealed class StringAsTempFile : IDisposable {
|
||||||
public string FileName { get; private set; }
|
public string FileName { get; private set; }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"description": "Invoke Node.js modules at runtime in ASP.NET 5 applications.",
|
"description": "Invoke Node.js modules at runtime in ASP.NET Core applications.",
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>b04381de-991f-4831-a0b5-fe1bd3ef80c4</ProjectGuid>
|
<ProjectGuid>b04381de-991f-4831-a0b5-fe1bd3ef80c4</ProjectGuid>
|
||||||
<RootNamespace>Microsoft.AspNet.ReactServices</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.ReactServices</RootNamespace>
|
||||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"description": "Helpers for building React applications on ASP.NET 5.",
|
"description": "Helpers for building React applications on ASP.NET Core.",
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk"
|
||||||
},
|
},
|
||||||
@@ -10,12 +10,12 @@
|
|||||||
"url": "git://github.com/aspnet/nodeservices"
|
"url": "git://github.com/aspnet/nodeservices"
|
||||||
},
|
},
|
||||||
"tooling": {
|
"tooling": {
|
||||||
"defaultNamespace": "Microsoft.AspNet.ReactServices"
|
"defaultNamespace": "Microsoft.AspNetCore.ReactServices"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*",
|
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*",
|
||||||
"Microsoft.AspNet.NodeServices": "1.0.0-*",
|
"Microsoft.AspNetCore.NodeServices": "1.0.0-*",
|
||||||
"Microsoft.AspNet.SpaServices": "1.0.0-*"
|
"Microsoft.AspNetCore.SpaServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {},
|
"dnx451": {},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>4624f728-6dff-44b6-93b5-3c7d9c94bf3f</ProjectGuid>
|
<ProjectGuid>4624f728-6dff-44b6-93b5-3c7d9c94bf3f</ProjectGuid>
|
||||||
<RootNamespace>Microsoft.AspNet.SpaServices</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.SpaServices</RootNamespace>
|
||||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -6,12 +6,12 @@ using Microsoft.AspNetCore.Http;
|
|||||||
using Microsoft.AspNetCore.Http.Extensions;
|
using Microsoft.AspNetCore.Http.Extensions;
|
||||||
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.AspNet.NodeServices;
|
using Microsoft.AspNetCore.NodeServices;
|
||||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||||
using Microsoft.Extensions.PlatformAbstractions;
|
using Microsoft.Extensions.PlatformAbstractions;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.SpaServices.Prerendering
|
namespace Microsoft.AspNetCore.SpaServices.Prerendering
|
||||||
{
|
{
|
||||||
[HtmlTargetElement(Attributes = PrerenderModuleAttributeName)]
|
[HtmlTargetElement(Attributes = PrerenderModuleAttributeName)]
|
||||||
public class PrerenderTagHelper : TagHelper
|
public class PrerenderTagHelper : TagHelper
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.NodeServices;
|
using Microsoft.AspNetCore.NodeServices;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.SpaServices.Prerendering
|
namespace Microsoft.AspNetCore.SpaServices.Prerendering
|
||||||
{
|
{
|
||||||
public static class Prerenderer
|
public static class Prerenderer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Routing;
|
using Microsoft.AspNetCore.Routing;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.SpaServices
|
namespace Microsoft.AspNetCore.SpaServices
|
||||||
{
|
{
|
||||||
internal class SpaRouteConstraint : IRouteConstraint
|
internal class SpaRouteConstraint : IRouteConstraint
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Microsoft.AspNetCore.Routing;
|
using Microsoft.AspNetCore.Routing;
|
||||||
using Microsoft.AspNet.SpaServices;
|
using Microsoft.AspNetCore.SpaServices;
|
||||||
|
|
||||||
// Putting in this namespace so it's always available whenever MapRoute is
|
// Putting in this namespace so it's always available whenever MapRoute is
|
||||||
namespace Microsoft.AspNetCore.Builder
|
namespace Microsoft.AspNetCore.Builder
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.SpaServices.Webpack
|
namespace Microsoft.AspNetCore.SpaServices.Webpack
|
||||||
{
|
{
|
||||||
// Based on https://github.com/aspnet/Proxy/blob/dev/src/Microsoft.AspNetCore.Proxy/ProxyMiddleware.cs
|
// Based on https://github.com/aspnet/Proxy/blob/dev/src/Microsoft.AspNetCore.Proxy/ProxyMiddleware.cs
|
||||||
// Differs in that, if the proxied request returns a 404, we pass through to the next middleware in the chain
|
// Differs in that, if the proxied request returns a 404, we pass through to the next middleware in the chain
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.NodeServices;
|
using Microsoft.AspNetCore.NodeServices;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.PlatformAbstractions;
|
using Microsoft.Extensions.PlatformAbstractions;
|
||||||
@@ -55,7 +55,7 @@ namespace Microsoft.AspNetCore.Builder
|
|||||||
appBuilder.UseMiddleware<ConditionalProxyMiddleware>(devServerInfo.PublicPath, proxyOptions);
|
appBuilder.UseMiddleware<ConditionalProxyMiddleware>(devServerInfo.PublicPath, proxyOptions);
|
||||||
|
|
||||||
// While it would be nice to proxy the /__webpack_hmr requests too, these return an EventStream,
|
// While it would be nice to proxy the /__webpack_hmr requests too, these return an EventStream,
|
||||||
// and the Microsoft.Aspnet.Proxy code doesn't handle that entirely - it throws an exception after
|
// and the Microsoft.AspNetCore.Proxy code doesn't handle that entirely - it throws an exception after
|
||||||
// a while. So, just serve a 302 for those.
|
// a while. So, just serve a 302 for those.
|
||||||
appBuilder.Map(WebpackHotMiddlewareEndpoint, builder => {
|
appBuilder.Map(WebpackHotMiddlewareEndpoint, builder => {
|
||||||
builder.Use(next => async ctx => {
|
builder.Use(next => async ctx => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.AspNet.SpaServices.Webpack {
|
namespace Microsoft.AspNetCore.SpaServices.Webpack {
|
||||||
public class WebpackDevMiddlewareOptions {
|
public class WebpackDevMiddlewareOptions {
|
||||||
public bool HotModuleReplacement { get; set; }
|
public bool HotModuleReplacement { get; set; }
|
||||||
public bool ReactHotModuleReplacement { get; set; }
|
public bool ReactHotModuleReplacement { get; set; }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Not for general use
|
# Not for general use
|
||||||
|
|
||||||
This NPM package is an internal implementation detail of the `Microsoft.AspNet.SpaServices` NuGet package.
|
This NPM package is an internal implementation detail of the `Microsoft.AspNetCore.SpaServices` NuGet package.
|
||||||
|
|
||||||
You should not use this package directly in your own applications, because it is not supported, and there are no
|
You should not use this package directly in your own applications, because it is not supported, and there are no
|
||||||
guarantees about how its APIs will change in the future.
|
guarantees about how its APIs will change in the future.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "aspnet-prerendering",
|
"name": "aspnet-prerendering",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"description": "Helpers for server-side rendering of JavaScript applications in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
|
"description": "Helpers for server-side rendering of JavaScript applications in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
|
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Not for general use
|
# Not for general use
|
||||||
|
|
||||||
This NPM package is an internal implementation detail of the `Microsoft.AspNet.SpaServices` NuGet package.
|
This NPM package is an internal implementation detail of the `Microsoft.AspNetCore.SpaServices` NuGet package.
|
||||||
|
|
||||||
You should not use this package directly in your own applications, because it is not supported, and there are no
|
You should not use this package directly in your own applications, because it is not supported, and there are no
|
||||||
guarantees about how its APIs will change in the future.
|
guarantees about how its APIs will change in the future.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "aspnet-webpack-react",
|
"name": "aspnet-webpack-react",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"description": "Helpers for using Webpack with React in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
|
"description": "Helpers for using Webpack with React in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
|
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Not for general use
|
# Not for general use
|
||||||
|
|
||||||
This NPM package is an internal implementation detail of the `Microsoft.AspNet.SpaServices` NuGet package.
|
This NPM package is an internal implementation detail of the `Microsoft.AspNetCore.SpaServices` NuGet package.
|
||||||
|
|
||||||
You should not use this package directly in your own applications, because it is not supported, and there are no
|
You should not use this package directly in your own applications, because it is not supported, and there are no
|
||||||
guarantees about how its APIs will change in the future.
|
guarantees about how its APIs will change in the future.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "aspnet-webpack",
|
"name": "aspnet-webpack",
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"description": "Helpers for using Webpack in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
|
"description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
|
"prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"description": "Microsoft.AspNet.SpaServices",
|
"description": "Helpers for building single-page applications on ASP.NET Core",
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk"
|
||||||
},
|
},
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
|
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
|
||||||
"Microsoft.AspNetCore.Routing": "1.0.0-*",
|
"Microsoft.AspNetCore.Routing": "1.0.0-*",
|
||||||
"Microsoft.AspNet.NodeServices": "1.0.0-*"
|
"Microsoft.AspNetCore.NodeServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {},
|
"dnx451": {},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@using WebApplicationBasic
|
@using WebApplicationBasic
|
||||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.AspNet.AngularServices": "1.0.0-*"
|
"Microsoft.AspNetCore.AngularServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@using WebApplicationBasic
|
@using WebApplicationBasic
|
||||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.AspNet.SpaServices": "1.0.0-*"
|
"Microsoft.AspNetCore.SpaServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@using WebApplicationBasic
|
@using WebApplicationBasic
|
||||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.AspNet.ReactServices": "1.0.0-*"
|
"Microsoft.AspNetCore.ReactServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNet.SpaServices.Webpack;
|
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@using WebApplicationBasic
|
@using WebApplicationBasic
|
||||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
|
||||||
"Microsoft.AspNet.ReactServices": "1.0.0-*"
|
"Microsoft.AspNetCore.ReactServices": "1.0.0-*"
|
||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Server.Kestrel"
|
"web": "Microsoft.AspNetCore.Server.Kestrel"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
|
|||||||
Reference in New Issue
Block a user