Skip to content

Commit 8bdf5de

Browse files
giveerrsiaeyy
andauthored
Development (sirius-tedarik#26)
* fix(*): fix automatic imports (paths) sirius-tedarik#1 * feat(@sirutils/{schema,builder}): init definition generation * fix(@sirutils/{schema,builder}): moon dependency orders * fix(moonrepo): prevent :clean from running in ci * feat(@sirutils/schema): added barrel file creation feature * fix(@sirutils/schema): delete redundant files when schema is deleted, separate checksum, init fields * feat(@sirutils/schema): added ability to generate field types * feat(@sirutils/schema): add missing schema types and move packages to necessary places * refactor(*): lint * feat(@sirutils/schema): added ability to generate validation * feat(@sirutils/{schema,core}): added ability to generate relations, complexTypes and data to errors * refactor(sirutils/schema): lint * refactor(@sirutils/schema): uncomment cache strategy * feat(@sirutils/{schema,builder}): added option --force to generate schemas * feat(@sirutils/toolbox): init * feat(@sirutils/schema): remove unnecessary internal tools and use toolbox * refactor(@sirutils/schema): lint * feat(@sirutils/core): added simple logger to core * feat(@sirutils/seql): use the core logger * fix(@sirutils/core): workspace settings and dependencies * refactor(*): lint * refactor(*): ignore unnecessary rules in biome * feat(@sirutils/core): init plugin system * refactor(@sirutils/{toolbox,schema}): rename toolbox error key and remove fields file in schema * feat(@sirutils/core): init app * feat(@sirutils/core): init actions * chore(*): update bun and moon * feat(@sirutils/core): plugin system completed * refactor(*): lint * chore(*): upgrade dependencies * refactor(*): remove schema and cleanup * chore(*): update biome configuration * feat(*): updated builder sirius-tedarik#8 * refactor(@sirutils/builder): update help message and organize definitions * feat(*): extractEnv shouldnt return result * feat(@sirutils/{schema,toolbox,safe-toolbox}): separate toolbox into two module and init schema * refactor(*): lint * feat(@sirutils/{schema,plugin-schema}): plugin schema initialized * fix(*): env values collected in one place * feat(*): added lookup methods to plugin system in core * refactor(*): lint * fix(@sirutils/db): fix definitions * feat(@sirutils/wizard): init wizard * feat(@sirutils/wizard): implement crudl methods * feat(@sirutils/mysql-driver): cache and cache invalidation completed * chore(*): updated dependencies * feat(@sirutils/{driver-mysql,plugin-schema}): added bson to driver and generate index in schemas * refactor(*): lint * fix(@sirutils/driver-mysql): fix stringify * fix(@sirutils/driver-mysql): race conditions when deleting caches * fix(@sirutils/driver-mysql): keys function added * feat(@sirutils/driver-mysql): init migrator * feat(*): init v0.1.0 * revert(*): remove old packages * feat(@sirutils/seql): fix build steps * refactor(@sirutils/seql): lint * fix(@sirutils/cache): direct object usage in or * fix(@sirutils/seql): cache logic in and operator * feat(@sirutils/safe-toolbox): added custom proxy for error handling * feat(@sirutils/safe-toolbox): added wrapoxy * feat(@sirutils/docs): init * chore(*): updated dependencies * fix(@sirutils/docs): biome rules * fix(biomejs): biome doesnt work well with monorepos * feat(@sirutils/core): added documentation * fix(@sirutils/core): action type inferrence * docs(@sirutils/core): added missing documentation * refactor(*): lint * docs(@sirutils/safe-toolbox): init * refactor(@sirutils/safe-toolbox): lint * docs(@sirutils/toolbox): init * docs(@sirutils/core): added examples * docs(@sirutils/core): added missing example data * docs(@sirutils/core): convert all tags in example to test tags * refactor(*): lint * docs(@sirutils/core): plugin-system * feat(@sirutils/safe-toolbox): seperate fetch and fetchJson * chore(@sirutils/docs): fix for render * chore(@sirutils/docs): fix typescript config * fix(@sirutils/safe-toolbox): namings * chore(@sirutils/docs): added deno deploy for docs * chore(cd:docs): allow workflow OIDC * chore(moon:docs): prevent building twice * docs(@sirutils/{safe-toolbox,toolbox}): init * chore(docs): build optimization * feat(@sirutils/{safe-toolbox,seql}): added getType method and trim spaces in queries * chore(moon): update bun and moon * feat(@sirutils/driver-scylla): init * feat(@sirutils/seql): added update operation * feat(@sirutils/core): added lock for plugin system * feat(@sirutils/driver-redis): init * fix(@sirutils/core): wrap pluginInitializer in forward * feat(@sirutils/seql): added insert operation * feat(@sirutils/safe-toolbox): added safe json parse methods * feat(@sirutils/driver-redis): added json methods and ttl * feat(@sirutils/driver-scylla): added ability to cache results * refactor(*): lint * chore(*): update dependencies * feat(@sirutils/schema): init * refactor(*): added exactOptionalPropertyTypes to typescript * feat(@sirutils/schema): added ability to generate types from schema * fix(@sirutils/seql): add comma to seperate update set statements * fix(@sirutils/driver-scylla): enable prepare for numbers * fix(@sirutils/schema): added string enum check * feat(@sirutils/safe-toolbox): added traverse * fix(@sirutils/driver-scylla): convert integer class to number * fix(@sirutils/seql): added keys in update and insert operations * fix(@sirutils/core): fix lazy promises and forward rules * feat(@sirutils/seql): added object support and prevent transformData from running twice * feat(@sirutils/driver-scylla): added lazy support to exec allow object data * fix(@sirutils/core): action tags and lazy tags. appended errors in lazy * fix(@sirutils/core): throw errors in forward * feat(@sirutils/safe-toolbox): added ulidx * feat(@sirutils/seql): added ability to change grouping in and operation * refactor(@sirutils/driver-redis): better logging * feat(@sirutils/driver-scylla): init migrations * chore(moon): update bun * refactor(*): lint * fix(@sirutils/driver-scylla): migration down order * fix(@sirutils/driver-scylla): primary key in settings table * refactor(@sirutils/driver-scylla): lint * feat(@sirutils/wizard): init * feat(@sirutils/builder): platform option * feat(@sirutils/driver-scylla): improve flexibility in migration system * feat(@sirutils/wizard): init * feat(@sirutils/wizard): implemented service and call methods * refactor(*): lint * fix(@sirutils/builder): path delimiter according to platfom * feat(@sirutils/builder): building source file group by group * fix(@sirutils/builder): recursive flag according to platfom * fix(*): appendData in core * fix(@sirutils/wizard): moleculer needs custom error parser * refactor(*): lint * chore(@sirutils/wizard): fix dependencies in moon * feat(@sirutils/schema): added syncSchema and asyncSchema methods * refactor(*): lint * chore(*): update dependencies * chore(@sirutils/builder): bump version * chore(*): update dependencies * chore(*): update versions * chore(*): update gitignore * feat(@sirutils/seql): added lt, lte, gt, gte operations * feat(@sirutils/seql): added limit * fix(@sirutils/driver-scylla): no-cache query results are transformed * feat(@sirutils/driver-scylla): uuid fields are transformed * chore(@sirutils/safe-toolbox): ejson dependice * feat(@sirutils/driver-scylla): ejson implement for object transform * feat(@sirutils/safe-toolbox): safe methods and tags for ejson * refactor(@sirutils/driver-scylla): safe ejson methods usage * chore(*): github pipeline * chore(*): github pipeline * chore(*): github pipeline * chore(*): github pipeline * style(@sirutils/driver-scylla): fomatting * fix(@sirutils/core): throw lazy errors if not handled * chore(@sirutils/wizard): added moleculer-web * feat(@sirutils/wizard): mixins * feat(@sirutils/wizard): web-server mixin * feat(@sirutils/wizard): creating services with mixins * test(@sirutils/wizard): mixin tests * style(*): formatting * fix(@sirutils/driver-scylla,wizard): migration settings table and wizard service name * fix(@sirutils/core): extractEnvs should check only for null or undefined * feat(@sirutils/driver-redis): change to ioredis for wizard/moleculer * refactor(*): lint * feat(@sirutils/core): remove unnecessary tags in capsule and forward * fix(@sirutils/driver-scylla): wrap execWith function with capsule * feat(@sirutils/safe-toolbox): added isArray * fix(@sirutils/seql): implement generics on adapter * fix(@sirutils/driver-redis): invalid statement in getJson * fix(@sirutils/driver-scylla): dont transform object like datas to string * refactor(*): lint * fix(@sirutils/wizard): revert changes for new context api in wizard * refactor(@sirutils/driver-scylla): move private files to internal * refactor(@sirutils/wizard): make service and call external actions * refactor(*): lint * feat(@sirutils/wizard): changed action system in service * chore(*): bump versions * chore(*): update dependencies * feat(@sirutils/wizard): added ability to change nats url * feat(*): bump versions * feat(@sirutils/{driver-redis,driver-scylla}): export packages * fix(@sirutils/driver-scylla): update in up action * fix(@sirutils/driver-redis): log when connected * feat(@sirutils/wizard): added cache options to actions * fix(@sirutils/wizard): errors when service not found * feat(*): update bun and moon * feat(@sirutils/wizard): added support for uploads * feat(@sirutils/wizard): added logger to each service action * feat(@sirutils/wizard): added support for customizing host and port * refactor(*): lint * feat(*): bump versions * fix(@sirutils/driver-scylla): clear caches after migrations * feat(@sirutils/schema): improve schema types * fix(@sirutils/wizard): convert responses to string * feat(@sirutils/wizard): added created method to service * feat(*): bump versions * fix(@sirutils/{driver-scylla,driver-redis}): scan returns array of strings * feat(*): bump versions * fix(@sirutils/wizard): ts intellisense in call parameters * feat(*): bump versions * fix(*): fn type * fix(@sirutils/driver-scylla): handle migration fails * fix(@sirutils/{driver-redis,driver-scylla}): store caches as ejson * feat(@sirutils/driver-mysql): init * refactor(0): lint * feat(*): bump versions * fix(@sirutils/wizard): remove database drivers from dependencies * feat(*): bump versions * refactor(*): lint * fix(@sirutils/wizard): enable stream responses * fix(@sirutils/wizard): add serice name to error causes in call * fix(@sirutils/wizard): ctx.req and ctx.res types * fix(@sirutils/wizard): stream types in ctx * feat(@sirutils/wizard): merge params and queries into body * fix(@sirutils/wizard): toMethod * feat(@sirutils/wizard): disable multipart and bodyschema in get,head,delete requests * fix(@sirutils/wizard): handle all errors * fix(@sirutils/seql): allow null as value * feat(*): bump versions * refactor(*): lint * feat(@sirutils/wizard): added support for multiple streams in call * fix(@sirutils/driver-mysql): convert to pool * feat(*): bump versions * refactor(*): lint * fix(@sirutils/driver-mysql): pool doesnt have config in it * feat(*): bump versions * fix(@sirutils/wizard): improve errors in action * fix(@sirutils/wizard): added ability to log errors * refactor(*): lint * feat(*): update depedencies * feat(*): bump versions --------- Co-authored-by: siaeyy <iso5374@hotmail.com> Co-authored-by: siaeyy <75006429+siaeyy@users.noreply.github.com>
1 parent 36de430 commit 8bdf5de

File tree

218 files changed

+8142
-358
lines changed

Some content is hidden

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

218 files changed

+8142
-358
lines changed

.github/workflows/ci.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
name: "Pipeline"
2-
32
on:
43
push:
54
pull_request:
65
workflow_dispatch:
7-
86
jobs:
97
ci:
108
name: "CI"
9+
environment: CI
1110
runs-on: "ubuntu-latest"
1211
steps:
1312
- uses: "actions/checkout@v4"
1413
with:
1514
fetch-depth: 0
1615
- uses: "moonrepo/setup-toolchain@v0"
17-
- run: "moon ci"
18-
- uses: "moonrepo/run-report-action@v1"
16+
- run: "moon ci --color"
17+
env:
18+
MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }}
19+
- uses: moonrepo/run-report-action@v1
1920
if: success() || failure()
2021
with:
21-
access-token: ${{ secrets.GH_TOKEN }}
22+
access-token: ${{ secrets.GITHUB_TOKEN }}
23+
matrix: ${{ toJSON(matrix) }}

