Skip to content

Commit 8f6f47a

Browse files
Fix some more stuff (#101)
* chore: add license * chore: set commitlint config * chore: fix readme markdown * feat: setup release please * chore: simplify tsconfig
1 parent f12775c commit 8f6f47a

9 files changed

+123
-54
lines changed

.github/dependabot.yml

+7-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1+
# Basic set up for three package managers
2+
13
version: 2
24
updates:
3-
- package-ecosystem: 'npm'
4-
directory: '/'
5+
6+
# Maintain dependencies for GitHub Actions
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
59
schedule:
6-
interval: 'weekly'
7-
day: 'saturday'
8-
versioning-strategy: 'increase'
9-
labels:
10-
- 'dependencies'
11-
open-pull-requests-limit: 5
12-
pull-request-branch-name:
13-
separator: '-'
14-
commit-message:
15-
# cause a release for non-dev-deps
16-
prefix: fix(deps)
17-
# no release for dev-deps
18-
prefix-development: chore(dev-deps)
19-
ignore:
20-
- dependency-name: '@salesforce/dev-scripts'
21-
- dependency-name: '*'
22-
update-types: ['version-update:semver-major']
10+
interval: "weekly"

.github/workflows/release.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
release_created: ${{ steps.release.outputs.release_created }}
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
steps:
20+
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0
21+
id: release
22+
with:
23+
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
24+
config-file: release-please-config.json
25+
manifest-file: .release-please-manifest.json
26+
27+
release:
28+
needs: release-please
29+
if: ${{ needs.release-please.outputs.release_created }}
30+
runs-on: ubuntu-latest
31+
permissions:
32+
contents: write
33+
id-token: write
34+
steps:
35+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
37+
with:
38+
node-version-file: '.nvmrc'
39+
registry-url: 'https://registry.npmjs.org'
40+
- run: npm install
41+
- run: npm run build
42+
- name: Create NPM release
43+
run: npm publish --provenance --access public
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "2.0.0"
3+
}

LICENSE

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2025 HeroDevs, Inc
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+46-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@herodevs/cli
2-
=================
1+
# @herodevs/cli
32

43
The HeroDevs CLI
54

