opencode-office 0.1.1 โ 0.1.4
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/README.md +26 -42
- package/dist/scripts/publish.d.ts +1 -0
- package/dist/src/index.d.ts +3 -0
- package/package.json +6 -6
- package/src/version.ts +0 -1
package/README.md
CHANGED
|
@@ -1,71 +1,55 @@
|
|
|
1
1
|
# opencode-office
|
|
2
2
|
|
|
3
|
-
Microsoft Office Plugin
|
|
4
|
-
|
|
5
|
-
> A Bun module created from the [bun-module](https://github.com/zenobi-us/bun-module) template
|
|
3
|
+
Microsoft Office Plugin for OpenCode.
|
|
6
4
|
|
|
7
5
|
## Features
|
|
8
6
|
|
|
9
7
|
- ๐๏ธ TypeScript-based module architecture
|
|
10
|
-
-
|
|
8
|
+
- โก Biome for high-performance linting and formatting
|
|
11
9
|
- ๐ฆ Bun/npm build tooling
|
|
12
|
-
- โจ ESLint + Prettier formatting
|
|
13
10
|
- ๐งช Vitest testing setup
|
|
14
|
-
- ๐ GitHub Actions CI/CD
|
|
15
|
-
- ๐
|
|
11
|
+
- ๐ GitHub Actions CI/CD with Trusted Publishing (OIDC)
|
|
12
|
+
- ๐ Automated releases with Release Please
|
|
16
13
|
|
|
17
14
|
## Getting Started
|
|
18
15
|
|
|
19
|
-
1. **
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
cp -r bun-module your-module-name
|
|
23
|
-
cd your-module-name
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
2. **Update package.json:**
|
|
27
|
-
- Change `name` to your module name
|
|
28
|
-
- Update `description`
|
|
29
|
-
- Update `repository.url`
|
|
30
|
-
|
|
31
|
-
3. **Install dependencies:**
|
|
16
|
+
1. **Install dependencies:**
|
|
32
17
|
|
|
33
18
|
```bash
|
|
34
19
|
bun install
|
|
35
20
|
```
|
|
36
21
|
|
|
37
|
-
|
|
22
|
+
2. **Development:**
|
|
23
|
+
- `npm run build` - Build the module
|
|
24
|
+
- `npm run lint` - Lint code
|
|
25
|
+
- `npm run format` - Format code
|
|
26
|
+
- `npm run test` - Run tests
|
|
38
27
|
|
|
39
|
-
|
|
40
|
-
export function hello(name: string): string {
|
|
41
|
-
return `Hello, ${name}!`;
|
|
42
|
-
}
|
|
43
|
-
```
|
|
28
|
+
## Releasing & Publishing
|
|
44
29
|
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
mise run test
|
|
48
|
-
```
|
|
30
|
+
This project uses **Release Please** for automated versioning and changelogs.
|
|
49
31
|
|
|
50
|
-
|
|
32
|
+
### 1. Conventional Commits
|
|
51
33
|
|
|
52
|
-
|
|
53
|
-
- `mise run test` - Run tests
|
|
54
|
-
- `mise run lint` - Lint code
|
|
55
|
-
- `mise run lint:fix` - Fix linting issues
|
|
56
|
-
- `mise run format` - Format code with Prettier
|
|
34
|
+
We follow the [Conventional Commits](https://www.conventionalcommits.org/) specification for all changes:
|
|
57
35
|
|
|
58
|
-
|
|
36
|
+
- `fix:` bumps patch version (0.1.0 -> 0.1.1)
|
|
37
|
+
- `feat:` bumps minor version (0.1.0 -> 0.2.0)
|
|
38
|
+
- `feat!:` or `fix!:` bumps major version (breaking changes)
|
|
59
39
|
|
|
60
|
-
|
|
40
|
+
### 2. Automated Release Workflow
|
|
61
41
|
|
|
62
|
-
|
|
42
|
+
1. Push your commits to the `main` branch.
|
|
43
|
+
2. Release Please will automatically open/update a "Release PR" with the new version and changelog.
|
|
44
|
+
3. Merge the Release PR to trigger the automated build and publish to npm.
|
|
63
45
|
|
|
64
|
-
|
|
46
|
+
### 3. NPM Trusted Publishing
|
|
65
47
|
|
|
66
|
-
|
|
48
|
+
Authentication with npm is handled automatically via GitHub Actions OIDC (OpenID Connect). No manual tokens are required.
|
|
67
49
|
|
|
68
|
-
|
|
50
|
+
## Author
|
|
51
|
+
|
|
52
|
+
- [al-scion](https://github.com/al-scion)
|
|
69
53
|
|
|
70
54
|
## License
|
|
71
55
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-office",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Microsoft Office plugin for OpenCode",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "al-scion",
|
|
7
9
|
"email": "abel@withscion.com"
|
|
8
10
|
},
|
|
9
|
-
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/index.d.ts",
|
|
@@ -22,8 +23,7 @@
|
|
|
22
23
|
"provenance": true
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
"src/version.ts"
|
|
26
|
+
"dist"
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "bun build ./src/index.ts --outdir dist --target bun && bun x tsc",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"lint:fix": "biome check --write --unsafe src",
|
|
32
32
|
"format": "biome format --write src",
|
|
33
33
|
"test": "bun test",
|
|
34
|
-
"publish
|
|
34
|
+
"publish": "bun run build && npm publish --no-provenance"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@biomejs/biome": "1.9.4",
|
|
38
38
|
"@opencode-ai/plugin": "^1.1.16",
|
|
39
39
|
"@types/node": "^20.11.5",
|
|
40
|
-
"bun
|
|
40
|
+
"@types/bun": "^1.3.5",
|
|
41
41
|
"vitest": "^3.2.4"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/version.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const VERSION = "0.1.0";
|