.github/workflows/commitlint.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint Commit Messages
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
pull-requests: read
7+
8+
jobs:
9+
commitlint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: wagoid/commitlint-github-action@v6

.github/workflows/docs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: deno-deploy
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
id-token: write
7+
contents: read
8+
jobs:
9+
ci:
10+
name: "Docs CD"
11+
environment: CD
12+
runs-on: "ubuntu-latest"
13+
steps:
14+
- uses: "actions/checkout@v4"
15+
with:
16+
fetch-depth: 0
17+
- uses: "moonrepo/setup-toolchain@v0"
18+
- run: "moon run docs:build"
19+
env:
20+
MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }}
21+
- uses: "moonrepo/run-report-action@v1"
22+
if: success() || failure()
23+
with:
24+
access-token: ${{ secrets.GITHUB_TOKEN }}
25+
matrix: ${{ toJSON(matrix) }}
26+
- name: Deploy to Deno Deploy
27+
uses: denoland/deployctl@v1
28+
with:
29+
project: sirutils
30+
entrypoint: server/index.ts
31+
root: apps/docs/.output

.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ dist
102102

103103
# vuepress v2.x temp and cache directory
104104
.temp
105-
.cache
106105

107106
# Docusaurus cache and generated files
108107
.docusaurus
@@ -135,8 +134,9 @@ dist
135134

