-
Notifications
You must be signed in to change notification settings - Fork 203
refactor: typescript rewrite #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 8 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
bbac183
initial commit
OfficialSirH 6c193d1
initial commit
OfficialSirH 0b3a1dc
chore: requested changes
OfficialSirH ab84d6e
chore: minor changes
OfficialSirH 0e4c989
fix: lintstaged and prettier configs
sdanialraza de14e9a
Merge pull request #1 from sdanialraza/fix/lintstaged-prettier-configs
OfficialSirH 92e4dd7
fix: types and methods
OfficialSirH c57e2fe
fix: resolve all type errors
OfficialSirH 65e68bb
fix: import extensions
OfficialSirH 0aca777
refactor: update examples
sdanialraza 108b6e2
fix: types
OfficialSirH b4c3acd
skibidi this, skibidi that, how about stop committing that line, Micah
OfficialSirH 7a5cb87
Merge branch 'ts-rewrite' into refactor/update-examples
sdanialraza 8c95232
fix-ish: man, idk, authorize is silly
OfficialSirH c5f467c
Update README.md
OfficialSirH e255cd6
Update src/index.ts
OfficialSirH d975f24
Update src/util.ts
OfficialSirH 7abb7b3
Update src/util.ts
OfficialSirH 49d96b6
chore: revert version
OfficialSirH 93c2500
chore: jiralite obligations
OfficialSirH 12440a8
refactor: several adjustments for clarity
OfficialSirH 6876207
fix: subscribe method types
OfficialSirH 5d82bc6
chore: jiralite mentioned changes
OfficialSirH 0572765
Merge pull request #2 from sdanialraza/refactor/update-examples
OfficialSirH afcc201
add: more types/adjustments
OfficialSirH c0b7549
remove: lobby stuff
OfficialSirH 404cca6
feat: more methods for commands
OfficialSirH e4a012e
refactor(types): remove all types in place of discord-api-types
OfficialSirH 89de9db
fix: properly handle activity changes
OfficialSirH File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
{ | ||
"name": "rpc", | ||
"org": "discordjs", | ||
"identifierBase": false | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
|
@@ -11,8 +11,8 @@ jobs: | |
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '15' | ||
- run: "npm install" | ||
- run: "npm run docs" | ||
- run: 'npm install' | ||
- run: 'npm run docs' | ||
- uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains hidden or 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 |
---|---|---|
@@ -1,5 +1,28 @@ | ||
node_modules/** | ||
package-lock.json | ||
browser.js | ||
test/auth.js | ||
docs-out | ||
# Packages | ||
node_modules | ||
|
||
# Log files | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Env | ||
.env | ||
|
||
# Dist | ||
dist | ||
dist-docs | ||
|
||
# Docs | ||
docs/**/* | ||
!docs/README.md | ||
|
||
# Miscellaneous | ||
.turbo | ||
.tmp | ||
coverage |
This file contains hidden or 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,6 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/lintstagedrc.schema.json", | ||
"*": "prettier --ignore-unknown --write", | ||
"{src/**,__tests__/**}.{mjs,js,cjs,ts,tsx}": "eslint --fix", | ||
"src/**.ts": "vitest related --run --config ../../vitest.config.ts" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 @@ | ||
.turbo | ||
coverage | ||
dist | ||
dist-docs | ||
docs/docs.api.json | ||
CHANGELOG.md | ||
tsup.config.bundled* |
This file contains hidden or 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,9 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc.json", | ||
"printWidth": 120, | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"quoteProps": "as-needed", | ||
"trailingComma": "all", | ||
"endOfLine": "lf" | ||
} |
This file contains hidden or 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 hidden or 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,79 @@ | ||
[changelog] | ||
header = """ | ||
# Changelog | ||
All notable changes to this project will be documented in this file.\n | ||
""" | ||
body = """ | ||
{%- macro remote_url() -%} | ||
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} | ||
{%- endmacro -%} | ||
{% if version %}\ | ||
# [{{ version | trim_start_matches(pat="v") }}]\ | ||
{% if previous %}\ | ||
{% if previous.version %}\ | ||
({{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }})\ | ||
{% else %}\ | ||
({{ self::remote_url() }}/tree/{{ version }})\ | ||
{% endif %}\ | ||
{% endif %} \ | ||
- ({{ timestamp | date(format="%Y-%m-%d") }}) | ||
{% else %}\ | ||
# [unreleased] | ||
{% endif %}\ | ||
{% for group, commits in commits | group_by(attribute="group") %} | ||
## {{ group | upper_first }} | ||
{% for commit in commits %} | ||
- {% if commit.scope %}\ | ||
**{{commit.scope}}:** \ | ||
{% endif %}\ | ||
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ | ||
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ | ||
{% if commit.breaking %}\ | ||
{% for footer in commit.footers %}\ | ||
{% if footer.breaking %}\ | ||
\n{% raw %} {% endraw %}- **{{ footer.token }}{{ footer.separator }}** {{ footer.value }}\ | ||
{% endif %}\ | ||
{% endfor %}\ | ||
{% endif %}\ | ||
{% endfor %} | ||
{% endfor %}\ | ||
{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ | ||
\n### New Contributors\n | ||
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ | ||
* @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} | ||
{% endfor %}\ | ||
{% endif %}\n | ||
""" | ||
trim = true | ||
footer = "" | ||
|
||
[git] | ||
conventional_commits = true | ||
filter_unconventional = true | ||
commit_parsers = [ | ||
{ message = "^feat", group = "Features" }, | ||
{ message = "^fix", group = "Bug Fixes" }, | ||
{ message = "^docs", group = "Documentation" }, | ||
{ message = "^perf", group = "Performance" }, | ||
{ message = "^refactor", group = "Refactor" }, | ||
{ message = "^types", group = "Typings" }, | ||
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation" }, | ||
{ message = "^revert", skip = true }, | ||
{ message = "^style", group = "Styling" }, | ||
{ message = "^test", group = "Testing" }, | ||
{ message = "^chore", skip = true }, | ||
{ message = "^ci", skip = true }, | ||
{ message = "^build", skip = true }, | ||
{ body = ".*security", group = "Security" }, | ||
] | ||
filter_commits = true | ||
protect_breaking_commits = true | ||
tag_pattern = "@discordjs/rpc@[0-9]*" | ||
OfficialSirH marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
ignore_tags = "" | ||
topo_order = false | ||
sort_commits = "newest" | ||
|
||
[remote.github] | ||
owner = "discordjs" | ||
repo = "discord.js" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.