Skip to content

Commit 328d5e0

Browse files
committed
chore: initial commit 🤖📦
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
0 parents  commit 328d5e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+13720
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Bug Description
10+
11+
<!-- A clear and concise description of what the bug is -->
12+
13+
## Steps to Reproduce
14+
15+
1. Run command '...'
16+
2. See error '...'
17+
3. Expected behavior '...'
18+
19+
## Expected Behavior
20+
21+
<!-- What you expected to happen -->
22+
23+
## Actual Behavior
24+
25+
<!-- What actually happened -->
26+
27+
## Environment
28+
29+
- OS: [e.g., macOS 13.0, Ubuntu 22.04, Windows 11]
30+
- aipm version: [run `aipm --version`]
31+
- Installation method: [npm, binary, source]
32+
- Shell: [e.g., bash, zsh, fish]
33+
- Bun version (if applicable): [run `bun --version`]
34+
35+
## Configuration
36+
37+
<!-- Share relevant parts of your .cursor/plugins.json (remove sensitive data) -->
38+
39+
```json
40+
{
41+
"marketplaces": {
42+
// ...
43+
}
44+
}
45+
```
46+
47+
## Error Messages
48+
49+
<!-- Paste any error messages or logs -->
50+
51+
```
52+
Error message here
53+
```
54+
55+
## Additional Context
56+
57+
<!-- Add any other context about the problem here -->
58+
59+
## Possible Solution
60+
61+
<!-- Optional: suggest a fix or reason for the bug -->
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## Feature Description
10+
11+
<!-- A clear and concise description of the feature you'd like -->
12+
13+
## Problem Statement
14+
15+
<!-- What problem does this feature solve? -->
16+
17+
## Proposed Solution
18+
19+
<!-- Describe how you envision this feature working -->
20+
21+
## Example Usage
22+
23+
<!-- Show how users would interact with this feature -->
24+
25+
```bash
26+
# Example command or workflow
27+
aipm <new-command> --option value
28+
```
29+
30+
## Alternatives Considered
31+
32+
<!-- Describe alternative solutions or features you've considered -->
33+
34+
## Additional Context
35+
36+
<!-- Add any other context, mockups, or examples about the feature request -->
37+
38+
## Benefits
39+
40+
<!-- How would this feature benefit the project and its users? -->
41+
42+
- [ ] Improves user experience
43+
- [ ] Adds missing functionality
44+
- [ ] Improves performance
45+
- [ ] Better error handling
46+
- [ ] Other: ___
47+
48+
## Willing to Contribute
49+
50+
<!-- Are you willing to work on this feature? -->
51+
52+
- [ ] Yes, I can submit a PR for this
53+
- [ ] I need guidance to implement this
54+
- [ ] I can help with testing
55+
- [ ] Just suggesting, can't contribute code
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## Description
2+
3+
<!-- Describe your changes in detail -->
4+
5+
## Type of Change
6+
7+
<!-- Mark the relevant option with an "x" -->
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] Documentation update
13+
- [ ] Refactoring (no functional changes)
14+
- [ ] Performance improvement
15+
- [ ] Test addition or modification
16+
17+
## Checklist
18+
19+
- [ ] My code follows the code style of this project (ran `bun run format`)
20+
- [ ] I have performed a self-review of my code
21+
- [ ] I have commented my code, particularly in hard-to-understand areas
22+
- [ ] I have made corresponding changes to the documentation
23+
- [ ] My changes generate no new warnings or errors
24+
- [ ] I have added tests that prove my fix is effective or that my feature works
25+
- [ ] New and existing unit tests pass locally with my changes (`bun test`)
26+
- [ ] All CI checks pass (`bun run ci`)
27+
- [ ] I have updated the CHANGELOG.md (if applicable)
28+
29+
## Testing
30+
31+
<!-- Describe the tests you ran and how to reproduce them -->
32+
33+
```bash
34+
# Example commands used to test
35+
aipm init
36+
aipm marketplace add local ./test-marketplace
37+
```
38+
39+
## Related Issues
40+
41+
<!-- Link related issues here -->
42+
43+
Closes #
44+
Related to #
45+
46+
## Additional Context
47+
48+
<!-- Add any other context, screenshots, or information about the PR here -->
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"packages": {
3+
".": {
4+
"package-name": "@trogonstack/aipm",
5+
"release-type": "node",
6+
"changelog-path": "CHANGELOG.md",
7+
"bump-minor-pre-major": true,
8+
"bump-patch-for-minor-pre-major": true,
9+
"extra-files": ["package.json"]
10+
}
11+
},
12+
"release-search-depth": 10,
13+
"draft": false,
14+
"prerelease": false,
15+
"include-component-in-tag": false
16+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0"
3+
}

