Skip to content

Commit 343765d

Browse files
committed
init: everything everywhere all at once
0 parents  commit 343765d

20 files changed

Lines changed: 1978 additions & 0 deletions

.bundlesize.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"path": "./dist/index.js",
4+
"maxSize": "2 kB",
5+
"compression": "gzip"
6+
},
7+
{
8+
"path": "./dist/index.cjs",
9+
"maxSize": "2 kB",
10+
"compression": "gzip"
11+
}
12+
]

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: oven-sh/setup-bun@v1
17+
with:
18+
bun-version: latest
19+
20+
- name: Install dependencies
21+
run: bun install
22+
23+
- name: Type check
24+
run: bun run typecheck
25+
26+
- name: Lint
27+
run: bun run check
28+
29+
- name: Build
30+
run: bun run build
31+
32+
- name: Check bundle size
33+
run: bun run analyze
34+
35+
release:
36+
needs: test
37+
runs-on: ubuntu-latest
38+
if: github.ref == 'refs/heads/main'
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- uses: oven-sh/setup-bun@v1
44+
with:
45+
bun-version: latest
46+
47+
- name: Install dependencies
48+
run: bun install
49+
50+
- name: Build
51+
run: bun run build
52+
53+
- name: Publish to NPM
54+
if: contains(github.event.head_commit.message, '[release]')
55+
run: |
56+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
57+
npm publish
58+
env:
59+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Dependencies
2+
node_modules/
3+
.pnp
4+
.pnp.js
5+
6+
# Build outputs
7+
dist/
8+
build/
9+
*.tsbuildinfo
10+
11+
# Testing
12+
coverage/
13+
.nyc_output
14+
15+
# Development
16+
.DS_Store
17+
*.log
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
21+
lerna-debug.log*
22+
.pnpm-debug.log*
23+
24+
# IDE
25+
.vscode/
26+
.idea/
27+
*.swp
28+
*.swo
29+
*~
30+
31+
# Environment
32+
.env
33+
.env.local
34+
.env.development.local
35+
.env.test.local
36+
.env.production.local
37+
38+
# Package managers
39+
.npm
40+
.yarn-integrity
41+
42+
# OS
43+
Thumbs.db
44+
45+
# Temporary
46+
tmp/
47+
temp/

.npmignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Source files
2+
src/
3+
tsup.config.ts
4+
tsconfig.json
5+
biome.json
6+
vitest.config.ts
7+
8+
# Development files
9+
.gitignore
10+
.npmrc
11+
bun.lockb
12+
13+
# Build artifacts
14+
*.log
15+
node_modules/
16+
17+
# Editor files
18+
.vscode/
19+
.idea/
20+
21+
# Testing
22+
coverage/
23+
*.test.*
24+
*.spec.*
25+
__tests__/
26+
test/
27+
tests/
28+
29+
# Documentation source
30+
docs/
31+
32+
# CI/CD
33+
.github/
34+
35+
# Bundle analysis
36+
.bundlesize.json
37+
renovate.json

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://registry.npmjs.org/
2+
package-lock=false
3+
save-exact=false

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 react-tw-breakpointer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)