Skip to content

Commit e6f9f30

Browse files
committed
feat: welcome to NativeMind
1 parent 3e9dc25 commit e6f9f30

File tree

226 files changed

+23364
-433
lines changed

Some content is hidden

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

226 files changed

+23364
-433
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These owners will be the default owners for everything in the repo.
2+
# Unless a later match takes precedence, these owners will be requested for
3+
# review when someone opens a pull request.
4+
* @NativeMindBrowser/maintainers
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve NativeMind
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
1. Go to '...'
15+
2. Click on '...'
16+
3. Scroll down to '...'
17+
4. See error
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Screenshots**
23+
If applicable, add screenshots to help explain your problem.
24+
25+
**Environment (please complete the following information):**
26+
- OS: [e.g. Windows, macOS, Linux]
27+
- Browser [e.g. Chrome, Firefox, Safari] and version
28+
- NativeMind Version [e.g. 0.1.4]
29+
- AI Model being used [e.g. WebLLM, Ollama]
30+
31+
**Additional context**
32+
Add any other context about the problem here, such as console errors or logs.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
blank_issues_enabled: true
2+
templates:
3+
bug_report:
4+
name: "Bug Report"
5+
description: "Report a bug or issue in the repository."
6+
labels: ["bug"]
7+
deploy_request:
8+
name: "Deploy Request"
9+
description: "Request a deployment of the repository."
10+
labels: ["deploy"]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for NativeMind
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Pull Request
2+
3+
## Description
4+
5+
Please include a summary of the changes and which issue is fixed. Please also include relevant motivation and context.
6+
7+
Fixes # (issue number)
8+
9+
## Type of change
10+
11+
Please delete options that are not relevant.
12+
13+
- [ ] Bug fix (non-breaking change which fixes an issue)
14+
- [ ] New feature (non-breaking change which adds functionality)
15+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- [ ] Documentation update
17+
18+
## How Has This Been Tested?
19+
20+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
21+
22+
- [ ] Test A
23+
- [ ] Test B
24+
25+
## Checklist:
26+
27+
- [ ] My code follows the style guidelines of this project
28+
- [ ] I have performed a self-review of my code
29+
- [ ] I have commented my code, particularly in hard-to-understand areas
30+
- [ ] I have made corresponding changes to the documentation
31+
- [ ] My changes generate no new warnings
32+
- [ ] I have added tests that prove my fix is effective or that my feature works
33+
- [ ] New and existing unit tests pass locally with my changes
34+
- [ ] Any dependent changes have been merged and published in downstream modules

.github/workflows/code-quality.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Code Quality Check
2+
3+
on:
4+
push:
5+
branches: "*"
6+
pull_request:
7+
branches: "*"
8+
9+
jobs:
10+
lint-and-typecheck:
11+
name: Lint and Type Check
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v2
20+
with:
21+
run_install: false
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version-file: ".nvmrc"
27+
cache: "pnpm"
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Run Code Linting
33+
run: pnpm run check

.github/workflows/release.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Release Version
2+
3+
run-name: 'Release ${{ inputs.releaseType }}'
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
releaseType:
9+
description: 'Release type'
10+
required: true
11+
default: 'beta'
12+
type: choice
13+
options:
14+
- beta
15+
- prod
16+
17+
jobs:
18+
release:
19+
name: Release ${{ inputs.releaseType }}
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
25+
outputs:
26+
new_version: ${{ steps.get-version.outputs.version }}
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
ssh-key: ${{ secrets.DEPLOY_KEY }}
33+
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v2
36+
with:
37+
run_install: false
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version-file: '.nvmrc'
43+
cache: 'pnpm'
44+
45+
- name: Configure Git
46+
run: |
47+
git config --global user.name 'github-actions[bot]'
48+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
49+
50+
- name: Install dependencies
51+
run: pnpm install --frozen-lockfile
52+
53+
- name: Run release script
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: pnpm run release:${{ inputs.releaseType }}
57+
58+
- name: Get new version
59+
id: get-version
60+
run: |
61+
VERSION=$(node -p "require('./package.json').version")
62+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
63+
echo "Released version: $VERSION" >> $GITHUB_STEP_SUMMARY
64+
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Security Scan
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 1"
6+
push:
7+
branches: [main]
8+
paths:
9+
- "package.json"
10+
- "pnpm-lock.yaml"
11+
workflow_dispatch:
12+
13+
jobs:
14+
security-scan:
15+
name: Security Vulnerability Scan
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v2
24+
with:
25+
run_install: false
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version-file: '.nvmrc'
31+
cache: 'pnpm'
32+
33+
- name: Run npm audit
34+
run: pnpm audit --production
35+
continue-on-error: true
36+
37+
- name: Check for outdated dependencies
38+
run: pnpm outdated
39+
continue-on-error: true

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm check

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.14.0

0 commit comments

Comments
 (0)