batono 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes ADDED
@@ -0,0 +1 @@
1
+ test/** -linguist-detectable
@@ -0,0 +1,57 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ test:
17
+ name: Node.js ${{ matrix.node-version }}
18
+ runs-on: ubuntu-latest
19
+
20
+ strategy:
21
+ fail-fast: false
22
+ matrix:
23
+ node-version: [ 18, 22 ]
24
+
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v4
28
+ with:
29
+ fetch-depth: 2
30
+
31
+ - name: Setup Node.js ${{ matrix.node-version }}
32
+ uses: actions/setup-node@v4
33
+ with:
34
+ node-version: ${{ matrix.node-version }}
35
+ cache: npm
36
+
37
+ - name: Install dependencies
38
+ run: npm ci
39
+
40
+ - name: Build
41
+ run: npm run build
42
+
43
+ - name: Run coverage
44
+ if: matrix.node-version == 22
45
+ run: npm run test:coverage:lcov
46
+
47
+ - name: Run tests
48
+ if: matrix.node-version == 18
49
+ run: npm run test
50
+
51
+ - name: Upload coverage to Codecov
52
+ if: matrix.node-version == 22
53
+ uses: codecov/codecov-action@v5
54
+ with:
55
+ token: ${{ secrets.CODECOV_TOKEN }}
56
+ files: lcov.info
57
+ fail_ci_if_error: true
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18
package/package.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "batono",
3
+ "version": "0.0.0",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "type": "module"
7
+ }