Skip to content

Commit

Permalink
5.2.3
Browse files Browse the repository at this point in the history
5.2.3 (#30)
  • Loading branch information
xhyrom authored Jul 18, 2021
2 parents 386393f + 739af4f commit e668b71
Show file tree
Hide file tree
Showing 62 changed files with 2,883 additions and 2,470 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/CodeQL.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CodeQL

on:
push:
branches:
- dev
pull_request:
branches:
- dev

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
languange: ['javascript']
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild (Attempts to build any compiled languages)
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
13 changes: 2 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Create Folder
run: mkdir docs

- name: Download
run: npm i jsdoc-to-markdown
run: npm i @discordjs/docgen

- name: Build
run: npm run docs:build

- name: Copy File
uses: canastro/copy-file-action@master
with:
source: "docs.md"
target: "docs/index.md"

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./docs
publish_branch: docs
destination_dir: ./docs/docs/
destination_dir: ./docs/
26 changes: 26 additions & 0 deletions .github/workflows/lint_node12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint (Node 12.x)

on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Lint
uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_ES: true
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/lint_node14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint (Node 14.x)

on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Lint
uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_ES: true
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/lint_node16.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint (Node 16.x)

on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Lint
uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_ES: true
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/vuebuild.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Packages
node_modules/
yarn.lock

# Log files
logs/
*.log

# Authentication
deploy/

# Miscellaneous
.tmp/
.vscode/
docs/

# NPM ignore
jsdoc.json
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<div align="center">
<h1>G Commands</h1>
<h1><b>GCommands</b></h1>
<p>
<a href="https://www.npmjs.com/package/gcommands"><img src="https://img.shields.io/npm/v/gcommands?maxAge=3600" alt="NPM version" /></a>
<a href="https://www.npmjs.com/package/gcommands"><img src="https://img.shields.io/npm/dt/gcommands?maxAge=3600" alt="NPM downloads" /></a>
<a href="https://www.codefactor.io/repository/github/garlic-team/gcommands/overview/dev"><img src="https://www.codefactor.io/repository/github/garlic-team/gcommands/badge/dev" alt="Code Raiting" /></a>
</p>
<p>
<a href="https://www.npmjs.com/package/gcommands"><img src="https://nodei.co/npm/gcommands.png?downloads=true&stars=true" alt="NPM Banner"></a>
Expand All @@ -16,10 +17,12 @@
npm install gcommands
yarn install gcommands

npm install github:Garlic-Team/GCommands#dev #dev build
# Dev Build
npm install Garlic-Team/GCommands#dev
yarn install Garlic-Team/GCommands#dev
```

If you're updating from 3.x to 4.x, check https://gcommands.js.org/guide/additional/fromv3tov4.html
If you're updating from 4.x to 5.x, check https://gcommands.js.org/guide/additional/fromv4tov5.html

### 📜 | Setup
```js
Expand Down Expand Up @@ -55,7 +58,7 @@ client.login("bot token")
```

### ✍ | Examples
You can find everything in the [guide](https://gcommands.js.org).<br>
You can find everything in the [guide](https://gcommands.js.org/guide/) and [docs](https://gcommands.js.org/docs/).<br>
Join our [discord server](https://discord.gg/AjKJSBbGm2), if you need help or have any questions.

### 👥 | Contact
Expand Down
5 changes: 5 additions & 0 deletions docs/index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: General
files:
- name: Welcome
id: welcome
path: ../../README.md
3 changes: 3 additions & 0 deletions jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["node_modules/jsdoc-strip-async-await"]
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "gcommands",
"version": "4.3.0",
"description": "Open-source slash/normal command handler",
"version": "5.2.3",
"description": "Powerful and flexible command handler that can do everything!",
"main": "src/index.js",
"types": "./typings/index.d.ts",
"dependencies": {
"@gcommands/events": "^1.0.3",
"axios": "^0.21.1",
"ms": "^2.1.3"
},
"devDependencies": {
"@discordjs/docgen": "^0.10.0",
"@types/node": "^12.7.3"
},
"repository": {
Expand All @@ -17,21 +19,22 @@
},
"keywords": [
"gcommands",
"cmdhandler",
"slashcommandhandler",
"slashcmds",
"slash commands",
"handler slash commands",
"command handler",
"discord js slash"
"command",
"discord bot",
"handler",
"slash command handler"
],
"author": "Garlic-Team",
"license": "MIT",
"bugs": {
"url": "https://github.com/Garlic-Team/GCommands/issues"
},
"scripts": {
"docs:build": "jsdoc2md ./src/**/** > docs.md"
"docs:build": "docgen --source src --custom docs/index.yml --output docs/main.json",
"docs:test": "docgen --source src"
},
"engines": {
"node": ">=12.0.0"
},
"homepage": "https://gcommands.js.org"
}
Loading

0 comments on commit e668b71

Please sign in to comment.