Граф коммитов

386 Коммитов

Автор SHA1 Сообщение Дата
Daniel Roth 1b5d4f312e Add default PR template 2021-09-10 21:22:18 -07:00
Artak d63bb5605a
Add readme, contributing guide, and PR template (#18) 2021-09-10 21:16:10 -07:00
Javier Calvarro Nelson 796e436397
[React] Aligns service worker code with create-react-app PWA template (#19)
Aligns the template with the create-react-app template (cra-template-pwa)
2021-09-09 09:11:27 -07:00
Doug Bunting f9741d3c3f
Delete NuGet.config (#16)
- file prevents use of `darc` feeds in dotnet/aspnetcore
- cannot be automatically kept in sync w/ the file in dotnet/aspnetcore
2021-09-01 12:48:32 -07:00
Javier Calvarro Nelson 2e63715e12
[Spa] Introduce NoSpaFrontEnd option for testing purposes (#15)
[Spa] Introduces NoSpaFrontEnd (hidden) option for testing purposes (#15)

In order for us to ensure the templates are up to date with the latest changes on the .NET runtime, we want to have some tests that are able to build them (and run the server part independently) if necessary.

For that matter, we are introducing the NoSpaFrontEnd option which is hidden from the users and that can be specified in tests to remove all integration with the SPA frontend.

We will continue droping the files on disk, but there will be no npm restore during build nor we will try to launch the SPA proxy when the app launches.

We will have some tests on the ASP.NET Core repo that install the templates package produced by the repo and build the templates to at least catch build breaks that changes on ASP.NET Core can cause.
2021-08-27 09:39:14 -07:00
Hao Kung 7c217732be
Merge pull request #14 from dotnet/haok/boot5
Update spa bootstrap to 5
2021-08-25 11:55:20 -07:00
Hao Kung 21636cf925 Update spa bootstrap to 5 2021-08-25 11:44:27 -07:00
Pranav K 4e28685fe6
Merge pull request #13 from dotnet/javiercn/update-npm-versions
Update npm package versions
2021-08-24 15:09:57 -07:00
Javier Calvarro Nelson 4776fc4646 Update template versions 2021-08-24 10:36:32 -07:00
Javier Calvarro Nelson 2057e764e7
[SPA] Add support for a port range on the SPA proxy (#12)
Adds support for using a port range on Kestrel and the front-end SPA proxy
2021-08-24 04:14:15 -07:00
William Godbe dc078f5b8e
Add dotnet7 feed 2021-08-18 09:24:53 -07:00
Javier Calvarro Nelson 2f75ca0d7a
Update project files to use implicit usings (#11)
* Update projects to use implicit usings
2021-08-17 10:39:27 -07:00
Doug Bunting 373712a220
Get local builds working (#7)
* Get local builds working
- no solution file or build scripts but `dotnet pack` does the trick
- last part of #32027 unless we need Arcade or a CI build urgently

Main work was to add a few missing files and modify them for this environment
- mostly copied from dotnet/aspnetcore
  - Directory.Build.props and Directory.Build.targets created from scratch
    - some content copied from dotnet/arcade and dotnet/aspnetcore
  - NuGet.config and eng/Versions.props copied but pared down (a lot) to mandatory bits for an isolated build
- new eng/ files mostly came from src/ProjectTemplates/ in dotnet/aspnetcore
  - eng/DotNetPackageIcon.png came from src/Microsoft.DotNet.Arcade.Sdk/tools/Assets/ in dotnet/arcade
  - eng/Packaging.targets copied from src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets in dotnet/arcade

nits:
- fix whitespace Directory.Build.targets target added to `$(Description)`
- fix typo in the `_AppendRepositoryUrlToPackageDescription` target name
- remove src/.gitignore and move content into new root .gitignore file
- remove SECURITY.md trailing whitespace
2021-07-29 15:23:44 -07:00
Hao Kung 9b004357a3
Merge pull request #8 from dotnet/haok/spa2
Update SQLite dbs with Duende scheme
2021-07-29 10:15:04 -07:00
Hao Kung a879d51437 Update SQLite dbs with Duende scheme 2021-07-29 10:13:30 -07:00
Stephen Halter 88d641eb03
Remove UseDeveloperExceptionPage() call (#5)
* Also remove empty newline at start of Program.cs
2021-07-23 12:34:37 -07:00
Artak f0fb4ad4e7
Create CODE-OF-CONDUCT.md 2021-07-20 14:44:24 -07:00
Hao Kung 7370afad21
Merge pull request #4 from dotnet/haok/undo
Undo copy only for package lock in SPA templates
2021-07-19 18:03:26 -07:00
Artak f22889db19
Merge pull request #3 from dotnet/mkArtakMSFT-patch-1
Added the license from the dotnet/runtime repo
2021-07-19 17:35:30 -07:00
Artak 6aca9f94a8
Updated to the license from dotnet/runtime repo 2021-07-19 16:46:11 -07:00
Hao Kung dfc8d7cdd9
Update template.json 2021-07-19 16:12:00 -07:00
Hao Kung 0162897f96
Update template.json 2021-07-19 16:11:09 -07:00
Artak ec967ad388
Added the license from the dotnet/aspnetcore repo 2021-07-19 14:42:08 -07:00
Hao Kung d3f9640dde
Merge pull request #2 from dotnet/haok/spa
IdentityServer4 -> Duende for Spa
2021-07-19 12:49:42 -07:00
Hao Kung 582be0824b IdentityServer4 -> Duende for Spa 2021-07-19 10:28:27 -07:00
Damian Edwards 65d7a026c6
Update SPA templates for C#10 (#1)
- Implicit usings
- File-scoped namespace declarations
2021-07-15 18:29:27 -07:00
Damian Edwards 04f7913cb2 Add missing qualifier to SPA templates Program.cs (dotnet/aspnetcore#34310)
Resolves dotnet/AspNetCore-ManualTests#743

Commit migrated from dotnet/aspnetcore@b22924416d
2021-07-14 02:09:20 +00:00
Hao Kung 79140422b9 Add empty line workaround (dotnet/aspnetcore#34203)
Commit migrated from dotnet/aspnetcore@c0de775565
2021-07-08 20:52:33 +00:00
Damian Edwards d79f5c006f Update templates baseline for recent changes (dotnet/aspnetcore#34186)
* Update templates baseline for recent changes
* Add using alias to fix type name conflict in templates that were missed in the previous set of changes.
* Update SPA templates
  - Use top-level statements
  - Use minimal hosting APIs
  - dotnet/aspnetcore#33947 dotnet/aspnetcore#33944
* Fix nullable issue in Blazor Server template

Commit migrated from dotnet/aspnetcore@4cdd594dad
2021-07-08 10:11:12 -07:00
DamianEdwards 802ded27e9 Enable nullable references in project templates
Contributes to dotnet/aspnetcore#33947

Commit migrated from dotnet/aspnetcore@7db552674a
2021-07-01 13:01:39 -07:00
Artak 2f2d687f6a Removed ExceptionHandleMiddleware registration (dotnet/aspnetcore#33940)
* Removed ExceptionHandleMiddleware registration

* Update Startup.cs

Commit migrated from dotnet/aspnetcore@ef4c9b8b29
2021-06-29 11:21:12 -07:00
Javier Calvarro Nelson 1ef67023b6 [SPA] Fix package-lock.json (dotnet/aspnetcore#33725)
Fixes a corrupt package-lock.json in the Angular template.

Commit migrated from dotnet/aspnetcore@f010b175fb
2021-06-22 10:24:46 -07:00
Hao Kung 18f42b29ab SPA Angular 11->12 updates (dotnet/aspnetcore#33353)
Commit migrated from dotnet/aspnetcore@b29d6ad3f4
2021-06-08 11:50:58 -07:00
Javier Calvarro Nelson b7cdce87de [SPA] Fix start script on Linux/Mac (dotnet/aspnetcore#33042)
Commit migrated from dotnet/aspnetcore@387e499a90
2021-05-26 18:57:15 +00:00
Javier Calvarro Nelson deb4c6acd0 [SPA] Proxy cleanups (dotnet/aspnetcore#32997)
* Add description to package
* Automatically resolve proxy target based on available environment variables
* Introduce a temporary page while the proxy is launching and redirect to the proxy page when visiting the backend for the first time
* Switch to probing the proxy on a per-request basis. This helps in cases where the user closes the proxy window (for example when the app is run without debugging via Ctrl+F5) in IIS Express scenarios.

Commit migrated from dotnet/aspnetcore@64efb3eea5
2021-05-26 17:47:19 +00:00
Hao Kung 17f48c5c5c Remove redux spa template (dotnet/aspnetcore#32978)
Commit migrated from dotnet/aspnetcore@960bbbd87c
2021-05-25 08:07:59 -07:00
Hao Kung 6025e2e6b4 Update to react 17.0 (dotnet/aspnetcore#32045)
Commit migrated from dotnet/aspnetcore@23d7fb4adc
2021-05-07 09:53:23 -07:00
Hao Kung 14b60e92f8 Upgrade to angular 11 (dotnet/aspnetcore#32182)
Commit migrated from dotnet/aspnetcore@0011eff564
2021-05-06 09:52:07 -07:00
Hao Kung fdf973046c Revert "Revert "Use Random.Shared property (dotnet/aspnetcore#31453)" (dotnet/aspnetcore#31795)" (dotnet/aspnetcore#32221)
This reverts commit 068762619a.

Commit migrated from dotnet/aspnetcore@41fb256b7e
2021-04-28 02:33:28 +00:00
Phil Henning 859b111793 Localization Update (dotnet/aspnetcore#32016)
* Add missing ko-KR strings.json for WASM template
* other ko-KR updates
* Razor Class Library translation updates

Commit migrated from dotnet/aspnetcore@e82fafcf2a
2021-04-22 21:44:32 -07:00
Javier Calvarro Nelson 068762619a Revert "Use Random.Shared property (dotnet/aspnetcore#31453)" (dotnet/aspnetcore#31795)
This reverts commit c6346a336a.

It breaks or templates, we can make this change once we are consuming an SDK version that has the right bits.

Commit migrated from dotnet/aspnetcore@131d207102
2021-04-14 04:45:50 -07:00
Javier Calvarro Nelson 5fc7e6c240 [Templates] Update the react template to use the CLI proxy (dotnet/aspnetcore#31652)
Updates the react template to use the http-proxy-middleware for handling
the requests instead of the asp.net core proxy in the same way it's done
for the Angular template.

Commit migrated from dotnet/aspnetcore@e5667a925e
2021-04-10 01:48:50 +00:00
Javier Calvarro Nelson 23663598fc [SPA] Introduces new approach for proxying the SPA templates (dotnet/aspnetcore#31564)
* A new package Microsoft.AspNetCore.SpaProxy has been added that is
  used by the templates to launch their development proxy via npm/yarn.
* The SPA development proxy for each CLI now is the frontend for the
  application and proxies the requests to the backend which is the
  ASP.NET Core application.
* At publish time the application assets are copied to the wwwroot.
* SpaServices.Extensions has been removed from the templates since it is
  no longer needed. MapFallbackToFile("index.html") handles unknown
  requests and serves the SPA entry point.
* The templates have been updated to keep using HTTPS with the SPA proxy
  configured to use the ASP.NET Core HTTPS development certificate via a
  new aspnetcore-https.js file that ships within the template.
* The configuration for angular has been updated with a proxy.conf.js
  file to proxy requests to the backend.
* The entry point for the application in development is now
  https://localhost:5002 when using https and http://localhost:5002
  otherwise.

Commit migrated from dotnet/aspnetcore@6bc4b79f4e
2021-04-09 11:23:44 -07:00
Martin Costello c6346a336a Use Random.Shared property (dotnet/aspnetcore#31453)
* Use Random.Shared

Use the new .NET 6 Random.Shared static property where possible.
See https://github.com/dotnet/runtime/pull/50297.

* Revert WebApi-CSharp changes

For some reason I don't understand, this template doesn't see Random.Shared when compiled so this reverts the previous change for this template.

Commit migrated from dotnet/aspnetcore@2458822000
2021-04-02 22:26:27 +00:00
Justin Kotalik 16e2deb624 Default to Kestrel over IISExpress (dotnet/aspnetcore#31161)
Commit migrated from dotnet/aspnetcore@4aa39c3e73
2021-03-24 09:52:39 -07:00
Chris Ross c667ab7d3d Merge pull request dotnet/aspnetcore#30109 from dotnet-maestro-bot/merge/release/5.0-to-main
[automated] Merge branch 'release/5.0' => 'main'

Commit migrated from dotnet/aspnetcore@71c36e271e
2021-02-12 10:59:22 -08:00
Pranav K 3a2ace704f Merge remote-tracking branch 'origin/release/2.1'
Commit migrated from dotnet/aspnetcore@cde6633b4c
2021-02-11 16:31:49 -08:00
Pranav K 50d322823a Merge remote-tracking branch 'origin/release/5.0'
Commit migrated from dotnet/aspnetcore@c1a8b2f214
2021-02-11 16:14:31 -08:00
Phil Henning 8c5b89196f Update localization for templates. (dotnet/aspnetcore#30101)
# Conflicts:
#	src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/es-ES/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/it-IT/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/pt-BR/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/ru-RU/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/es-ES/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/it-IT/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/pt-BR/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/ru-RU/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/cs-CZ/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/de-DE/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/es-ES/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/it-IT/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/ja-JP/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/pl-PL/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/pt-BR/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/ru-RU/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/tr-TR/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/zh-CN/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/zh-TW/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/cs-CZ/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/de-DE/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/es-ES/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/it-IT/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/ja-JP/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/pl-PL/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/pt-BR/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/ru-RU/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/tr-TR/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/zh-CN/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/zh-TW/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/it-IT/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/ru-RU/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/zh-TW/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/Worker-FSharp/.template.config/it-IT/strings.json
#	src/ProjectTemplates/Web.ProjectTemplates/content/Worker-FSharp/.template.config/ru-RU/strings.json

Commit migrated from dotnet/aspnetcore@c097bb9ce7
2021-02-11 10:58:32 -08:00
Safia Abdalla 2be19c501a Update Node dependencies for Angular template (dotnet/aspnetcore#29832)
Commit migrated from dotnet/aspnetcore@8e5e50916c
2021-02-10 15:50:42 -08:00