Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed May 11, 2024
1 parent cedccba commit 6638f06
Show file tree
Hide file tree
Showing 6 changed files with 589 additions and 1 deletion.
1 change: 0 additions & 1 deletion storage/framework/orm/.gitignore

This file was deleted.

55 changes: 55 additions & 0 deletions storage/framework/orm/README.md
@@ -0,0 +1,55 @@
# Stacks ORM

This package contains the Stacks ORM.

## ☘️ Features

- Based on your models
- Fully-typed
- Reusability

## 🤖 Usage

```bash
bun install -d your-orm
```

Now, you can use it in your project:

```js
import { orm } from 'your-orm'

// wip
```

To view the full documentation, please visit [https://stacksjs.org/orm](https://stacksjs.org/orm).

## 🧪 Testing

```bash
bun test
```

## 📈 Changelog

Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.

## 🚜 Contributing

Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.

## 🏝 Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)

For casual chit-chat with others using this package:

[Join the Stacks Discord Server](https://discord.gg/stacksjs)

## 📄 License

The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.

Made with 💙
18 changes: 18 additions & 0 deletions storage/framework/orm/build.ts
@@ -0,0 +1,18 @@
import { intro, outro } from '@stacksjs/build'

const { startTime } = await intro({
dir: import.meta.dir,
})

const result = await Bun.build({
entrypoints: ['./src/index.ts'],
outdir: './dist',
format: 'esm',
target: 'bun',
})

await outro({
dir: import.meta.dir,
startTime,
result,
})
45 changes: 45 additions & 0 deletions storage/framework/orm/package.json
@@ -0,0 +1,45 @@
{
"name": "stacks-orm",
"type": "module",
"version": "0.60.3",
"description": "Your custom ORM.",
"author": "Chris Breuer",
"license": "MIT",
"funding": "https://github.com/sponsors/chrisbbreuer",
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/validation#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/stacksjs/stacks.git",
"directory": "./storage/framework/core/validation"
},
"bugs": {
"url": "https://github.com/stacksjs/stacks/issues"
},
"keywords": ["orm", "kysely", "functions", "stacks"],
"exports": {
".": {
"bun": "./src/index.ts",
"import": "./dist/index.js"
},
"./*": {
"bun": "./*",
"import": "./dist/*"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
"files": ["README.md", "dist", "src"],
"scripts": {
"build": "bun --bun build.ts",
"typecheck": "bun --bun tsc --noEmit",
"prepublishOnly": "bun run build"
},
"dependencies": {
"@stacksjs/database": "workspace:*",
"@stacksjs/error-handling": "workspace:*"
},
"devDependencies": {
"@stacksjs/development": "workspace:*"
}
}

0 comments on commit 6638f06

Please sign in to comment.