Skip to content

Commit c210c4b

Browse files
authored
First Major Release! (#3)
* feat: initialize project * feat: setup changeset * chore: add changeset * feat: implement what-is-dis package * feat: add simple bot with bun for example * feat: add more user and role input * remove low-level discord package and use discord.js instead * feat: add type-safe for choices * feat: add customizable internal logger * chore: add debug logger * chore: add more logger * fix attachment bug * docs: update README.md * chore: remove changeset file * docs: update README.md * feat: add ci and release workflow * docs: update README.md * Create proud-seals-share.md * chore: fix script * Update .changeset/proud-seals-share.md
1 parent d785d70 commit c210c4b

43 files changed

Lines changed: 2506 additions & 3509 deletions

Some content is hidden

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

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "softnetics/what-is-dis" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/proud-seals-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@softnetics/what-is-dis": major
3+
---
4+
5+
First Major Release!

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@internal/project-config/eslint/base')

.github/workflows/ci.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 40
13+
concurrency:
14+
group: ci-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
name: Checkout
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
24+
25+
- name: Setup pnpm
26+
uses: pnpm/action-setup@v2
27+
with:
28+
version: 8
29+
30+
- name: Setup node with cache
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: 20
34+
cache: pnpm
35+
36+
- name: Install dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Run lint
40+
run: pnpm lint --parallel
41+
42+
- name: Run build
43+
run: pnpm build

.github/workflows/release.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release with reusable workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
actions: read
10+
checks: read
11+
contents: write
12+
deployments: read
13+
issues: write
14+
discussions: read
15+
packages: write
16+
pull-requests: write
17+
repository-projects: read
18+
security-events: read
19+
statuses: read
20+
21+
concurrency: ${{ github.workflow }}-${{ github.ref }}
22+
23+
jobs:
24+
release:
25+
uses: softnetics/workflows/.github/workflows/release-packages.yaml@main
26+
with:
27+
before-publish: pnpm build
28+
package-manager: pnpm
29+
secrets:
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ coverage
1212
.next/
1313
out/
1414
build
15+
dist
1516

1617
# misc
1718
.DS_Store

.prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@internal/project-config/prettier/base')

.vscode/settings.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
2-
"eslint.workingDirectories": [
3-
{
4-
"mode": "auto"
5-
}
6-
]
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"javascript.preferences.importModuleSpecifier": "shortest",
5+
"typescript.format.enable": true,
6+
"typescript.tsdk": "node_modules/typescript/lib",
7+
"[prisma]": {
8+
"editor.defaultFormatter": "Prisma.prisma"
9+
},
10+
"editor.codeActionsOnSave": {
11+
"source.fixAll.eslint": true
12+
}
713
}

LICENSE

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

0 commit comments

Comments
 (0)