Skip to content

Commit 5d1fafd

Browse files
committed
first commit
0 parents  commit 5d1fafd

File tree

112 files changed

+7147
-0
lines changed

Some content is hidden

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

112 files changed

+7147
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18, 20]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: latest
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'pnpm'
31+
32+
- name: Install dependencies
33+
run: pnpm install --frozen-lockfile
34+
35+
- name: Run linter
36+
run: pnpm run lint
37+
38+
- name: Check formatting
39+
run: pnpm run format:check
40+
41+
- name: Run tests
42+
run: pnpm run test:run
43+
44+
- name: Build
45+
run: pnpm run build
46+
47+
publish:
48+
needs: test
49+
runs-on: ubuntu-latest
50+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
51+
52+
steps:
53+
- name: Checkout code
54+
uses: actions/checkout@v4
55+
56+
- name: Install pnpm
57+
uses: pnpm/action-setup@v4
58+
with:
59+
version: latest
60+
61+
- name: Setup Node.js
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: 20
65+
registry-url: 'https://registry.npmjs.org'
66+
cache: 'pnpm'
67+
68+
- name: Install dependencies
69+
run: pnpm install --frozen-lockfile
70+
71+
- name: Build and test
72+
run: pnpm run prepublishOnly
73+
74+
- name: Publish to npm
75+
run: pnpm publish --no-git-checks
76+
env:
77+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78+
if: "!contains(github.event.head_commit.message, '[skip publish]')"

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/tmp
2+
/out-tsc
3+
4+
/node_modules
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
/.pnp
9+
.pnp.js
10+
11+
.vscode/*

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/zonr.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.prettierrc

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

dist/components/app.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React from 'react';
2+
import type { Zone } from '../types.js';
3+
interface AppProps {
4+
zones: Zone[];
5+
}
6+
export declare const App: React.FC<AppProps>;
7+
export {};
8+
//# sourceMappingURL=app.d.ts.map

dist/components/app.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)