Skip to content

Commit a2857c8

Browse files
chore: initial commit.
0 parents  commit a2857c8

11 files changed

Lines changed: 3453 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci:
13+
name: CI
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v6.0.1
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v6.2.0
21+
with:
22+
node-version: '24.14.0'
23+
24+
- name: Install Dependencies
25+
run: npm ci
26+
27+
- name: Save error log
28+
uses: actions/upload-artifact@v6.0.0
29+
if: ${{ failure() }}
30+
with:
31+
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
32+
path: npm-debug.log
33+
34+
- name: Lint
35+
run: npm run lint

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
deploy:
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v6.0.1
28+
29+
- name: Package static site
30+
run: |
31+
mkdir -p build
32+
cp -r src/* build/
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5.0.0
36+
37+
- name: Upload Pages artifact
38+
uses: actions/upload-pages-artifact@v3.0.1
39+
with:
40+
path: build
41+
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4.0.5

.gitignore

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

.oxlintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"categories": {
4+
"correctness": "error",
5+
"suspicious": "warn",
6+
"pedantic": "off",
7+
"perf": "warn",
8+
"nursery": "off"
9+
},
10+
"rules": {
11+
"no-console": "error",
12+
"no-unused-vars": "error",
13+
"no-shadow": "error",
14+
},
15+
"ignorePatterns": ["dist/**", "coverage/**", "vendor/**", "test/snapshots/**", "node_modules/**"]
16+
}

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# @knighted/develop
2+
3+
A small in-browser playground for experimenting with `@knighted/jsx` and `@knighted/css`.
4+
5+
> ⚠️ Early project status: this package is pre-`1.0.0` and still actively evolving.
6+
7+
## What it is
8+
9+
`@knighted/develop` is a lightweight dev app that lets you:
10+
11+
- write component code in the browser
12+
- switch render mode between DOM and React
13+
- switch style mode between native CSS, CSS Modules, Less, and Sass
14+
- preview results immediately
15+
16+
## Local development
17+
18+
```bash
19+
npm install
20+
npm run dev
21+
```
22+
23+
Then open the URL printed by the dev server (it should open `src/index.html`).
24+
25+
## Notes
26+
27+
- This is currently a development playground, not a stable product.
28+
- Expect breaking changes while APIs and UX are still being shaped.
29+
- Documentation will expand closer to `1.0.0`.
30+
31+
## License
32+
33+
MIT

0 commit comments

Comments
 (0)