Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": [],
"singleQuote": true,
"semi": false,
"useTabs": true
}
40 changes: 40 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": null,
"categories": {},
"rules": {},
"settings": {
"jsx-a11y": {
"polymorphicPropName": null,
"components": {},
"attributes": {}
},
"next": {
"rootDir": []
},
"react": {
"formComponents": [],
"linkComponents": [],
"version": null,
"componentWrapperFunctions": []
},
"jsdoc": {
"ignorePrivate": false,
"ignoreInternal": false,
"ignoreReplacesDocs": true,
"overrideReplacesDocs": true,
"augmentsExtendsReplacesDocs": false,
"implementsReplacesDocs": false,
"exemptDestructuredRootsFromChecks": false,
"tagNamePreference": {}
},
"vitest": {
"typecheck": false
}
},
"env": {
"builtin": true
},
"globals": {},
"ignorePatterns": []
}
62 changes: 0 additions & 62 deletions biome.json

This file was deleted.

66 changes: 43 additions & 23 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pre-commit:
parallel: true
commands:
check:
glob: '*.{js,ts,jsx,tsx}'
run: bun format && bun biome check --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
parallel: true
commands:
check:
glob: '*.{js,ts,jsx,tsx}'
run: bun format && bun oxfmt check {staged_files}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"name": "main",
"version": "1.0.0",
"devDependencies": {
"@biomejs/biome": "2.2.4",
"lefthook": "1.7.18",
"typescript": "5.8.2",
"tcp-port-used": "1.0.2",
"@types/tcp-port-used": "1.0.4",
"@types/bun": "latest"
},
"private": true,
"workspaces": [
"packages/*"
Expand All @@ -17,12 +9,20 @@
"clean": "rm -rf node_modules && git clean -fdXq",
"build": "CI_BUILD=true bun scripts/build.ts",
"ci": "bun run scripts/ci.ts",
"format": "bun --filter './packages/*' format && biome format --write ./*.json && biome format --write ./scripts/*.ts",
"format": "bun --filter './packages/*' format && oxfmt --write ./*.json && oxfmt --write ./scripts/*.ts",
"lint": "bun --filter './packages/*' lint",
"squash": "base_branch=${1:-main} && git fetch origin $base_branch && branch=$(git branch --show-current) && git checkout $branch && git reset $(git merge-base origin/$base_branch $branch) && git add -A"
},
"devDependencies": {
"@types/bun": "latest",
"@types/tcp-port-used": "1.0.4",
"lefthook": "1.7.18",
"oxfmt": "0.28.0",
"oxlint": "1.43.0",
"tcp-port-used": "1.0.2",
"typescript": "5.8.2"
},
"trustedDependencies": [
"@biomejs/biome",
"lefthook",
"mongodb-memory-server"
]
Expand Down
44 changes: 22 additions & 22 deletions packages/wabe-buns3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,30 @@ bun install wabe-buns3
## 🎯 Basic example

```ts
import { Wabe } from "wabe";
import { MongoAdapter } from "wabe-mongodb";
import { Wabe } from 'wabe'
import { MongoAdapter } from 'wabe-mongodb'

const run = async () => {
// Ensure your database is running before run the file

const wabe = new Wabe({
isProduction: process.env.NODE_ENV === "production",
// Root key example (must be long minimal 64 characters, you can generate it online)
rootKey:
"0uwFvUxM$ceFuF1aEtTtZMa7DUN2NZudqgY5ve5W*QCyb58cwMj9JeoaV@d#%29v&aJzswuudVU1%nAT+rxS0Bh&OkgBYc0PH18*",
database: {
adapter: new MongoAdapter({
databaseName: "WabeApp",
databaseUrl: "mongodb://127.0.0.1:27045",
}),
},
port: 3000,
});

await wabe.start();
};

await run();
// Ensure your database is running before run the file

const wabe = new Wabe({
isProduction: process.env.NODE_ENV === 'production',
// Root key example (must be long minimal 64 characters, you can generate it online)
rootKey:
'0uwFvUxM$ceFuF1aEtTtZMa7DUN2NZudqgY5ve5W*QCyb58cwMj9JeoaV@d#%29v&aJzswuudVU1%nAT+rxS0Bh&OkgBYc0PH18*',
database: {
adapter: new MongoAdapter({
databaseName: 'WabeApp',
databaseUrl: 'mongodb://127.0.0.1:27045',
}),
},
port: 3000,
})

await wabe.start()
}

await run()
```

Then, from your frontend, call the auto-generated GraphQL API:
Expand Down
18 changes: 9 additions & 9 deletions packages/wabe-buns3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "wabe-buns3",
"version": "0.5.1",
"description": "Bun S3 adapter for Wabe",
"keywords": [
"baas",
"backend",
"graphql",
"wabe"
],
"homepage": "https://palixir.github.io/wabe/",
"license": "Apache-2.0",
"author": {
"name": "coratgerl",
"url": "https://github.com/coratgerl"
},
"license": "Apache-2.0",
"keywords": [
"backend",
"wabe",
"graphql",
"baas"
],
"repository": {
"type": "git",
"url": "git+https://github.com/palixir/wabe.git"
Expand All @@ -22,9 +22,9 @@
"scripts": {
"build": "bun --filter wabe-build build:package $(pwd) bun",
"check": "tsc --project $(pwd)/tsconfig.json",
"lint": "biome lint . --no-errors-on-unmatched",
"lint": "oxlint .",
"ci": "bun check && bun lint $(pwd) && bun test src",
"format": "biome format --write ."
"format": "oxfmt --write ."
},
"devDependencies": {
"wabe": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/wabe-mongodb-launcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ yarn add wabe-mongodb-launcher # On yarn
## Basic example of wabe-mongodb-launcher usage

```ts
import { runDatabase } from "wabe-mongodb-launcher";
import { runDatabase } from 'wabe-mongodb-launcher'

await runDatabase();
await runDatabase()
```
Loading