136135
# The `outDir` for declarations
137136
lib/
138-
# Build cache manifests
139-
*.tsbuildinfo
140137

141138
# others
142-
experiments
139+
.tmp
140+
.idea
141+
pnpm-lock.yaml
142+
.DS_Store

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx commitlint --edit $1

.moon/tasks.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ tasks:
2626
options:
2727
affectedFiles: true
2828
apply:
29-
command: "bun x @biomejs/biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true ."
29+
command: "bun x @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true ."
30+
platform: "system"
31+
options:
32+
affectedFiles: true
33+
apply-unsafe:
34+
command: "bun x @biomejs/biome check --write --unsafe --no-errors-on-unmatched --files-ignore-unknown=true ."
3035
platform: "system"
3136
options:
3237
affectedFiles: true
3338
clean:
3439
command: "rm -rf dist"
40+
local: true
3541
options:
3642
cache: false
3743
persistent: false

.moon/toolchain.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
$schema: "https://moonrepo.dev/schemas/toolchain.json"
22

33
bun:
4-
version: "1.1.7"
4+
version: "1.1.30"
55
dependencyVersionFormat: "workspace"
66
syncProjectWorkspaceDependencies: true
7+
8+
typescript:
9+
syncProjectReferences: true
10+
syncProjectReferencesToPaths: false

