Skip to content

Commit

Permalink
feat: Move on to deno as primary runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahman1s committed May 29, 2022
1 parent 1722035 commit 23dceb5
Show file tree
Hide file tree
Showing 164 changed files with 2,624 additions and 7,427 deletions.
68 changes: 0 additions & 68 deletions .eslintrc.json

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/documentation.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Typecheck Files

on: [push, pull_request]

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
with:
deno-version: v1.x
- run: deno lint && deno fmt --check
24 changes: 24 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
with:
deno-version: v1.x
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
run_install: false
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: deno run -A scripts/build_npm.ts ${{github.ref_name}}
- run: cd npm && pnpm install && pnpm publish --access=public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 0 additions & 13 deletions .github/workflows/typecheck.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.env
node_modules
dist
npm
test.*
9 changes: 0 additions & 9 deletions .prettierrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": false
}
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@ A JS/TS library to interact with Revolt API
### Features
- Built with TypeScript
- Object-oriented
- Lightweight ([revolt.io *3 pkg](/package.json) > [revolt.js 12* pkg](https://github.com/revoltchat/revolt.js/blob/master/package.json))
- Lightweight
- Voice Support (*work in progress..*)
- [Deno](./deno) Support
- Deno Support

## Installation
## Installation (NodeJS Only)
***Node.js v16.x or newer is required.***
```bash
$ npm i revolt.io
```

## Usage
```js
```ts
import { Client } from 'revolt.io'

// for Deno runtime use this
// import { Client } from 'https://deno.land/x/revoltio/mod.ts'

const client = new Client()

// Login with bot account
Expand All @@ -44,7 +47,7 @@ client.on('message', msg => {

## Links
- [More examples](/examples)
- [Documentation](https://revolt-io.github.io/revolt.io/)
- [Documentation](https://doc.deno.land/https://deno.land/x/revoltio/mod.ts)

## License
Refer to the [LICENSE](LICENSE) file.
31 changes: 31 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"compilerOptions": {
"strict": true
},
"fmt": {
"files": {
"include": [
"src",
"examples",
"scripts"
]
},
"options": {
"singleQuote": true
}
},
"lint": {
"files": {
"include": [
"src"
]
},
"rules": {
"tags": [
"recommended"
],
"include": [],
"exclude": []
}
}
}
46 changes: 0 additions & 46 deletions deno/README.md

This file was deleted.

97 changes: 0 additions & 97 deletions deno/client/BaseClient.ts

This file was deleted.

Loading

0 comments on commit 23dceb5

Please sign in to comment.