-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
658 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 🌸 AnimeGarden Database | ||
|
||
[![AnimeGarden](https://img.shields.io/endpoint?url=https://pages.onekuma.cn/project/animegarden&label=AnimeGarden)](https://garden.onekuma.cn) | ||
[![CI](https://github.com/yjl9903/AnimeGarden/actions/workflows/ci.yml/badge.svg)](https://github.com/yjl9903/AnimeGarden/actions/workflows/ci.yml) | ||
|
||
The database for [AnimeGarden](https://garden.onekuma.cn/). | ||
|
||
## Credits | ||
|
||
+ [動漫花園](https://share.dmhy.org/) | ||
+ [Bangumi 番组计划](https://bgm.tv/) | ||
+ [bangumi-data](https://github.com/bangumi-data/bangumi-data) | ||
+ [erengy/anitomy](https://github.com/erengy/anitomy) | ||
+ [tabratton/AnitomySharp](https://github.com/tabratton/AnitomySharp) | ||
|
||
## License | ||
|
||
MIT License © 2023 [XLor](https://github.com/yjl9903) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineBuildConfig } from 'unbuild'; | ||
|
||
export default defineBuildConfig({ | ||
entries: ['src/index'], | ||
declaration: true, | ||
clean: true, | ||
rollup: { | ||
emitCJS: true | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "@animegarden/database", | ||
"version": "0.0.33", | ||
"private": true, | ||
"description": "Database implementation for AnimeGarden.", | ||
"keywords": [ | ||
"dmhy", | ||
"scraper", | ||
"animegarden", | ||
"animespace" | ||
], | ||
"homepage": "https://github.com/yjl9903/AnimeGarden#readme", | ||
"bugs": { | ||
"url": "https://github.com/yjl9903/AnimeGarden/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/yjl9903/AnimeGarden.git" | ||
}, | ||
"license": "MIT", | ||
"author": "XLor", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"drizzle": "drizzle-kit", | ||
"format": "prettier --write src/**/*.ts test/**/*.ts", | ||
"test": "vitest", | ||
"test:ci": "vitest --run", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"animegarden": "workspace:*", | ||
"drizzle-orm": "^0.29.3", | ||
"postgres": "^3.4.3" | ||
}, | ||
"engines": { | ||
"node": ">=v18.16.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const hello = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { describe, it, expect } from 'vitest'; | ||
|
||
describe('hello', () => { | ||
it('should work', () => { | ||
expect(1 + 1).toBe(2); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"include": [ | ||
"src/**/*.ts", | ||
"test/**/*.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.