@@ -11,7 +10,7 @@ The HeroDevs CLI
1110
* [Usage](#usage)
1211
* [Commands](#commands)
1312
<!-- tocstop -->
14-
# Usage
13+
## Usage
1514
<!-- usage -->
1615
```sh-session
1716
$ npm install -g @herodevs/cli
@@ -25,7 +24,7 @@ USAGE
2524
...
2625
```
2726
<!-- usagestop -->
28-
# Commands
27+
## Commands
2928
<!-- commands -->
3029
* [`hd help [COMMAND]`](#hd-help-command)
3130
* [`hd plugins`](#hd-plugins)
@@ -43,13 +42,39 @@ USAGE
4342
* [`hd scan eol`](#hd-scan-eol)
4443
* [`hd scan sbom`](#hd-scan-sbom)
4544

46-
## `hd help [COMMAND]`
45+
### `hd help [COMMAND]`
4746

4847
Display help for hd.
4948

5049
```
50+
51+
_See code: [src/commands/hello/index.ts](https://github.com/mdonnalley/mycli123/blob/v0.0.0/src/commands/hello/index.ts)_
52+
53+
### `mycli123 hello world`
54+
55+
Say hello world
56+
57+
```text
5158
USAGE
52-
$ hd help [COMMAND...] [-n]
59+
$ mycli123 hello world
60+
61+
DESCRIPTION
62+
Say hello world
63+
64+
EXAMPLES
65+
$ mycli123 hello world
66+
hello world! (./src/commands/hello/world.ts)
67+
```
68+
69+
_See code: [src/commands/hello/world.ts](https://github.com/mdonnalley/mycli123/blob/v0.0.0/src/commands/hello/world.ts)_
70+
71+
### `mycli123 help [COMMAND]`
72+
73+
Display help for mycli123.
74+
75+
```text
76+
USAGE
77+
$ mycli123 help [COMMAND...] [-n]
5378
5479
ARGUMENTS
5580
COMMAND... Command to show help for.
@@ -63,7 +88,7 @@ DESCRIPTION
6388

6489
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.26/src/commands/help.ts)_
6590

66-
## `hd plugins`
91+
### `hd plugins`
6792

6893
List installed plugins.
6994

@@ -86,7 +111,7 @@ EXAMPLES
86111

87112
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/index.ts)_
88113

89-
## `hd plugins add PLUGIN`
114+
### `hd plugins add PLUGIN`
90115

91116
Installs a plugin into hd.
92117

@@ -133,7 +158,7 @@ EXAMPLES
133158
$ hd plugins add someuser/someplugin
134159
```
135160

136-
## `hd plugins:inspect PLUGIN...`
161+
### `hd plugins:inspect PLUGIN...`
137162

138163
Displays installation properties of a plugin.
139164

@@ -160,7 +185,7 @@ EXAMPLES
160185

161186
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/inspect.ts)_
162187

163-
## `hd plugins install PLUGIN`
188+
### `hd plugins install PLUGIN`
164189

165190
Installs a plugin into hd.
166191

@@ -209,11 +234,11 @@ EXAMPLES
209234

210235
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/install.ts)_
211236

212-
## `hd plugins link PATH`
237+
### `hd plugins link PATH`
213238

214239
Links a plugin into the CLI for development.
215240

216-
```
241+
```text
217242
USAGE
218243
$ hd plugins link PATH [-h] [--install] [-v]
219244
@@ -240,7 +265,7 @@ EXAMPLES
240265

241266
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/link.ts)_
242267

243-
## `hd plugins remove [PLUGIN]`
268+
### `hd plugins remove [PLUGIN]`
244269

245270
Removes a plugin from the CLI.
246271

@@ -266,7 +291,7 @@ EXAMPLES
266291
$ hd plugins remove myplugin
267292
```
268293

269-
## `hd plugins reset`
294+
### `hd plugins reset`
270295

271296
Remove all user-installed and linked plugins.
272297

@@ -281,7 +306,7 @@ FLAGS
281306

282307
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/reset.ts)_
283308

284-
## `hd plugins uninstall [PLUGIN]`
309+
### `hd plugins uninstall [PLUGIN]`
285310

286311
Removes a plugin from the CLI.
287312

@@ -309,7 +334,7 @@ EXAMPLES
309334

310335
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/uninstall.ts)_
311336

312-
## `hd plugins unlink [PLUGIN]`
337+
### `hd plugins unlink [PLUGIN]`
313338

314339
Removes a plugin from the CLI.
315340

@@ -335,7 +360,7 @@ EXAMPLES
335360
$ hd plugins unlink myplugin
336361
```
337362

338-
## `hd plugins update`
363+
### `hd plugins update`
339364

340365
Update installed plugins.
341366

@@ -353,11 +378,11 @@ DESCRIPTION
353378

354379
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/update.ts)_
355380

356-
## `hd report committers [FILE]`
381+
### `hd report committers [FILE]`
357382

358383
Generate report of committers to a git repository
359384

360-
```
385+
```text
361386
USAGE
362387
$ hd report committers [FILE] [-f] [-n <value>]
363388
@@ -377,11 +402,11 @@ EXAMPLES
377402

378403
_See code: [src/commands/report/committers.ts](https://github.com/herodevs/cli/blob/v2.0.0/src/commands/report/committers.ts)_
379404

380-
## `hd report purls`
405+
### `hd scan eol [DIR]`
381406

382407
Generate a list of purls from a sbom
383408

384-
```
409+
```text
385410
USAGE
386411
$ hd report purls [-f <value>] [-d <value>] [-s] [-o json|csv]
387412

commitlint.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'body-max-line-length': [0, 'always'],
5+
},
6+
};

package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"bin": {
77
"hd": "./bin/run.js"
88
},
9+
"bugs": "https://github.com/@herodevs/cli/issues",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/herodevs/cli.git"
13+
},
914
"type": "module",
1015
"scripts": {
1116
"build": "shx rm -rf dist && tsc -b",
@@ -24,7 +29,6 @@
2429
"typecheck": "tsc --noEmit",
2530
"version": "oclif readme && git add README.md"
2631
},
27-
"bugs": "https://github.com/@herodevs/cli/issues",
2832
"dependencies": {
2933
"@apollo/client": "^3.13.1",
3034
"@cyclonedx/cdxgen": "^11.2.0",
@@ -51,7 +55,8 @@
5155
"files": [
5256
"./bin",
5357
"./dist",
54-
"./oclif.manifest.json"
58+
"./oclif.manifest.json",
59+
"LICENSE"
5560
],
5661
"homepage": "https://github.com/@herodevs/cli",
5762
"keywords": [
@@ -77,9 +82,5 @@
7782
"prerun": "./dist/hooks/prerun/CommandContextHook"
7883
}
7984
},
80-
"repository": {
81-
"type": "git",
82-
"url": "https://github.com/herodevs/cli.git"
83-
},
8485
"types": "dist/index.d.ts"
8586
}

test/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "../tsconfig",
33
"compilerOptions": {
4-
"noEmit": true,
5-
"module": "ESNext"
4+
"noEmit": true
65
}
76
}

tsconfig.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@
66
"rootDir": "src",
77
"strict": true,
88
"target": "ESNext",
9-
"allowJs": true,
10-
"checkJs": true,
11-
"esModuleInterop": true,
129
"erasableSyntaxOnly": true,
1310
"rewriteRelativeImportExtensions": true,
1411
"verbatimModuleSyntax": true,
1512
"isolatedModules": true,
16-
"skipLibCheck": true,
17-
"forceConsistentCasingInFileNames": true,
18-
"typeRoots": ["node_modules/@types", "types"]
13+
"skipLibCheck": true
1914
},
2015
"include": ["src/**/*", "types/**/*.d.ts"],
2116
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts", "test/**/*"]

0 commit comments

Comments
 (0)