aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-03-26 21:47:00 -0400
committerTeddy Wing2014-03-26 21:47:00 -0400
commitdc3479bce6528c42353a22fdf2a98dfda22e5afa (patch)
treef48cbc674ed940394e8a0c71091a20ce5c186016
parent996d3b473a35416fb6d13805ba22067031f1a2de (diff)
downloadGitHub-Show-Full-Commit-Message-Bookmarklet-dc3479bce6528c42353a22fdf2a98dfda22e5afa.tar.bz2
Add npm script to compile bookmarklet
-rw-r--r--build/github-show-full-commit-message.bookmarklet1
-rw-r--r--package.json3
2 files changed, 4 insertions, 0 deletions
diff --git a/build/github-show-full-commit-message.bookmarklet b/build/github-show-full-commit-message.bookmarklet
new file mode 100644
index 0000000..df6db9d
--- /dev/null
+++ b/build/github-show-full-commit-message.bookmarklet
@@ -0,0 +1 @@
+javascript:(function()%7B(function()%7Bif(-1!%3Dwindow.location.href.indexOf(%22github.com%22))%7Bvar%20e%3D%24(%22.commit-message%20.hidden-text-expander%20.js-details-target%22)%3B%24(%22.commit.open%22).length%3E0%3F%24(%22.commit%22).removeClass(%22open%22)%3Ae.click()%7D%7D)()%3B%7D)()
diff --git a/package.json b/package.json
index d37ef20..c76ddd9 100644
--- a/package.json
+++ b/package.json
@@ -6,5 +6,8 @@
"license": "MIT",
"dependencies": {
"bookmarklet": "0.x"
+ },
+ "scripts": {
+ "package": "bookmarklet github-show-full-commit-message.js > build/github-show-full-commit-message.bookmarklet"
}
}