Remove version name

This commit is contained in:
Brandon Tilley 2013-12-31 10:52:52 -08:00
parent ac192b779b
commit d28358568c
3 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,6 @@ var spawn = require('child_process').spawn;
var type = process.argv[2]; var type = process.argv[2];
var version = process.argv[3]; var version = process.argv[3];
var name = process.argv[4]
if ("stable" !== type && "unstable" !== type) { if ("stable" !== type && "unstable" !== type) {
console.log("You must specify 'stable' or 'unstable' version type."); console.log("You must specify 'stable' or 'unstable' version type.");
@ -30,7 +29,6 @@ bower.version = version;
site[type].latest = site[type].latest || {}; site[type].latest = site[type].latest || {};
site[type].latest.version = "v" + version; site[type].latest.version = "v" + version;
if (name) site[type].latest.name = name;
fs.writeFileSync('package.json', JSON.stringify(package, null, ' ') + "\n"); fs.writeFileSync('package.json', JSON.stringify(package, null, ' ') + "\n");
fs.writeFileSync('bower.json', JSON.stringify(bower, null, ' ') + "\n"); fs.writeFileSync('bower.json', JSON.stringify(bower, null, ' ') + "\n");

View File

@ -4,8 +4,7 @@
}, },
"unstable": { "unstable": {
"latest": { "latest": {
"version": "v1.0.0-rc.2", "version": "v1.0.0-rc.2"
"name": null
} }
} }
} }

View File

@ -10,7 +10,7 @@
<p>Up-to-the-minute releases, archived versions, and full release notes can be found <a href='https://github.com/BinaryMuse/planetary.js/releases'>on the GitHub releases page</a>.</p> <p>Up-to-the-minute releases, archived versions, and full release notes can be found <a href='https://github.com/BinaryMuse/planetary.js/releases'>on the GitHub releases page</a>.</p>
<% if (data.stable.latest) { %> <% if (data.stable.latest) { %>
<h2>Latest Stable Build: <%= data.stable.latest.version %> (<%= data.stable.latest.name %>)</h2> <h2>Latest Stable Build: <%= data.stable.latest.version %></h2>
<p><a href="https://github.com/BinaryMuse/planetary.js/releases/tag/<%= data.stable.latest.version %>">Release notes</a> <p><a href="https://github.com/BinaryMuse/planetary.js/releases/tag/<%= data.stable.latest.version %>">Release notes</a>
| |
<a href="https://github.com/BinaryMuse/planetary.js/tree/<%= data.stable.latest.version %>">GitHub tag</a></p> <a href="https://github.com/BinaryMuse/planetary.js/tree/<%= data.stable.latest.version %>">GitHub tag</a></p>