feat(cli): add cli (#3037)

* feat(bot): add cli

* refactor: move to discordeno package

* refactor(cli): blank state
This commit is contained in:
Jonathan Ho
2023-10-14 21:25:08 -07:00
committed by GitHub
parent 730ad9a3dc
commit 6a55a6ff6f
5 changed files with 26 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
!package.json
!README.md
!dist/**
!bin/dist/**
# but not tsc cache
dist/tsconfig.tsbuildinfo

View File

@@ -0,0 +1 @@
import('../dist/bin/index.js')

View File

@@ -2,6 +2,7 @@
"name": "discordeno",
"version": "19.0.0-alpha.1",
"main": "./dist/index.js",
"bin": "./bin/disocrdeno.js",
"types": "./dist/index.d.ts",
"type": "module",
"license": "Apache-2.0",
@@ -27,7 +28,8 @@
"@discordeno/gateway": "19.0.0-alpha.1",
"@discordeno/rest": "19.0.0-alpha.1",
"@discordeno/types": "19.0.0-alpha.1",
"@discordeno/utils": "19.0.0-alpha.1"
"@discordeno/utils": "19.0.0-alpha.1",
"commander": "^11.0.0"
},
"devDependencies": {
"@swc/cli": "^0.1.62",

View File

@@ -0,0 +1,11 @@
import { Command } from 'commander'
const program = new Command()
program.name('discordeno').description('CLI to discordeno utilities').version('0.1.0')
program
.command('generate')
.description('Generate types/schema for discordeno')
.action(() => {})
program.parse()

View File

@@ -1500,6 +1500,13 @@ __metadata:
languageName: node
linkType: hard
"commander@npm:^11.0.0":
version: 11.0.0
resolution: "commander@npm:11.0.0"
checksum: 6621954e1e1d078b4991c1f5bbd9439ad37aa7768d6ab4842de1dbd4d222c8a27e1b8e62108b3a92988614af45031d5bb2a2aaa92951f4d0c934d1a1ac564bb4
languageName: node
linkType: hard
"commander@npm:^7.1.0":
version: 7.2.0
resolution: "commander@npm:7.2.0"
@@ -1721,6 +1728,7 @@ __metadata:
"@types/sinon": ^10.0.13
c8: ^7.13.0
chai: ^4.3.7
commander: ^11.0.0
eslint: ^8.36.0
eslint-config-discordeno: "*"
mocha: ^10.2.0
@@ -1728,6 +1736,8 @@ __metadata:
ts-node: ^10.9.1
tsconfig: "*"
typescript: ^4.9.5
bin:
discordeno: ./bin/disocrdeno.js
languageName: unknown
linkType: soft