-
Notifications
You must be signed in to change notification settings - Fork 27
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
Enable easy installation via NPM #9
base: master
Are you sure you want to change the base?
Conversation
Hi @cspotcode, this is very exciting! You've basically read my mind about distributing it to I've tested this, but am not sure if I did it correctly. Here were my tries: 1st try1. Saw it available from 2. Created an empty directory
3. Copied a folder called repos into it. That folder already had a few repos within itself. 4. Ran But again, maybe I'm having the wrong expectation, but I thought it was the idea since PS: I tried this a few times, the screenshot above was taken the first time, from within a different folder than 2nd try1. From within the same folder from previous try, I cloned your fork and checked out to the pull-request branch:
2.
That did generate 4. Copied the folder repos into the root of the cloned
Realising I had to be within the 6. Oops, the script expected 8. Moved repos to the The I guess the Maybe I'm missing something. Could there be a missing step somewhere? I understand you wanted the path not to be hardcoded and I'm totally fine with that, but I do miss the errors when the path isn't specified and when the folder is empty. You think you could bring them back? |
I've pushed some changes I have meant to do for a long time, as I felt the former initial setting up was too complex and somewhat confusing. I've also realised I'd suggested in the README that one could just move the sub-folder The I guess we can continue to debug from the feature-branch, and sort out the conflicts when we're ready to merge the PR. 🎱 |
Sweet, sounds great. I'm travelling for Thanksgiving all of today (driving On Nov 20, 2016 19:25, "Wallace Sidhrée" notifications@github.com wrote:
|
15e4d1b
to
3cfdf91
Compare
`npm install -g gitlogg` will put it on your path Script is now agnostic to the pwd in which it's invoked `.js` is pre-transpiled so babel isn't required at runtime - set environment variable GITLOGG_DEV to enable runtime transpilation and avoid the build step Instead of a hardcoded `yourpath` variable, each positional argument to `gitlogg` is a repository path. - You can easily `gitlogg ./myrepos/*/` to process all repositories in a directory `.js` reads and writes from file descriptors 3 and 4; these are managed by bash script
`--pretty=tformat` string is generated automatically from array of `git log` fields. Each field is separated by a null character, which as far as I know can't appear naturally in any of those fields. Babel now transpiles from .es to .js, which is easier than transpiling to .compiled.js now that there are multiple .es scripts
3cfdf91
to
a310d5b
Compare
I made a bunch of updates and pushed a new version to
EDIT: forgot to mention, it's rebased on top of your latest changes as well. |
Hi @cspotcode I'm really looking forward to reviewing this! 👍 It's the end of the year and the place I work at has all kind of deadlines to be met. Typical. I'll be at it asap, but that could mean a good while from now. My priority will always be performance, but if the output is saner without compromising already existing features/fields, I'm all in. At a glance your changes are pretty radical, and that's not a bad thing, but I might consider merging it to a new branch, until a time comes to consolidate it all together over a few compromises. Cheers for your contrib so far, I'll be coming back to this as soon as I can. 🦄 ✨ |
Hi again @cspotcode. I'm testing on a new machine with everything installed from scratch. Testing this was pretty much the first thing I did. I got the exact same
...which points to this line. |
OK, I'll take a look tomorrow.
…On Dec 3, 2016 14:31, "Wallace Sidhrée" ***@***.***> wrote:
Hi again @cspotcode <https://github.com/cspotcode>. I'm testing on a new
machine with everything installed from scratch. Testing this was pretty
much the first thing I did.
I got the exact same try errors I have already posted on the screenshots,
but this time there was only this error besides that:
/Users/123/.nvm/versions/node/v6.9.1/bin/gitlogg: line 10: /Users/123/Sites/gitlogg-generate-log.sh: No such file or directory
...which points to this line
<https://github.com/dreamyguy/gitlogg/blob/a310d5b2599df5450aed8059d8cb085049326239/scripts/gitlogg.sh#L10>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAW-uPiNR80NjWtTpHEr27BWtbzoho6jks5rEcOZgaJpZM4K3Up8>
.
|
I fixed the errors you were seeing. I think it was caused by double- versus single-quotes in a bash script; I guess we're running different versions of bash? You can install a fixed package with I've also been making some bigger changes which I'll submit in a separate PR and am publishing to |
It would be great if we could install gitlogg via npm.
So a wrote a PR for that. You can test the PR like so:
(I'll unpublish that scoped package if you decide to merge this PR)
...but ideally you could publish gitlogg to npm so it would be as simple as
npm install gitlogg
.The interface has changed slightly. Instead of a hardcoded
$yourpath
variable, you now pass each repository as an argument. This meansgitlogg ./myrepos/*/
will still look at every repository in a directory.npm run prepublish
precompiles the.js
with babel. Since this might be annoying to remember during development, setting theGITLOGG_DEV
environment variable will trigger the old behavior: babel will be invoked at runtime.EDIT: Installing directly from github wasn't working so I published to npm
@cspotcode/gitlogg