-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22a30c8
commit 54fe977
Showing
4 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"time":"479h6m27s"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
From "2018-02-01" to "today" : 479h6m27s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* global require */ | ||
/* global process */ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
// open AuthorHours.txt and write time into JSON file | ||
|
||
const hours = fs.readFileSync("AuthorHours.txt", "utf8"); | ||
console.log(hours.split("\n")[0].split(": ")[1]); | ||
const json = { time: hours.split("\n")[0].split(": ")[1] }; | ||
|
||
fs.writeFile("AuthorHours.json", JSON.stringify(json), "utf8", function (err) { | ||
if (err) return console.log(err); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
"lint": "web-ext lint", | ||
"esLint": "npx eslint firefox/ chrome/", | ||
"test": "cd firefox && web-ext build --overwrite-dest && cd .. && node refreshXPI.js && python test.py", | ||
"hours": "git hours -since 2018-02-01 -before today -author Marvin Alexander Krebber" | ||
"hours": "git hours -since 2018-02-01 -before today -author [email protected] > AuthorHours.txt && node hourstxtToJSON.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|