Skip to content

Commit d50cd6b

Browse files
authored
Merge pull request #99 from Davidson3556/feat/lint-format-gates
chore: add working lint and format gates aligned with OSS repo standards
2 parents 93348c6 + f9fbbcb commit d50cd6b

54 files changed

Lines changed: 2746 additions & 2648 deletions

Some content is hidden

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

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Normalize line endings to LF so the Prettier `endOfLine: lf` gate is stable
2+
# across platforms (Windows checkouts included).
3+
* text=auto eol=lf

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ on:
77
branches: [main]
88

99
jobs:
10+
lint:
11+
name: Lint & Format
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: npm
19+
- run: npm ci
20+
- run: npm run lint
21+
- run: npm run format:check
22+
1023
typecheck:
1124
name: Type Check
1225
runs-on: ubuntu-latest
@@ -86,7 +99,7 @@ jobs:
8699
server_port: ${{ secrets.MAIL_SMTP_PORT }}
87100
username: ${{ secrets.MAIL_USERNAME }}
88101
password: ${{ secrets.MAIL_PASSWORD }}
89-
subject: "[${{ github.repository }}] Coverage Report – ${{ github.sha }}"
102+
subject: '[${{ github.repository }}] Coverage Report – ${{ github.sha }}'
90103
to: ${{ secrets.MAINTAINER_EMAIL }}
91104
from: ${{ secrets.MAIL_FROM || 'CI Bot <ci@insforge.dev>' }}
92105
body: |

.prettierignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Dependencies
2+
node_modules/
3+
**/node_modules/
4+
5+
# Build outputs
6+
dist/
7+
**/dist/
8+
build/
9+
out/
10+
*.tsbuildinfo
11+
12+
# Coverage
13+
coverage/
14+
*.lcov
15+
.nyc_output/
16+
17+
# Lock files
18+
package-lock.json
19+
yarn.lock
20+
pnpm-lock.yaml
21+
22+
# Generated files
23+
*.min.js
24+
*.min.css
25+
26+
# Logs
27+
*.log
28+
29+
# IDE
30+
.vscode/
31+
.idea/
32+
33+
# OS
34+
.DS_Store
35+
Thumbs.db
36+
37+
# Environment
38+
.env
39+
.env.*

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"printWidth": 100,
7+
"endOfLine": "lf",
8+
"jsxSingleQuote": false
9+
}

CLAUDE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ alwaysApply: true
1111
### For Dev/Testing (Safe - Won't Affect Main Users)
1212

1313
**Option 1: Auto-increment dev version**
14+
1415
```bash
1516
npm run publish:dev
1617
```
18+
1719
- Auto-bumps version: `0.0.56``0.0.56-dev.0``0.0.56-dev.1` etc.
1820
- Publishes with `--tag dev` (not `latest`)
1921
- Regular users unaffected
2022

2123
**Option 2: Manual dev version (full control)**
24+
2225
```bash
2326
# Set exact version you want
2427
npm version 0.0.60-dev.5 --no-git-tag-version
@@ -27,11 +30,13 @@ npm version 0.0.60-dev.5 --no-git-tag-version
2730
npm run build
2831
npm publish --tag dev
2932
```
33+
3034
- Choose any version number manually
3135
- MUST use `npm publish --tag dev` to avoid affecting production users
3236
- `--no-git-tag-version` prevents auto git commit
3337

3438
### Installing Dev Versions
39+
3540
```bash
3641
# Specific dev version
3742
npm install @insforge/sdk@0.0.60-dev.5
@@ -44,20 +49,24 @@ npm install @insforge/sdk # Gets latest stable
4449
```
4550

4651
### For Production Release
52+
4753
```bash
4854
npm version patch # or minor, major
4955
npm run publish:stable
5056
```
57+
5158
- Updates version following semver
5259
- Publishes with `--tag latest` (default)
5360
- All users get this version by default
5461

5562
## Semver Rules
63+
5664
- **Patch** (0.0.X): Bug fixes, no API changes
5765
- **Minor** (0.X.0): New features, backward compatible
5866
- **Major** (X.0.0): Breaking changes
5967

6068
## Pre-Publish Checklist
69+
6170
- [ ] All tests pass: `npm test`
6271
- [ ] Build succeeds: `npm run build`
6372
- [ ] Type check passes: `npm run typecheck`

0 commit comments

Comments
 (0)