8000 add package.json back · tandyx/github-lang-css@4f4585e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f4585e

Browse files
committed
add package.json back
1 parent 25db197 commit 4f4585e

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
2-
package-lock.json
32
background.css
43
index.css
54
langs.json
5+
raw_langs.json

build.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ async function main() {
5050
.join("")
5151
);
5252
fs.writeFileSync("langs.json", JSON.stringify(langColors));
53+
fs.writeFileSync(
54+
"raw_langs.json",
55+
JSON.stringify(
56+
Object.keys(langs).reduce((acc, val) => {
57+
acc[val] = langs[val].color;
58+
return acc;
59+
}, {})
60+
)
61+
);
5362
}
5463

5564
main();

package-lock.json

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "github-lang-css",
33
"version": "1.0.0",
4-
"description": "github language colors in css",
4+
"description": "github language colors in css and json",
55
"main": "index.css",
66
"scripts": {
77
"build": "node build.js",

0 commit comments

Comments
 (0)
0