‎.github/workflows/ci.yml‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
lint-and-test:
11+
name: Lint and Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v2
18+
with:
19+
bun-version: latest
20+
21+
- name: Install dependencies
22+
run: bun install --frozen-lockfile
23+
24+
- name: Format check
25+
run: bun run format:check
26+
27+
- name: Type check
28+
run: bun run typecheck
29+
30+
- name: Run tests with coverage
31+
run: bun run test:coverage
32+
33+
build:
34+
name: Build Executables
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
matrix:
38+
include:
39+
- os: ubuntu-latest
40+
target: linux
41+
artifact: aipm-linux-x64
42+
- os: macos-latest
43+
target: darwin
44+
artifact: aipm-darwin-x64
45+
- os: macos-latest
46+
target: darwin-arm
47+
artifact: aipm-darwin-arm64
48+
- os: windows-latest
49+
target: windows
50+
artifact: aipm-windows-x64.exe
51+
52+
steps:
53+
- uses: actions/checkout@v4
54+
55+
- name: Setup Bun
56+
uses: oven-sh/setup-bun@v2
57+
with:
58+
bun-version: latest
59+
60+
- name: Install dependencies
61+
run: bun install --frozen-lockfile
62+
63+
- name: Build executable
64+
run: bun run build:${{ matrix.target }}
65+
66+
- name: Upload artifact
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: ${{ matrix.artifact }}
70+
path: dist/${{ matrix.artifact }}
71+
retention-days: 7
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
release_created: ${{ steps.release.outputs.release_created }}
17+
tag_name: ${{ steps.release.outputs.tag_name }}
18+
steps:
19+
- uses: googleapis/release-please-action@v4
20+
id: release
21+
with:
22+
release-type: node
23+
package-name: '@trogonstack/aipm'
24+
config-file: .github/release-please-config.json
25+
manifest-file: .github/release-please-manifest.json
26+
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":true},{"type":"refactor","section":"Code Refactoring","hidden":false},{"type":"test","section":"Tests","hidden":true},{"type":"ci","section":"CI/CD","hidden":true}]'
27+
28+
build-and-publish:
29+
needs: release-please
30+
if: ${{ needs.release-please.outputs.release_created }}
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
include:
35+
- os: ubuntu-latest
36+
target: linux
37+
artifact: aipm-linux-x64
38+
- os: macos-latest
39+
target: darwin
40+
artifact: aipm-darwin-x64
41+
- os: macos-latest
42+
target: darwin-arm
43+
artifact: aipm-darwin-arm64
44+
- os: windows-latest
45+
target: windows
46+
artifact: aipm-windows-x64.exe
47+
48+
steps:
49+
- uses: actions/checkout@v4
50+
51+
- name: Setup Bun
52+
uses: oven-sh/setup-bun@v2
53+
with:
54+
bun-version: latest
55+
56+
- name: Install dependencies
57+
run: bun install --frozen-lockfile
58+
59+
- name: Build executable
60+
run: bun run build:${{ matrix.target }}
61+
62+
- name: Create tarball (Unix)
63+
if: matrix.os != 'windows-latest'
64+
run: |
65+
cd dist
66+
tar -czf ${{ matrix.artifact }}.tar.gz ${{ matrix.artifact }}
67+
68+
- name: Create zip (Windows)
69+
if: matrix.os == 'windows-latest'
70+
run: |
71+
cd dist
72+
Compress-Archive -Path ${{ matrix.artifact }} -DestinationPath ${{ matrix.artifact }}.zip
73+
74+
- name: Upload to Release
75+
uses: softprops/action-gh-release@v1
76+
with:
77+
tag_name: ${{ needs.release-please.outputs.tag_name }}
78+
files: |
79+
dist/${{ matrix.artifact }}.tar.gz
80+
dist/${{ matrix.artifact }}.zip
81+
env:
82+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
84+
npm-publish:
85+
needs: release-please
86+
if: ${{ needs.release-please.outputs.release_created }}
87+
runs-on: ubuntu-latest
88+
steps:
89+
- uses: actions/checkout@v4
90+
91+
- name: Setup Bun
92+
uses: oven-sh/setup-bun@v2
93+
with:
94+
bun-version: latest
95+
96+
- name: Install dependencies
97+
run: bun install --frozen-lockfile
98+
99+
- name: Run CI checks
100+
run: bun run ci
101+
102+
- name: Setup Node.js for npm
103+
uses: actions/setup-node@v4
104+
with:
105+
node-version: '20'
106+
registry-url: 'https://registry.npmjs.org'
107+
108+
- name: Publish to npm
109+
run: npm publish --access public
110+
env:
111+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)