Skip to content

Commit 6e15d11

Browse files
committed
chore(infra): add infra related
1 parent 765901a commit 6e15d11

25 files changed

+977
-48
lines changed

.github/renovate.json5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['config:base', 'schedule:monthly', 'group:allNonMajor'],
4+
rangeStrategy: 'bump',
5+
packageRules: [{ depTypeList: ['peerDependencies'], enabled: false }],
6+
}

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
- macos-latest
18+
- windows-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v6
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 10.28.2
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v6
31+
with:
32+
node-version: 20.20.0
33+
cache: pnpm
34+
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Run build
39+
run: pnpm build

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.DS_Store
2+
*.log*
3+
*.cpuprofile
4+
node_modules/
5+
6+
dist/
7+
dist-*
8+
compiled/
9+
coverage/
10+
tsconfig.tsbuildinfo
11+
12+
# Test temp files
13+
test-temp-*
14+
15+
.vscode/**/*
16+
!.vscode/settings.json
17+
!.vscode/extensions.json

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry = 'https://registry.npmjs.org/'

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore artifacts:
2+
dist
3+
doc_build
4+
pnpm-lock.yaml
5+
6+
skills/**/*.js
7+
skills/**/*.cjs
8+
skills/**/*.mjs

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"plugins": ["prettier-plugin-packagejson"]
4+
}

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"biomejs.biome",
4+
"esbenp.prettier-vscode",
5+
"streetsidesoftware.code-spell-checker",
6+
"unifiedjs.vscode-mdx"
7+
]
8+
}

.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"search.useIgnoreFiles": true,
3+
"search.exclude": {
4+
"**/.git": true,
5+
"**/dist": true,
6+
"**/dist-*": true,
7+
"**/doc_build": true,
8+
"**/node_modules": true,
9+
"**/tsconfig.tsbuildinfo": true
10+
},
11+
"files.exclude": {
12+
"**/.DS_Store": true
13+
},
14+
"mdx.validate.validateFileLinks": "ignore",
15+
"editor.defaultFormatter": "esbenp.prettier-vscode",
16+
"typescript.tsdk": "node_modules/typescript/lib"
17+
}

biome.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on"
7+
}
8+
}
9+
},
10+
"vcs": {
11+
"enabled": true,
12+
"defaultBranch": "main",
13+
"clientKind": "git",
14+
"useIgnoreFile": true
15+
},
16+
"files": {
17+
"includes": [
18+
"**/packages/**",
19+
"**/scripts/**",
20+
"!skills/**/scripts/*.{js,cjs,mjs}",
21+
"!**/node_modules",
22+
"!**/dist",
23+
"!**/dist-*"
24+
],
25+
"ignoreUnknown": true
26+
},
27+
"formatter": {
28+
"enabled": false
29+
},
30+
"linter": {
31+
"enabled": true,
32+
"rules": {
33+
"recommended": true,
34+
"style": {
35+
"noNonNullAssertion": "off"
36+
},
37+
"suspicious": {
38+
"noTsIgnore": "off",
39+
"noExplicitAny": "off",
40+
"noConfusingVoidType": "off"
41+
}
42+
}
43+
}
44+
}

package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "@rstackjs/agent-skills",
3+
"private": true,
4+
"scripts": {
5+
"build": "pnpm --parallel --filter ./packages/** build",
6+
"format": "prettier --experimental-cli --write .",
7+
"lint": "biome check",
8+
"prepare": "simple-git-hooks && pnpm build"
9+
},
10+
"simple-git-hooks": {
11+
"pre-commit": "pnpm exec nano-staged"
12+
},
13+
"nano-staged": {
14+
"*.{md,mdx,json,css,less,scss}": "prettier --experimental-cli --write",
15+
"*.{js,jsx,ts,tsx,mjs,cjs}": [
16+
"biome check --write --no-errors-on-unmatched",
17+
"prettier --experimental-cli --write"
18+
]
19+
},
20+
"devDependencies": {
21+
"@biomejs/biome": "^2.3.13",
22+
"@rstackjs/config": "workspace:*",
23+
"@types/node": "^24.10.9",
24+
"nano-staged": "^0.9.0",
25+
"prettier": "^3.8.1",
26+
"prettier-plugin-packagejson": "^3.0.0",
27+
"simple-git-hooks": "^2.13.1",
28+
"typescript": "^5.9.3"
29+
},
30+
"packageManager": "pnpm@10.28.2",
31+
"engines": {
32+
"node": ">=22.18.0",
33+
"pnpm": ">=10.28.2"
34+
}
35+
}

0 commit comments

Comments
 (0)