.moon/workspace.yml

-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@ vcs:
1515
pre-commit:
1616
- "moon run :check --affected"
1717
syncHooks: true
18-
19-
hasher:
20-
optimization: "performance"

.prototools

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
[settings]
2-
detect-strategy = "prefer-prototools"
1+
bun = "1.1.30"
2+
moon = "1.28.2"
33

44
[plugins]
5-
moon = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
5+
moon = "https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
6+
7+
[settings]
8+
detect-strategy = "prefer-prototools"

apps/docs/.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example

apps/docs/.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

apps/docs/README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# shadcn-docs-nuxt Minimal Starter
2+
3+
Starter template for [shadcn-docs-nuxt](https://github.com/ZTL-UwU/shadcn-docs-nuxt).
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# yarn
11+
yarn install
12+
13+
# npm
14+
npm install
15+
16+
# pnpm
17+
pnpm install
18+
19+
# bun
20+
bun install
21+
```
22+
23+
## Development Server
24+
25+
Start the development server on http://localhost:3000
26+
27+
```bash
28+
npm run dev
29+
```
30+
31+
## Production
32+
33+
[![Deploy to NuxtHub](https://hub.nuxt.com/button.svg)](https://hub.nuxt.com/new?repo=ZTL-UwU/shadcn-docs-nuxt-starter)
34+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FZTL-UwU%2Fshadcn-docs-nuxt-starter)
35+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https%3A%2F%2Fgithub.com%2FZTL-UwU%2Fshadcn-docs-nuxt-starter)
36+
37+
Build the application for production:
38+
39+
```bash
40+
npm run build
41+
```
42+
43+
Locally preview production build:
44+
45+
```bash
46+
npm run preview
47+
```
48+
49+
Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

apps/docs/app.config.ts

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
export default defineAppConfig({
2+
shadcnDocs: {
3+
site: {
4+
name: 'sirutils',
5+
description: 'Utilities we use in sirius',
6+
},
7+
theme: {
8+
customizable: true,
9+
color: 'red',
10+
radius: 0.5,
11+
},
12+
header: {
13+
title: 'Sirutils',
14+
showTitle: true,
15+
darkModeToggle: true,
16+
logo: {
17+
light: '/logo.svg',
18+
dark: '/logo-dark.svg',
19+
},
20+
nav: [],
21+
links: [
22+
{
23+
icon: 'lucide:github',
24+
to: 'https://github.com/sirius-tedarik/sirutils',
25+
target: '_blank',
26+
},
27+
],
28+
},
29+
aside: {
30+
useLevel: true,
31+
collapse: false,
32+
},
33+
main: {
34+
breadCrumb: true,
35+
showTitle: true,
36+
padded: true,
37+
},
38+
footer: {
39+
credits: 'Copyright © 2024',
40+
links: [
41+
{
42+
icon: 'lucide:github',
43+
to: 'https://github.com/sirius-tedarik/sirutils',
44+
target: '_blank',
45+
},
46+
],
47+
},
48+
toc: {
49+
enable: true,
50+
title: 'On This Page',
51+
links: [
52+
{
53+
title: 'Star on GitHub',
54+
icon: 'lucide:star',
55+
to: 'https://github.com/sirius-tedarik/sirutils',
56+
target: '_blank',
57+
},
58+
{
59+
title: 'Create Issues',
60+
icon: 'lucide:circle-dot',
61+
to: 'https://github.com/sirius-tedarik/sirutils/issues',
62+
target: '_blank',
63+
},
64+
],
65+
},
66+
search: {
67+
enable: true,
68+
inAside: false,
69+
},
70+
},
71+
})

apps/docs/assets/css/tailwind.css

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
@layer base {
6+
:root {
7+
--background: 0 0% 100%;
8+
--foreground: 222.2 84% 4.9%;
9+
10+
--card: 0 0% 100%;
11+
--card-foreground: 222.2 84% 4.9%;
12+
13+
--popover: 0 0% 100%;
14+
--popover-foreground: 222.2 84% 4.9%;
15+
16+
--primary: 221.2 83.2% 53.3%;
17+
--primary-foreground: 210 40% 98%;
18+
19+
--secondary: 210 40% 96.1%;
20+
--secondary-foreground: 222.2 47.4% 11.2%;
21+
22+
--muted: 210 40% 96.1%;
23+
--muted-foreground: 215.4 16.3% 46.9%;
24+
25+
--accent: 210 40% 96.1%;
26+
--accent-foreground: 222.2 47.4% 11.2%;
27+
28+
--destructive: 0 84.2% 60.2%;
29+
--destructive-foreground: 210 40% 98%;
30+
31+
--border: 214.3 31.8% 91.4%;
32+
--input: 214.3 31.8% 91.4%;
33+
--ring: 221.2 83.2% 53.3%;
34+
--radius: 0.5rem;
35+
}
36+
37+
.dark {
38+
--background: 222.2 84% 4.9%;
39+
--foreground: 210 40% 98%;
40+
41+
--card: 222.2 84% 4.9%;
42+
--card-foreground: 210 40% 98%;
43+
44+
--popover: 222.2 84% 4.9%;
45+
--popover-foreground: 210 40% 98%;
46+
47+
--primary: 217.2 91.2% 59.8%;
48+
--primary-foreground: 222.2 47.4% 11.2%;
49+
50+
--secondary: 217.2 32.6% 17.5%;
51+
--secondary-foreground: 210 40% 98%;
52+
53+
--muted: 217.2 32.6% 17.5%;
54+
--muted-foreground: 215 20.2% 65.1%;
55+
56+
--accent: 217.2 32.6% 17.5%;
57+
--accent-foreground: 210 40% 98%;
58+
59+
--destructive: 0 62.8% 30.6%;
60+
--destructive-foreground: 210 40% 98%;
61+
62+
--border: 217.2 32.6% 17.5%;
63+
--input: 217.2 32.6% 17.5%;
64+
--ring: 224.3 76.3% 48%;
65+
}
66+
}
67+
68+
@layer utilities {
69+
.step {
70+
counter-increment: step;
71+
}
72+
73+
.step:before {
74+
@apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
75+
@apply -ml-[50px] -mt-1;
76+
content: counter(step);
77+
}
78+
}
79+
80+
@layer base {
81+
* {
82+
@apply border-border;
83+
}
84+
85+
body {
86+
@apply bg-background text-foreground;
87+
}
88+
}

0 commit comments

Comments
 (0)