Skip to content

Commit

Permalink
Move the changelog viewer to gh-pages.
Browse files Browse the repository at this point in the history
- And shebang.
  • Loading branch information
mysticatea committed Apr 25, 2015
1 parent da104b6 commit cb657c7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 259 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"private": true,
"name": "uptodate",
"version": "1.0.0",
"description": "A CLI tool to update dependencies in your package.json",
Expand All @@ -15,11 +14,9 @@
"cpx": "^1.0.0",
"es6-promise": "^2.1.1",
"github-url-from-git": "^1.4.0",
"markdown-it": "^4.2.0",
"minimist": "^1.1.1",
"npm-run-all": "^1.0.0",
"opener": "^1.4.1",
"whatwg-fetch": "^0.7.0",
"which": "^1.0.9"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/command.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

import minimist from "minimist";
import uptodate from "./";
import showChangelogs from "./show-changelogs";
Expand Down
3 changes: 1 addition & 2 deletions src/show-changelogs.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import btoa from "btoa";
import open from "opener";
import {join} from "path";
import {readRepositoryName} from "./package-json";
import Promise from "./promise";

const PREFIX = `file://${join(__dirname, "./view.html")}?`;
const PREFIX = "https://mysticatea.github.io/uptodate/changelog-viewer/?";

export default function showChangelogs(cwd, packageNames) {
const repoNamePromises = packageNames.map(name =>
Expand Down
172 changes: 0 additions & 172 deletions src/view.css

This file was deleted.

14 changes: 0 additions & 14 deletions src/view.html

This file was deleted.

67 changes: 0 additions & 67 deletions src/view.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe("uptodate command", () => {
return command([])
.then(() => {
assert(opener.calls.length === 1);
assert(/\?JTQwbXlzdGljYXRlYSUyRnVwdG9kYXRlLXRlc3QtcGFja2FnZTEsJTQwbXlzdGljYXRlYSUyRnVwdG9kYXRlLXRlc3QtcGFja2FnZTIsJTQwbXlzdGljYXRlYSUyRnVwdG9kYXRlLXRlc3QtcGFja2FnZTM=/.test(opener.calls[0].url));
assert(opener.calls[0].url === "https://mysticatea.github.io/uptodate/changelog-viewer/?JTQwbXlzdGljYXRlYSUyRnVwdG9kYXRlLXRlc3QtcGFja2FnZTEsJTQwbXlzdGljYXRlYSUyRnVwdG9kYXRlLXRlc3QtcGFja2FnZTIsJTQwbXlzdGljYXRlYSUyRnVwdG9kYXRlLXRlc3QtcGFja2FnZTM=");
});
});

Expand Down

0 comments on commit cb657c7

Please sign in to comment.