Create a NuGet package
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)
- run release.cmd
- login to http://NuGet.org/
- 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.
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: 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....
Planned for V1.
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
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...
See also https://github.com/BorisMoore/jsrender/pull/232 (composer)
I cant seem to find the correct type packages. I have @types/jsrender, but those are made by Kensuke Matsuzaki @zakki
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.
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: 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
Typescript definitions have been published.
See https://www.jsviews.com/#typescript, and discussion here: https://github.com/BorisMoore/jsviews/issues/434
Also WebPack support is implemented: https://www.jsviews.com/#node/webpack