stabilize-orm 1.0.8 → 1.1.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/.eslintrc.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "env": { "node": true },
3
+ "parser": "@typescript-eslint/parser",
4
+ "plugins": ["@typescript-eslint"],
5
+ "extends": ["plugin:@typescript-eslint/recommended"],
6
+ "rules": {
7
+ "no-unused-vars": "off",
8
+ "@typescript-eslint/no-unused-vars": "error"
9
+ }
10
+ }
@@ -0,0 +1,73 @@
1
+ name: CI/CD Pipeline for Stabilize ORM
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "v*.*.*"
9
+ pull_request:
10
+ branches:
11
+ - main
12
+
13
+ jobs:
14
+ test:
15
+ runs-on: ubuntu-latest
16
+ services:
17
+ redis:
18
+ image: redis:latest
19
+ ports:
20
+ - 6379:6379
21
+ steps:
22
+ - name: Checkout code
23
+ uses: actions/checkout@v4
24
+ - name: Setup Bun
25
+ uses: oven-sh/setup-bun@v2
26
+ with:
27
+ bun-version: "latest"
28
+ - name: Install dependencies
29
+ run: bun install
30
+ - name: Check formatting
31
+ run: bunx prettier --check .
32
+ - name: Lint code
33
+ run: bun run lint
34
+ - name: Run tests
35
+ run: bun run test
36
+ env:
37
+ REDIS_URL: redis://localhost:6379
38
+ - name: Build project
39
+ run: bun run build
40
+ - name: Test CLI
41
+ run: |
42
+ bun run dist/cli/stabilize-cli.js generate model TestModel
43
+ bun run dist/cli/stabilize-cli.js generate seed TestSeed
44
+ bun run dist/cli/stabilize-cli.js seed -c examples/config/database.ts
45
+ - name: Upload coverage
46
+ uses: codecov/codecov-action@v4
47
+ with:
48
+ token: ${{ secrets.CODECOV_TOKEN }}
49
+
50
+ publish:
51
+ needs: test
52
+ runs-on: ubuntu-latest
53
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
54
+ steps:
55
+ - name: Checkout code
56
+ uses: actions/checkout@v4
57
+ - name: Setup Bun
58
+ uses: oven-sh/setup-bun@v2
59
+ with:
60
+ bun-version: "latest"
61
+ - name: Install dependencies
62
+ run: bun install
63
+ - name: Build project
64
+ run: bun run build
65
+ - name: Setup Node.js
66
+ uses: actions/setup-node@v4
67
+ with:
68
+ node-version: "20"
69
+ registry-url: "https://registry.npmjs.org"
70
+ - name: Publish to npm
71
+ run: npm publish --access public
72
+ env:
73
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ElectronSz
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.