Skip to content

Commit 9dd0078

Browse files
authored
Merge pull request #4 from 10up/release/1.0.0
Release/1.0.0
2 parents 447a641 + f01ee20 commit 9dd0078

File tree

9 files changed

+63
-15
lines changed

9 files changed

+63
-15
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# These owners will be the default owners for everything in the repo. Unless a later match takes precedence, @iamdharmesh, as primary maintainer will be requested for review when someone opens a Pull Request.
2+
* @iamdharmesh
3+
4+
# GitHub and WordPress.org specifics
5+
/.github/ @jeffpaul
6+
CODE_OF_CONDUCT.md @jeffpaul
7+
LICENSE.md @jeffpaul

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish the NPM package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
name: Publish
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
15+
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
16+
with:
17+
node-version-file: .nvmrc
18+
always-auth: true
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Publish
25+
run: npm publish --access public
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ All notable changes to this project will be documented in this file, per [the Ke
44

55
## [Unreleased] - TBD
66

7-
[Unreleased]: https://github.com/10up/wp-hooks-documentor/compare/trunk...develop
7+
## [1.0.0] - 2025-08-21
8+
9+
- Initial Release 🎉
10+
11+
[Unreleased]: https://github.com/10up/wp-hooks-documentor/compare/trunk...develop
12+
[1.0.0]: https://github.com/10up/wp-hooks-documentor/tree/1.0.0

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `develop` branch is the development branch which means it contains the next
2929
## Release instructions
3030

3131
1. Branch: Starting from `develop`, cut a release branch named `release/X.Y.Z` for your changes.
32-
2. Version bump: Bump the version number in `package.json`, `package-lock.json` and any other relevant files if it does not already reflect the version being released.
32+
2. Version bump: Bump the version number in `package.json`, `package-lock.json`, `src/cli.ts` and any other relevant files if it does not already reflect the version being released.
3333
3. Changelog: Add/update the changelog in `CHANGELOG.md`.
3434
4. Props: update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
3535
5. New files: Check to be sure any new files/paths that are unnecessary in the production version are included in `.gitattributes`.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
> A powerful tool to generate beautiful documentation for WordPress plugin hooks.
44
5-
65
[![Support Level](https://img.shields.io/badge/support-beta-blueviolet.svg)](#support-level) [![Release Version](https://img.shields.io/github/release/10up/wp-hooks-documentor.svg)](https://github.com/10up/wp-hooks-documentor/releases/latest) [![MIT License](https://img.shields.io/github/license/10up/wp-hooks-documentor.svg)](https://github.com/10up/wp-hooks-documentor/blob/develop/LICENSE.md) [![CodeQL](https://github.com/10up/wp-hooks-documentor/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/10up/wp-hooks-documentor/actions/workflows/codeql-analysis.yml)
76

8-
97
## Features
108

119
- 📦 Automatically collects action and filter hooks from your WordPress plugin
@@ -22,19 +20,21 @@
2220
## Installation
2321

2422
```bash
25-
npm install -g wp-hooks-documentor
23+
npm install -g @10up/wp-hooks-documentor
2624
```
2725

2826
## Quick Start
2927

3028
1. Initialize a new configuration file:
29+
3130
```bash
3231
wp-hooks-documentor init
3332
```
3433

3534
2. Edit the generated `wp-hooks-doc.json` file to match your project settings.
3635

3736
3. Generate documentation:
37+
3838
```bash
3939
wp-hooks-documentor generate
4040
```

package-lock.json

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

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "wp-hooks-documentor",
3-
"version": "0.1.0",
2+
"name": "@10up/wp-hooks-documentor",
3+
"version": "1.0.0",
44
"description": "WordPress Plugin Hook Documentation Generator",
55
"main": "dist/cli.js",
66
"bin": {
7-
"wp-hooks-documentor": "./dist/cli.js"
7+
"wp-hooks-documentor": "dist/cli.js"
88
},
99
"files": [
1010
"dist/**/*",
@@ -14,6 +14,7 @@
1414
"build": "tsc",
1515
"start": "node dist/cli.js",
1616
"dev": "tsc -w",
17+
"prepublishOnly": "npm run build",
1718
"lint": "eslint ./src --ext .ts",
1819
"lint:fix": "eslint ./src --ext .ts --fix",
1920
"format": "prettier --write \"src/**/*.ts\"",
@@ -25,7 +26,15 @@
2526
"documentation",
2627
"generator"
2728
],
28-
"author": "10up",
29+
"repository": {
30+
"type": "git",
31+
"url": "git+https://github.com/10up/wp-hooks-documentor.git"
32+
},
33+
"bugs": {
34+
"url": "https://github.com/10up/wp-hooks-documentor/issues"
35+
},
36+
"homepage": "https://github.com/10up/wp-hooks-documentor#readme",
37+
"author": "10up <[email protected]> (https://github.com/10up)",
2938
"license": "MIT",
3039
"dependencies": {
3140
"commander": "^14.0.0",

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const defaultConfig: WPHooksDocConfig = {
2727
program
2828
.name('wp-hooks-documentor')
2929
.description('Generate documentation for Plugin hooks')
30-
.version('0.1.0');
30+
.version('1.0.0');
3131

3232
program
3333
.command('generate')

src/orchestrator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class Orchestrator {
6060
tagline: this.config.tagline || 'Hooks Documentation for Plugin',
6161
url: this.config.url || 'https://example.com',
6262
baseUrl: this.config.baseUrl || '/',
63-
repoUrl: this.config.repoUrl || 'https://github.com/iamdharmesh/wp-hooks-documentor',
63+
repoUrl: this.config.repoUrl || 'https://github.com/10up/wp-hooks-documentor',
6464
organizationName: this.config.organizationName,
6565
projectName: this.config.projectName,
6666
templatesDir: this.config.templatesDir,

0 commit comments

Comments
 (0)