Skip to content

Commit 665c6f5

Browse files
committed
first commit
0 parents  commit 665c6f5

File tree

15 files changed

+9154
-0
lines changed

15 files changed

+9154
-0
lines changed

.github/workflows/describe.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Repo Describer
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
describe:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # allow pushing changes back to repo
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Generate JSON Descriptions
25+
env:
26+
HF_API_KEY: ${{ secrets.HF_API_KEY }}
27+
run: |
28+
npx repo-describer . repo_descriptions.json --format json
29+
30+
- name: Generate Markdown Descriptions
31+
env:
32+
HF_API_KEY: ${{ secrets.HF_API_KEY }}
33+
run: |
34+
npx repo-describer . repo_descriptions.md --format markdown --summary
35+
36+
- name: Update README.md
37+
env:
38+
HF_API_KEY: ${{ secrets.HF_API_KEY }}
39+
run: |
40+
npx repo-describer . repo_descriptions.md --format markdown --summary --readme ./README.md
41+
42+
- name: Commit and Push changes
43+
run: |
44+
git config --global user.name "github-actions[bot]"
45+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46+
git add README.md repo_descriptions.json repo_descriptions.md
47+
git commit -m "chore: update file descriptions [skip ci]" || echo "No changes to commit"
48+
git push

.gitignore

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
example/
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Optional REPL history
61+
.node_repl_history
62+
63+
# Output of 'npm pack'
64+
*.tgz
65+
66+
# Yarn Integrity file
67+
.yarn-integrity
68+
69+
# dotenv environment variable files
70+
.env
71+
.env.*
72+
!.env.example
73+
74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
.parcel-cache
77+
78+
# Next.js build output
79+
.next
80+
out
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
.output
86+
87+
# Gatsby files
88+
.cache/
89+
# Comment in the public line in if your project uses Gatsby and not Next.js
90+
# https://nextjs.org/blog/next-9-1#public-directory-support
91+
# public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# vuepress v2.x temp and cache directory
97+
.temp
98+
.cache
99+
100+
# Sveltekit cache directory
101+
.svelte-kit/
102+
103+
# vitepress build output
104+
**/.vitepress/dist
105+
106+
# vitepress cache directory
107+
**/.vitepress/cache
108+
109+
# Docusaurus cache and generated files
110+
.docusaurus
111+
112+
# Serverless directories
113+
.serverless/
114+
115+
# FuseBox cache
116+
.fusebox/
117+
118+
# DynamoDB Local files
119+
.dynamodb/
120+
121+
# Firebase cache directory
122+
.firebase/
123+
124+
# TernJS port file
125+
.tern-port
126+
127+
# Stores VSCode versions used for testing VSCode extensions
128+
.vscode-test
129+
130+
# yarn v3
131+
.pnp.*
132+
.yarn/*
133+
!.yarn/patches
134+
!.yarn/plugins
135+
!.yarn/releases
136+
!.yarn/sdks
137+
!.yarn/versions
138+
139+
# Vite files
140+
vite.config.js.timestamp-*
141+
vite.config.ts.timestamp-*
142+
.vite/

.prettierrc.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 80,
5+
"plugins": ["prettier-plugin-packagejson"],
6+
"packagejson.order": [
7+
"name",
8+
"version",
9+
"description",
10+
"bin",
11+
"keywords",
12+
"homepage",
13+
"bugs",
14+
"repository",
15+
"license",
16+
"author",
17+
"contributors",
18+
"files",
19+
"main",
20+
"module",
21+
"types",
22+
"scripts",
23+
"config",
24+
"dependencies",
25+
"devDependencies",
26+
"peerDependencies",
27+
"optionalDependencies",
28+
"engines",
29+
"os",
30+
"cpu",
31+
"private",
32+
"publishConfig"
33+
]
34+
}

.vscode/launch.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch Programmatic Program",
9+
"program": "${workspaceFolder}\\example\\programmatic-use.js",
10+
"request": "launch",
11+
"skipFiles": ["<node_internals>/**"],
12+
"type": "node"
13+
},
14+
{
15+
"name": "Launch Refactor Program",
16+
"program": "${workspaceFolder}\\src\\refactor-package.js",
17+
"request": "launch",
18+
"skipFiles": ["<node_internals>/**"],
19+
"type": "node"
20+
},
21+
{
22+
"type": "node",
23+
"request": "launch",
24+
"name": "Launch Program",
25+
"skipFiles": ["<node_internals>/**"],
26+
"program": "${workspaceFolder}\\src\\cli.js",
27+
"args": [
28+
"."
29+
// "descriptions.json",
30+
// "update-config",
31+
// "markdown-magic.config.js",
32+
// "transform-name",
33+
// "fileTreeExtended"
34+
]
35+
}
36+
]
37+
}

0 commit comments

Comments
 (0)