├── .github └── FUNDING.yml ├── .gitignore ├── CONTRIBUTING.md ├── DOCUMENTATION.md ├── LICENSE ├── README.md ├── bin └── git-stats-importer ├── example └── index.js ├── lib └── index.js └── package.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: ionicabizau 2 | patreon: ionicabizau 3 | open_collective: ionicabizau 4 | custom: https://www.buymeacoffee.com/h96wwchmy -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | *~ 4 | *.log 5 | node_modules 6 | *.env 7 | .DS_Store 8 | package-lock.json 9 | .bloggify/* 10 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # 🌟 Contributing 2 | 3 | Want to contribute to this project? Great! Please read these quick steps to streamline the process and avoid unnecessary tasks. ✨ 4 | 5 | ## 💬 Discuss Changes 6 | Start by opening an issue in the repository using the [bug tracker][1]. Describe your proposed contribution or the bug you've found. If relevant, include platform info and screenshots. 🖼️ 7 | 8 | Wait for feedback before proceeding unless the fix is straightforward, like a typo. 📝 9 | 10 | ## 🔧 Fixing Issues 11 | 12 | Fork the project and create a branch for your fix, naming it `some-great-feature` or `some-issue-fix`. Commit changes while following the [code style][2]. If the project has tests, add one. ✅ 13 | 14 | If a `package.json` or `bower.json` exists, add yourself to the `contributors` array; create it if it doesn't. 🙌 15 | 16 | ```json 17 | { 18 | "contributors": [ 19 | "Your Name (http://your.website)" 20 | ] 21 | } 22 | ``` 23 | 24 | ## 📬 Creating a Pull Request 25 | Open a pull request and reference the initial issue (e.g., *fixes #*). Provide a clear title and consider adding visual aids for clarity. 📊 26 | 27 | ## ⏳ Wait for Feedback 28 | Your contributions will be reviewed. If feedback is given, update your branch as needed, and the pull request will auto-update. 🔄 29 | 30 | ## 🎉 Everyone Is Happy! 31 | Your contributions will be merged, and everyone will appreciate your effort! 😄❤️ 32 | 33 | Thanks! 🤩 34 | 35 | [1]: /issues 36 | [2]: https://github.com/IonicaBizau/code-style -------------------------------------------------------------------------------- /DOCUMENTATION.md: -------------------------------------------------------------------------------- 1 | ## Documentation 2 | 3 | You can see below the API reference of this module. 4 | 5 | ### `Importer(options, gs, data)` 6 | Creates a new `Importer` instance. 7 | 8 | #### Params 9 | 10 | - **Object** `options`: The `GitStatsImporter` options. 11 | - **GitStats** `gs`: The `GitStats` instance. 12 | - **Object** `data`: The commit data. 13 | 14 | #### Return 15 | - **Importer** The `Importer` instance. 16 | 17 | ### `stream()` 18 | Spawns the `git log` command and returns the stdout stream. 19 | 20 | #### Return 21 | - **Stream** The stdout stream of `git log` command. 22 | 23 | ### `iterate()` 24 | Emits the `commmit`, `error` and `finish` events. 25 | 26 | ### `delete()` 27 | Deletes the selected commits. 28 | 29 | ### `import()` 30 | Imports the selected commits. 31 | 32 | ### `GitStatsImporter(options)` 33 | Creates a new instance of `GitStatsImporter`. 34 | 35 | #### Params 36 | 37 | - **Object** `options`: An object containing the following fields: 38 | - `path` (String): The repository path. 39 | - `delete` (Boolean): If `true`, it will delete the commits from the history. 40 | - `recursive` (Boolean): If `true` the tool will search for repositories in the specified path, recursively. 41 | - `emails` (Array): An array with the emails that were used in the commits you want to import. 42 | 43 | #### Return 44 | - **GitStatsImporter** The `GitStatsImporter` instance. 45 | 46 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015-25 Ionică Bizău (https://ionicabizau.net) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | # `$ git-stats-importer` 21 | 22 | [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/git-stats-importer.svg)](https://www.npmjs.com/package/git-stats-importer) [![Downloads](https://img.shields.io/npm/dt/git-stats-importer.svg)](https://www.npmjs.com/package/git-stats-importer) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github) 23 | 24 | Buy Me A Coffee 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | > Imports your commits from a repository into git-stats history. 33 | 34 | 35 | 36 | 37 | 38 | 39 | This tool imports commits into the [`git-stats`](https://github.com/IonicaBizau/git-stats) commit history. If you like to import all your commits from BitBucket and GitHub, check out the [Repository Downloader project](https://github.com/IonicaBizau/repository-downloader). 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | ## :cloud: Installation 53 | 54 | You can install the package globally and use it as command line tool: 55 | 56 | 57 | ```sh 58 | # Using npm 59 | npm install --global git-stats-importer 60 | 61 | # Using yarn 62 | yarn global add git-stats-importer 63 | ``` 64 | 65 | 66 | Then, run `git-stats-importer --help` and see what the CLI tool can do. 67 | 68 | 69 | ``` 70 | $ git-stats-importer --help 71 | Usage: git-stats-importer [options] 72 | 73 | Options: 74 | -f, --find-repos If this option is provided, the importer will 75 | search for repositories in the provided path 76 | (recursively). 77 | -d, --delete Delete the commits from selected repositories. 78 | -e, --emails Comma separated emails you want to include in the 79 | import process. By default it's the 80 | $GIT_AUTHOR_EMAIL value. 81 | -h, --help Displays this help. 82 | -v, --version Displays version information. 83 | 84 | Examples: 85 | git-stats-importer # imports the commits from the current repository 86 | git-stats-importer --delete # deletes the commits from the current repo 87 | git-stats-importer --find-repos ~/github # searches for repositories in the ~/github dir 88 | git-stats-importer --delete --find-repos ~/github # deletes the commits from the ~/github dir 89 | 90 | Documentation can be found at https://github.com/IonicaBizau/git-stats-importer 91 | ``` 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | ## :clipboard: Example 106 | 107 | 108 | 109 | Here is an example how to use this package as library. To install it locally, as library, you can use `npm install git-stats-importer` (or `yarn add git-stats-importer`): 110 | 111 | 112 | 113 | ```js 114 | // Dependencies 115 | var GitStatsImporter = require("git-stats-importer"); 116 | 117 | // Start importing 118 | var importer = GitStatsImporter({ 119 | // If true, it will delete these commits 120 | delete: false 121 | 122 | // The path to the project/projects directory 123 | , path: "~/some-project" 124 | 125 | // If true, it will import all the repositories found 126 | // in the provided path 127 | , recursive: false 128 | 129 | // A list with the emails 130 | , emails: [ 131 | "alice@example.com" 132 | , "bob@example.com" 133 | ] 134 | }); 135 | 136 | // Output for git folders 137 | importer.on("gitFolder", function (dir) { 138 | /* do something when a git folder is found */ 139 | }); 140 | 141 | // Listen for import 142 | importer.on("import", function (data) { 143 | /* do something when a commit is imported */ 144 | }); 145 | 146 | // Listen for import 147 | importer.on("error", function (err, data) { 148 | /* do something when errors occur */ 149 | }); 150 | 151 | // Listen for delete 152 | importer.on("delete", function (data) { 153 | /* do something on delete */ 154 | }); 155 | 156 | // Listen for finish 157 | importer.on("finish", function (data) { 158 | /* do something on finish */ 159 | }); 160 | ``` 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | ## :question: Get Help 174 | 175 | There are few ways to get help: 176 | 177 | 178 | 179 | 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question. 180 | 2. For bug reports and feature requests, open issues. :bug: 181 | 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket: 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | ## :memo: Documentation 190 | 191 | For full API reference, see the [DOCUMENTATION.md][docs] file. 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | ## :yum: How to contribute 205 | Have an idea? Found a bug? See [how to contribute][contributing]. 206 | 207 | 208 | ## :sparkling_heart: Support my projects 209 | I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, 210 | this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it). 211 | 212 | However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it: 213 | 214 | 215 | - Starring and sharing the projects you like :rocket: 216 | - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book: 217 | - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea: 218 | - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone). 219 | - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6` 220 | 221 | ![](https://i.imgur.com/z6OQI95.png) 222 | 223 | 224 | Thanks! :heart: 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | ## :scroll: License 250 | 251 | [MIT][license] © [Ionică Bizău][website] 252 | 253 | 254 | 255 | 256 | 257 | 258 | [license]: /LICENSE 259 | [website]: https://ionicabizau.net 260 | [contributing]: /CONTRIBUTING.md 261 | [docs]: /DOCUMENTATION.md 262 | [badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg 263 | [badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg 264 | [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg 265 | [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg 266 | [patreon]: https://www.patreon.com/ionicabizau 267 | [amazon]: http://amzn.eu/hRo9sIZ 268 | [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW 269 | -------------------------------------------------------------------------------- /bin/git-stats-importer: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | // Dependencies 4 | var Clp = require("clp") 5 | , Package = require("../package") 6 | , GitStatsImporter = require("../") 7 | , Logger = require("bug-killer") 8 | ; 9 | 10 | // Configuration 11 | Logger.config.import = { 12 | color: [46, 204, 113] 13 | , text: "import" 14 | , level: 3 15 | }; 16 | 17 | Logger.config.delete = { 18 | color: [231, 76, 60] 19 | , text: "delete" 20 | , level: 3 21 | }; 22 | 23 | // Create options and add them 24 | var findReposOpt = new Clp.Option(["f", "find-repos"], "If this option is provided, the importer will search for repositories in the provided path (recursively).", "path", process.cwd()) 25 | , deleteOpt = new Clp.Option(["d", "delete"], "Delete the commits from selected repositories.") 26 | , emailOpt = new Clp.Option(["e", "emails"], "Comma separated emails you want to include in the import process. By default it's the $GIT_AUTHOR_EMAIL value.", "emails", process.env.GIT_AUTHOR_EMAIL) 27 | , parser = new Clp({ 28 | name: "Git Stats Importer" 29 | , version: Package.version 30 | , process: true 31 | , exe: Package.name 32 | , examples: [ 33 | "git-stats-importer # imports the commits from the current repository" 34 | , "git-stats-importer --delete # deletes the commits from the current repo" 35 | , "git-stats-importer --find-repos ~/github # searches for repositories in the ~/github dir" 36 | , "git-stats-importer --delete --find-repos ~/github # deletes the commits from the ~/github dir" 37 | ] 38 | , docs_url: Package.homepage 39 | }, [findReposOpt, deleteOpt, emailOpt]) 40 | ; 41 | 42 | if (!emailOpt.value) { 43 | return Logger.log(new Error("Cannot find any emails. Specify them using -e")); 44 | } else { 45 | emailOpt.value = emailOpt.value.split(",").map(function (c) { 46 | return c.trim(); 47 | }); 48 | } 49 | 50 | // Start importing 51 | var importer = GitStatsImporter({ 52 | delete: deleteOpt.is_provided 53 | , path: findReposOpt.value 54 | , recursive: findReposOpt.is_provided 55 | , emails: emailOpt.value 56 | }); 57 | 58 | if (findReposOpt.is_provided) { 59 | Logger.log("Searching for git repositories in the provided path. This may take a while."); 60 | } 61 | 62 | // Output for git folders 63 | importer.on("gitFolder", function (dir) { 64 | Logger.log("Found git project in: " + dir); 65 | }); 66 | 67 | // Listen for import 68 | importer.on("import", function (data) { 69 | Logger.log([data.path, data.commit.hash].join(":"), "import"); 70 | }); 71 | 72 | // Listen for delete 73 | importer.on("delete", function (data) { 74 | Logger.log([data.path, data.commit.hash].join(":"), "delete"); 75 | }); 76 | 77 | // Listen for import 78 | importer.on("error", function (err, data) { 79 | Logger.log(err, "error"); 80 | }); 81 | 82 | // Listen for finish 83 | importer.on("finish", function (err, data) { 84 | if (err) { 85 | return Logger.log(err, "error"); 86 | } 87 | Logger.log("Done."); 88 | }); 89 | -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | // Dependencies 2 | var GitStatsImporter = require("../"); 3 | 4 | // Start importing 5 | var importer = GitStatsImporter({ 6 | // If true, it will delete these commits 7 | delete: false 8 | 9 | // The path to the project/projects directory 10 | , path: "~/some-project" 11 | 12 | // If true, it will import all the repositories found 13 | // in the provided path 14 | , recursive: false 15 | 16 | // A list with the emails 17 | , emails: [ 18 | "alice@example.com" 19 | , "bob@example.com" 20 | ] 21 | }); 22 | 23 | // Output for git folders 24 | importer.on("gitFolder", function (dir) { 25 | /* do something when a git folder is found */ 26 | }); 27 | 28 | // Listen for import 29 | importer.on("import", function (data) { 30 | /* do something when a commit is imported */ 31 | }); 32 | 33 | // Listen for import 34 | importer.on("error", function (err, data) { 35 | /* do something when errors occur */ 36 | }); 37 | 38 | // Listen for delete 39 | importer.on("delete", function (data) { 40 | /* do something on delete */ 41 | }); 42 | 43 | // Listen for finish 44 | importer.on("finish", function (data) { 45 | /* do something on finish */ 46 | }); 47 | -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- 1 | // Dependencies 2 | var GitLogParser = require("gitlog-parser").parse 3 | , Ul = require("ul") 4 | , Typpy = require("typpy") 5 | , Events = require("events") 6 | , EventEmitter = Events.EventEmitter 7 | , GitStats = require("git-stats") 8 | , ParentSearch = require("parent-search") 9 | , OneByOne = require("one-by-one") 10 | , ChildProcess = require("child_process") 11 | , Spawn = ChildProcess.spawn 12 | , GitRepos = require("git-repos") 13 | , OArgv = require("oargv") 14 | ; 15 | 16 | /** 17 | * Importer 18 | * Creates a new `Importer` instance. 19 | * 20 | * @name Importer 21 | * @function 22 | * @param {Object} options The `GitStatsImporter` options. 23 | * @param {GitStats} gs The `GitStats` instance. 24 | * @param {Object} data The commit data. 25 | * @return {Importer} The `Importer` instance. 26 | */ 27 | function Importer(options, gs, data) { 28 | this.path = options.path; 29 | this.emails = options.emails; 30 | this.ev = new EventEmitter(); 31 | this.gs = gs; 32 | this.data = data; 33 | } 34 | 35 | /** 36 | * stream 37 | * Spawns the `git log` command and returns the stdout stream. 38 | * 39 | * @name stream 40 | * @function 41 | * @return {Stream} The stdout stream of `git log` command. 42 | */ 43 | Importer.prototype.stream = function () { 44 | var self = this 45 | , args = OArgv({ 46 | author: this.emails 47 | , color: "never" 48 | , __: "=" 49 | }, "log") 50 | , pr = Spawn( 51 | "git" 52 | , args 53 | , { cwd: this.path } 54 | ) 55 | ; 56 | 57 | return pr.stdout; 58 | }; 59 | 60 | /** 61 | * iterate 62 | * Emits the `commmit`, `error` and `finish` events. 63 | * 64 | * @name iterate 65 | * @function 66 | */ 67 | Importer.prototype.iterate = function () { 68 | var self = this; 69 | GitLogParser(self.stream()).on("commit", function(commit) { 70 | if (!commit) { return; } 71 | self.ev.emit("commit", commit); 72 | }).on("error", function (err) { 73 | self.emit("error"); 74 | }).on("finish", function () { 75 | self.ev.emit("finish"); 76 | }); 77 | }; 78 | 79 | /** 80 | * delete 81 | * Deletes the selected commits. 82 | * 83 | * @name delete 84 | * @function 85 | */ 86 | Importer.prototype.delete = function () { 87 | var self = this; 88 | self.ev.on("commit", function (commit) { 89 | self.gs.removeCommit({ 90 | date: commit.date 91 | , hash: commit.hash 92 | , save: false 93 | , _data: self.data 94 | }); 95 | self.ev.emit("delete", { 96 | path: self.path 97 | , commit: commit 98 | }); 99 | }); 100 | self.iterate(); 101 | }; 102 | 103 | /** 104 | * import 105 | * Imports the selected commits. 106 | * 107 | * @name import 108 | * @function 109 | */ 110 | Importer.prototype.import = function () { 111 | var self = this; 112 | self.ev.on("commit", function (commit) { 113 | self.gs.record({ 114 | date: commit.date 115 | , hash: commit.hash 116 | , save: false 117 | , _data: self.data 118 | }); 119 | self.ev.emit("import", { 120 | path: self.path 121 | , commit: commit 122 | }); 123 | }); 124 | self.iterate(); 125 | }; 126 | 127 | /** 128 | * GitStatsImporter 129 | * Creates a new instance of `GitStatsImporter`. 130 | * 131 | * @name GitStatsImporter 132 | * @function 133 | * @param {Object} options An object containing the following fields: 134 | * 135 | * - `path` (String): The repository path. 136 | * - `delete` (Boolean): If `true`, it will delete the commits from the history. 137 | * - `recursive` (Boolean): If `true` the tool will search for repositories in the specified path, recursively. 138 | * - `emails` (Array): An array with the emails that were used in the commits you want to import. 139 | * 140 | * @return {GitStatsImporter} The `GitStatsImporter` instance. 141 | */ 142 | function GitStatsImporter(options) { 143 | 144 | var ev = new EventEmitter() 145 | , gs = new GitStats() 146 | ; 147 | 148 | if (Typpy(options, String)) { 149 | options = { 150 | path: options 151 | }; 152 | } 153 | 154 | options = Ul.merge(options, { 155 | delete: false 156 | , path: process.cwd() 157 | , recursive: false 158 | }); 159 | 160 | function start() { 161 | // Init the config 162 | OneByOne([ 163 | gs.initConfig.bind(gs) 164 | , gs.get.bind(gs) 165 | , function (next, data) { 166 | var queue = [] 167 | , searcher = null 168 | ; 169 | 170 | function importPath(path, cb) { 171 | var ops = Ul.clone(options); 172 | ops.path = path; 173 | 174 | var importer = new Importer(ops, gs, data); 175 | 176 | importer.ev.on("error", ev.emit.bind(ev, "delete")); 177 | importer.ev.on("import", ev.emit.bind(ev, "import")); 178 | importer.ev.on("delete", ev.emit.bind(ev, "delete")); 179 | importer.ev.on("finish", function () { 180 | cb(); 181 | }); 182 | 183 | if (options.delete) { 184 | importer.delete(); 185 | } else { 186 | importer.import(); 187 | } 188 | } 189 | 190 | if (options.recursive) { 191 | var foos = []; 192 | searcher = GitRepos(options.path, function (err, dir) { 193 | if (err) { 194 | return ev.emit("error", err); 195 | } 196 | ev.emit("gitFolder", dir); 197 | foos.push(importPath.bind(this, dir)); 198 | }); 199 | searcher.on("end", function () { 200 | OneByOne(foos, function (err) { 201 | next(err, data); 202 | }); 203 | }); 204 | } else { 205 | importPath(options.path, function (err) { 206 | next(err, data); 207 | }); 208 | } 209 | } 210 | , function (next, data) { 211 | gs.save(data, next); 212 | } 213 | ], function (err, data) { 214 | ev.emit("finish", err, data); 215 | }); 216 | } 217 | 218 | if (!options.recursive) { 219 | ParentSearch(options.path, ".git", { 220 | obj: true 221 | }, function (err, d) { 222 | if (err) { return ev.emit("error", err); } 223 | if (d === null) { 224 | return ev.emit("error", new Error("This is not a git repository.")); 225 | } 226 | options.path = d.d; 227 | start(); 228 | }); 229 | } else { 230 | process.nextTick(start); 231 | } 232 | 233 | return ev; 234 | } 235 | 236 | module.exports = GitStatsImporter; 237 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "git-stats-importer", 3 | "version": "2.4.12", 4 | "description": "Imports your commits from a repository into git-stats history.", 5 | "main": "lib/index.js", 6 | "bin": { 7 | "git-stats-importer": "./bin/git-stats-importer" 8 | }, 9 | "devDependencies": {}, 10 | "scripts": { 11 | "test": "echo \"Error: no test specified\" && exit 1" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git+https://github.com/IonicaBizau/git-stats-importer.git" 16 | }, 17 | "keywords": [ 18 | "git", 19 | "stats", 20 | "importer" 21 | ], 22 | "author": "Ionică Bizău (https://ionicabizau.net)", 23 | "contributors": [ 24 | "John Clarke ", 25 | "Gnab ", 26 | "Linquize ", 27 | "Iulian Onofrei ", 28 | "Alexander https://github.com/CatCookie" 29 | ], 30 | "license": "MIT", 31 | "bugs": { 32 | "url": "https://github.com/IonicaBizau/git-stats-importer/issues" 33 | }, 34 | "homepage": "https://github.com/IonicaBizau/git-stats-importer", 35 | "directories": { 36 | "example": "example" 37 | }, 38 | "dependencies": { 39 | "clp": "^3.0.0", 40 | "git-repos": "^1.0.0", 41 | "bug-killer": "^4.0.0", 42 | "git-stats": "^2.0.0", 43 | "gitlog-parser": "^0.0.4", 44 | "gry": "^4.0.0", 45 | "oargv": "^3.2.0", 46 | "is-there": "^4.0.0", 47 | "one-by-one": "^2.0.0", 48 | "parent-search": "^1.1.0", 49 | "typpy": "^2.1.0", 50 | "ul": "^5.0.0" 51 | }, 52 | "blah": { 53 | "description": "This tool imports commits into the [`git-stats`](https://github.com/IonicaBizau/git-stats) commit history. If you like to import all your commits from BitBucket and GitHub, check out the [Repository Downloader project](https://github.com/IonicaBizau/repository-downloader)." 54 | }, 55 | "files": [ 56 | "bin/", 57 | "app/", 58 | "lib/", 59 | "dist/", 60 | "src/", 61 | "scripts/", 62 | "resources/", 63 | "menu/", 64 | "cli.js", 65 | "index.js", 66 | "index.d.ts", 67 | "package-lock.json", 68 | "bloggify.js", 69 | "bloggify.json", 70 | "bloggify/" 71 | ] 72 | } --------------------------------------------------------------------------------