Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tasks for publishing to nuget #326

Open
timrwood opened this issue Apr 4, 2016 · 1 comment
Open

Add tasks for publishing to nuget #326

timrwood opened this issue Apr 4, 2016 · 1 comment

Comments

@timrwood
Copy link
Member

timrwood commented Apr 4, 2016

RE: moment/moment#1041 and moment/moment#1816, it would be nice to include Nuget in the release process for moment-timezone.

There is a package in place already at https://www.nuget.org/packages/Moment.Timezone.js/, maintained by @corydeppen.

Moment core already publishes to nuget, so we can look at that implementation for reference. https://github.com/moment/moment/blob/develop/tasks/nuget.js

@corydeppen, are there any gotchas or advice to keep in mind when implementing this? Do you have an existing .nuspec file or a repo anywhere?

@corydeppen
Copy link

I think the only real hurdle is running the NuGet exe if you're not on Windows, but if you have grunt-nuget working for the Moment core project you should be fine if you're using that as a reference. I've included the latest nuspec file below.

<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  <metadata>
    <id>Moment.Timezone.js</id>
    <version>0.5.3</version>
    <authors>Tim Wood</authors>
    <owners>Cory Deppen</owners>
    <description>Parse and display moments in any timezone.</description>
    <projectUrl>http://momentjs.com/timezone/</projectUrl>
    <iconUrl>http://pbs.twimg.com/profile_images/482670411402858496/Xrtdc94q_normal.png</iconUrl>
    <licenseUrl>https://raw.githubusercontent.com/moment/moment-timezone/develop/LICENSE</licenseUrl>
    <dependencies>
      <dependency id="Moment.js" version="2.6.0"/>
    </dependencies>
    <tags>JavaScript date time timezone browser node.js</tags>
    <releaseNotes>
      - Updated data to IANA TZDB 2016c.
    </releaseNotes>
  </metadata>
</package>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants