Skip to content

Commit bff1d50

Browse files
committed
feat: add code for bun example
0 parents  commit bff1d50

File tree

16 files changed

+227
-0
lines changed

16 files changed

+227
-0
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Discord token for the bot application
2+
DISCORD_TOKEN=

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@sapphire"
3+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @favna

.github/renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"enabled": false
4+
}

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Ignore a blackhole and the folder for development
2+
node_modules/
3+
.vs/
4+
.idea/
5+
*.iml
6+
7+
# Environment variables
8+
.DS_Store
9+
.env.local
10+
.env.development.local
11+
.env.test.local
12+
.env.production.local
13+
14+
# Ignore heapsnapshot and log files
15+
*.heapsnapshot
16+
*.log

.prettierrc.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sapphirePrettierConfig from '@sapphire/prettier-config';
2+
3+
/** @type {import('prettier').Config} */
4+
export default {
5+
...sapphirePrettierConfig,
6+
overrides: [
7+
...sapphirePrettierConfig.overrides,
8+
{
9+
files: ['README.md'],
10+
options: {
11+
tabWidth: 2,
12+
useTabs: false,
13+
printWidth: 120,
14+
proseWrap: 'always'
15+
}
16+
}
17+
]
18+
};

LICENSE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# The MIT License (MIT)
2+
3+
Copyright © `2024` `The Sapphire Community and its contributors`
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the “Software”), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sapphire Bun example
2+
3+
This repository is a simple example of a Sapphire Framework project using Bun as package manager and runtime for both
4+
development and production.

bun.lockb

70.3 KB
Binary file not shown.

package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "@sapphire/bun-template",
3+
"version": "1.0.0",
4+
"description": "An example of how to setup a Sapphire project with bun",
5+
"private": true,
6+
"main": "src/main.ts",
7+
"type": "module",
8+
"scripts": {
9+
"lint": "eslint --fix --ext ts src",
10+
"format": "prettier --write .",
11+
"start": "bun run ."
12+
},
13+
"dependencies": {
14+
"@sapphire/decorators": "^6.1.0",
15+
"@sapphire/eslint-config": "^5.0.5",
16+
"@sapphire/framework": "^5.2.1",
17+
"@sapphire/plugin-logger": "^4.0.2",
18+
"@skyra/env-utilities": "^1.3.0",
19+
"@skyra/start-banner": "^2.0.1",
20+
"colorette": "^2.0.20",
21+
"discord.js": "^14.15.3",
22+
"eslint": "^8.57.0",
23+
"figlet": "^1.7.0",
24+
"gradient-string": "^2.0.2"
25+
},
26+
"devDependencies": {
27+
"@sapphire/prettier-config": "^2.0.0",
28+
"@sapphire/ts-config": "^5.0.1",
29+
"@types/figlet": "^1.5.8",
30+
"@types/gradient-string": "^1.1.6",
31+
"@types/node": "^20.16.1",
32+
"prettier": "^3.3.3",
33+
"typescript": "^5.5.4"
34+
}
35+
}

0 commit comments

Comments
 (0)