MaximBalaganskiy / AureliaDotnetTemplate

Aurelia .Net Template
43 stars 14 forks source link

How to add this to 'dotnet new'? #3

Closed brianjlacy closed 6 years ago

brianjlacy commented 6 years ago

What's the most efficient way to add this template back to the dotnet new tooling?

MaximBalaganskiy commented 6 years ago

You would need to create a NuGet package, publish it, and install it locally. Is it worth it? Absolutely not :) much easier to just clone a repo

myusrn commented 6 years ago

From what I understand using a repro clone doesn't provide support for having the project template .sln and .csproj filenames along with class namespaces automatically renamed to match the name desired for the project I want to use this as the starting point for.

If this is considered to be a more current and improved alternative to the current "dotnet new Aurelia" provided asp.net core Aurelia spa project template enabled by "dotnet new --install Microsoft.AspNetCore.SpaTemplates::*" doesn't it make sense to have that extra step take to make in consumable in a similar way? Even better why not issue a pull request to have your updates in this template incorporated into the official Aurelia asp.net core spa templates package?

MaximBalaganskiy commented 6 years ago

Because unfortunately, I don't have time for that extra step - which is not that simple. Plus, it's quite boring :)

The official SPA templates PR won't be accepted since Aurelia project is no longer there.

myusrn commented 6 years ago

Thanks for details.

When you say the "Aurelia project is no longer there" does this mean that asp.net core Aurelia spa templates project has been removed or is no longer being maintained?

Using 'dn new aurelia --output AureliaDotnetTemplate' to produce an Aurelia spa templates based starting project for diff'ng against clone of this repro to determine differences.

MaximBalaganskiy commented 6 years ago

It's been removed. The new rc1 package does not have it.

MaximBalaganskiy commented 6 years ago

As an option we could add a script which would rename relevant bits after cloning.

myusrn commented 6 years ago

fyi . . . w10 v1803 bld17134.48 [ april 2018 update ] + asp.net core 2.1.0 rc1 x64 / .net core sdk 2.1.300 rc1 x64 downloaded repo and extracted contents to folder dncAurelia.alt npm install dotnet build dotnet run . . . fail: Microsoft.AspNetCore.NodeServices[0] (node:19876) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead . . . opening listening on address in edge & chrome loads page that says "Navbar Home Counter Fetch data" across top instead of left side nav pane if intention was to mimic the Aurelia spa templates implementation. in the case of edge clicking on counter | increment button depresses button and has it stay depressed in between clicks. Screen grabs attached. screengrab1 screengrab2

MaximBalaganskiy commented 6 years ago

Fixed via https://github.com/MaximBalaganskiy/AureliaDotnetTemplate/commit/87ae14616e77c193ee6739ff645d45f7995bf62d

MaximBalaganskiy commented 6 years ago

Please start another issue - this one has a different topic