Skip to content

Commit ff5b9ff

Browse files
committed
Boilerplate
0 parents  commit ff5b9ff

22 files changed

Lines changed: 3531 additions & 0 deletions

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '22'
18+
cache: 'npm'
19+
20+
- run: npm ci
21+
- run: npm run lint
22+
- run: npm run build
23+
- run: npm test

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
.svelte-kit
4+
*.log
5+
.DS_Store

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Styx
2+
3+
Command line tool wrapper compiler/generator.
4+
5+
## Development
6+
7+
```bash
8+
npm install
9+
npm run build
10+
npm test
11+
```
12+
13+
### Watch mode
14+
15+
```bash
16+
# Terminal 1: Watch core library
17+
npm run dev -w @styx/core
18+
19+
# Terminal 2: Run playground
20+
npm run dev
21+
```
22+
23+
## Project Structure
24+
25+
```
26+
styx/
27+
├── packages/
28+
│ └── core/ # Core compiler library + CLI
29+
├── playground/ # Svelte playground for testing
30+
└── ...
31+
```

biome.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on"
7+
}
8+
}
9+
},
10+
"linter": {
11+
"enabled": true,
12+
"rules": {
13+
"recommended": true
14+
}
15+
},
16+
"formatter": {
17+
"enabled": true,
18+
"indentStyle": "space",
19+
"lineWidth": 100
20+
},
21+
"html": {
22+
"formatter": { "enabled": true },
23+
"experimentalFullSupportEnabled": true
24+
},
25+
"css": {
26+
"formatter": { "indentStyle": "space" }
27+
},
28+
"javascript": {
29+
"formatter": { "indentStyle": "space" }
30+
},
31+
"overrides": [
32+
{
33+
"includes": ["**/*.svelte"],
34+
"css": {
35+
"parser": {
36+
"cssModules": true
37+
}
38+
},
39+
"linter": {
40+
"rules": {
41+
"style": {
42+
"useConst": "off",
43+
"useImportType": "off"
44+
},
45+
"correctness": {
46+
"noUnusedVariables": "off",
47+
"noUnusedImports": "off",
48+
"noUnknownPseudoClass": "off"
49+
}
50+
}
51+
}
52+
}
53+
],
54+
"files": {
55+
"includes": ["**", "!**/dist", "!**/node_modules", "!**/.svelte-kit"]
56+
}
57+
}

0 commit comments

Comments
 (0)