jsrender icon indicating copy to clipboard operation
jsrender copied to clipboard

Create a NuGet package

Open michael-lang opened this issue 12 years ago • 12 comments

I would create a NuGet package build utility for this project if you would accept a pull request for it and publish to NuGet.

The publish to NuGet process would be simple each time a release is made. 0) potentially update nuspec description field (not required each build)

  1. run release.cmd
  2. login to http://NuGet.org/
  3. upload the generated nupkg file.

Here is a project showing what that addition would look like:

https://github.com/michael-lang/jquery-auto-async

files: Release.cmd .nuget** (2 config files, 1 exe - from Nuget.org) NuGet\jsrender.nuspec Build** (various standard build support files, 5 text, 1 dll; Nothing custom to project)

Note, I am updating the jquery-auto-async project to use jsRender.

michael-lang avatar Jul 26 '13 14:07 michael-lang

There is this jsRender related package on NuGet. It would be good to have a pure jsRender package however, instead of it being bundled with all of HotGlue.

http://www.nuget.org/packages/HotGlue.Template.JsRender/

michael-lang avatar Jul 26 '13 14:07 michael-lang

@michael-lang: Thanks michael. In principal, yes, though of course I would need take a look before deciding - and right now my priority is getting the official beta out for JsViews.

But definitely after the beta, moving to V1, I had planned anyway to add Nuget packages for both JsRender and JsViews.

So if you want to already set up a package, as a pull request, that would be great. I would need to get up to speed on Nuget, to validate the pull request before going ahead with it, So I can't promise how soon or whether I will pull in the package, but hopefully it will make sense to do so, and I will....

BorisMoore avatar Jul 27 '13 05:07 BorisMoore

Planned for V1.

BorisMoore avatar Aug 06 '15 17:08 BorisMoore

Also, provide typescript definition: See https://www.nuget.org/packages/jsrender.TypeScript.DefinitelyTyped/0.1.8 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsrender/index.d.ts

https://github.com/BorisMoore/jsviews/issues/175

And create a wepack loader to templates, like browserify tmplify. https://webpack.github.io/docs/loaders.html

BorisMoore avatar Feb 28 '16 18:02 BorisMoore

JsViews and JsRender have both been released as v1.0.0 (https://www.jsviews.com/#download) - including TypeScript definitions here.

I will look into NuGet deployment. @michael-lang - we could collaborate on that if you are interested...

BorisMoore avatar Nov 28 '18 20:11 BorisMoore

See also https://github.com/BorisMoore/jsrender/pull/232 (composer)

BorisMoore avatar Jan 23 '19 16:01 BorisMoore

I cant seem to find the correct type packages. I have @types/jsrender, but those are made by Kensuke Matsuzaki @zakki

Jogai avatar Mar 12 '19 11:03 Jogai

They can be found via links on this page "https://www.jsviews.com/#typescript":

https://www.jsviews.com/download/typescript/jsrender/index.d.ts https://www.jsviews.com/download/typescript/jsviews/index.d.ts

Don't do npm install @types/jsrender. They are not yet published there, on DefinitelyTyped.

BorisMoore avatar Mar 12 '19 18:03 BorisMoore

Ok, but this is non-standard, and having one package on the registry makes it more confusing. I'll rather have it like momenjs does, just distribute it along in the main package.

Jogai avatar Mar 15 '19 08:03 Jogai

@Jogai: Like it says: "Both will be published to DefinitelyTyped". I am working on that, and will publish when ready.

Including in the main package is not recommended except for packages written in TypeScript. See https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

BorisMoore avatar Mar 15 '19 18:03 BorisMoore

Typescript definitions have been published.

See https://www.jsviews.com/#typescript, and discussion here: https://github.com/BorisMoore/jsviews/issues/434

BorisMoore avatar Sep 24 '19 21:09 BorisMoore

Also WebPack support is implemented: https://www.jsviews.com/#node/webpack

BorisMoore avatar Sep 24 '19 21:09 BorisMoore