mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
feat(cli): add cli (#3037)
* feat(bot): add cli * refactor: move to discordeno package * refactor(cli): blank state
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
!package.json
|
||||
!README.md
|
||||
!dist/**
|
||||
!bin/dist/**
|
||||
|
||||
# but not tsc cache
|
||||
dist/tsconfig.tsbuildinfo
|
||||
1
packages/discordeno/bin/disocrdeno.js
Normal file
1
packages/discordeno/bin/disocrdeno.js
Normal file
@@ -0,0 +1 @@
|
||||
import('../dist/bin/index.js')
|
||||
@@ -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",
|
||||
|
||||
11
packages/discordeno/src/bin/index.ts
Normal file
11
packages/discordeno/src/bin/index.ts
Normal 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()
|
||||
10
yarn.lock
10
yarn.lock
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user