@eldrforge/commands-publish 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +63 -0
- package/dist/index-D-RqK3Aj.js +214 -0
- package/dist/index-D-RqK3Aj.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2239 -0
- package/dist/index.js.map +1 -0
- package/dist/src/commands/development.d.ts +6 -0
- package/dist/src/commands/development.d.ts.map +1 -0
- package/dist/src/commands/publish.d.ts +3 -0
- package/dist/src/commands/publish.d.ts.map +1 -0
- package/dist/src/commands/release.d.ts +3 -0
- package/dist/src/commands/release.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/guide/index.md +57 -0
- package/package.json +76 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"development.d.ts","sourceRoot":"","sources":["../../../src/commands/development.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAmB,MAAM,EAA4C,MAAM,iBAAiB,CAAC;AAmGpG;;GAEG;AACH,eAAO,MAAM,OAAO,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,CA0Z/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../src/commands/publish.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8B,MAAM,EAAgM,MAAM,iBAAiB,CAAC;AA+dnQ,eAAO,MAAM,OAAO,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CA6/B7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/commands/release.ts"],"names":[],"mappings":";AAEA,OAAO,eAAe,CAAC;AAGvB,OAAO,EACH,MAAM,EAiBN,cAAc,EAGjB,MAAM,iBAAiB,CAAC;AA+PzB,eAAO,MAAM,OAAO,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,cAAc,CAiNvE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
package/guide/index.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @eldrforge/commands-publish - Agentic Guide
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Publishing workflow commands for kodrdriv. Provides:
|
|
6
|
+
- Development version bumping
|
|
7
|
+
- NPM publish workflow with PR creation
|
|
8
|
+
- GitHub release creation
|
|
9
|
+
|
|
10
|
+
## Quick Reference
|
|
11
|
+
|
|
12
|
+
For AI agents working with this package:
|
|
13
|
+
- Development command: Bumps version with -dev suffix
|
|
14
|
+
- Publish command: Creates PR, publishes to npm
|
|
15
|
+
- Release command: Creates GitHub release
|
|
16
|
+
|
|
17
|
+
## Key Exports
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
// Publishing commands
|
|
21
|
+
import { development, publish, release } from '@eldrforge/commands-publish';
|
|
22
|
+
|
|
23
|
+
// Execute commands
|
|
24
|
+
await development(config);
|
|
25
|
+
await publish(config);
|
|
26
|
+
await release(config);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Dependencies
|
|
30
|
+
|
|
31
|
+
- @eldrforge/core - Core utilities
|
|
32
|
+
- @eldrforge/commands-git - Git workflow commands
|
|
33
|
+
- @eldrforge/git-tools - Git operations
|
|
34
|
+
- @eldrforge/github-tools - GitHub API
|
|
35
|
+
- @eldrforge/ai-service - AI content generation
|
|
36
|
+
|
|
37
|
+
## Command Workflows
|
|
38
|
+
|
|
39
|
+
### development
|
|
40
|
+
|
|
41
|
+
1. Check current branch
|
|
42
|
+
2. Bump version with -dev suffix
|
|
43
|
+
3. Create development branch
|
|
44
|
+
|
|
45
|
+
### publish
|
|
46
|
+
|
|
47
|
+
1. Run precommit checks
|
|
48
|
+
2. Bump version
|
|
49
|
+
3. Create PR
|
|
50
|
+
4. Publish to npm
|
|
51
|
+
|
|
52
|
+
### release
|
|
53
|
+
|
|
54
|
+
1. Generate changelog
|
|
55
|
+
2. Create GitHub release
|
|
56
|
+
3. Tag version
|
|
57
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eldrforge/commands-publish",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Publishing workflow commands for kodrdriv (development, publish, release)",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"guide"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/grunnverk/commands-publish.git"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "npm run lint && tsc --noEmit && vite build",
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"watch": "vite build --watch",
|
|
25
|
+
"test": "vitest run --coverage",
|
|
26
|
+
"lint": "eslint . --ext .ts",
|
|
27
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
28
|
+
"clean": "rm -rf dist",
|
|
29
|
+
"precommit": "npm run clean && npm run build && npm run lint && npm run test",
|
|
30
|
+
"prepublishOnly": "npm run clean && npm run lint && npm run build && npm run test"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"kodrdriv",
|
|
34
|
+
"publish",
|
|
35
|
+
"release",
|
|
36
|
+
"development",
|
|
37
|
+
"npm",
|
|
38
|
+
"commands"
|
|
39
|
+
],
|
|
40
|
+
"author": "Tim O'Brien <tobrien@discursive.com>",
|
|
41
|
+
"license": "Apache-2.0",
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@eldrforge/core": "^0.1.0",
|
|
44
|
+
"@eldrforge/commands-git": "^0.1.0",
|
|
45
|
+
"@eldrforge/commands-tree": "^0.1.0",
|
|
46
|
+
"@eldrforge/git-tools": "^0.1.17",
|
|
47
|
+
"@eldrforge/github-tools": "^0.1.18",
|
|
48
|
+
"@eldrforge/ai-service": "^0.1.17",
|
|
49
|
+
"@eldrforge/shared": "^0.1.6",
|
|
50
|
+
"@riotprompt/riotprompt": "^0.0.10",
|
|
51
|
+
"openai": "^6.3.0",
|
|
52
|
+
"semver": "^7.6.0",
|
|
53
|
+
"dotenv": "^17.2.1"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
57
|
+
"@eslint/js": "^9.33.0",
|
|
58
|
+
"@swc/core": "^1.13.3",
|
|
59
|
+
"@types/node": "^25.0.3",
|
|
60
|
+
"@types/semver": "^7.5.8",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.39.1",
|
|
62
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
63
|
+
"@vitest/coverage-v8": "^4.0.13",
|
|
64
|
+
"esbuild": "0.27.2",
|
|
65
|
+
"eslint": "^9.33.0",
|
|
66
|
+
"eslint-plugin-import": "^2.32.0",
|
|
67
|
+
"globals": "^16.3.0",
|
|
68
|
+
"mockdate": "^3.0.5",
|
|
69
|
+
"typescript": "^5.9.2",
|
|
70
|
+
"vite": "^7.2.4",
|
|
71
|
+
"vite-plugin-dts": "^4.3.0",
|
|
72
|
+
"vite-plugin-node": "^7.0.0",
|
|
73
|
+
"vitest": "^4.0.13"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|