From dc3479bce6528c42353a22fdf2a98dfda22e5afa Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 26 Mar 2014 21:47:00 -0400 Subject: Add npm script to compile bookmarklet --- build/github-show-full-commit-message.bookmarklet | 1 + package.json | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 build/github-show-full-commit-message.bookmarklet 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" } } -- cgit v1.2.3