Skip to content

Commit

Permalink
chore: Merge pull request #31 from eventOneHQ/beta
Browse files Browse the repository at this point in the history
1.3.1
  • Loading branch information
nprail authored Feb 11, 2021
2 parents 9b8d120 + 4840187 commit 153edb6
Show file tree
Hide file tree
Showing 7 changed files with 1,613 additions and 2,033 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "none"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ Install the `apkup` package globally or locally:

```bash
npm i -g apkup
apkup -h
apkup --help

# or if you just want to use the CLI locally
npx apkup -h
npx apkup --help

# or install the library into your project
npm i -D apkup
Expand Down
3,587 changes: 1,579 additions & 2,008 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"scripts": {
"prepublishOnly": "npm run build && npm prune",
"build": "tsc",
"docs": "typedoc --mode file --excludeExternals --excludeNotExported --exclude 'src/cli.ts' --out docs src",
"test": "tslint -c tslint.json 'src/**/*.ts'",
"docs": "typedoc --excludeExternals --exclude 'src/cli/*.ts' --out docs src",
"test": "tslint --project tsconfig.json -c tslint.json 'src/**/*.ts'",
"test:audit": "npm audit --json | npm-audit-html --output reports/audit.html && npm audit",
"semantic-release": "semantic-release"
},
Expand All @@ -32,21 +32,22 @@
"homepage": "https://github.com/eventOneHQ/apkup",
"dependencies": {
"adbkit-apkreader": "^3.2.0",
"debug": "^4.1.1",
"googleapis": "^52.1.0",
"node-aab-parser": "^1.0.0",
"ora": "^4.0.4",
"yargs": "^15.3.1"
"debug": "^4.3.1",
"googleapis": "^67.0.0",
"node-aab-parser": "^1.0.1",
"ora": "^5.3.0",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/debug": "^4.1.5",
"@types/node": "^12.12.47",
"npm-audit-html": "^1.4.1",
"semantic-release": "^17.0.8",
"tslint": "^5.20.1",
"tslint-config-standard": "^8.0.1",
"typedoc": "^0.17.7",
"typescript": "^3.9.5"
"@types/node": "^14.14.25",
"@types/yargs": "^16.0.0",
"npm-audit-html": "^1.5.0",
"semantic-release": "^17.3.8",
"tslint": "^6.1.3",
"tslint-config-standard": "^9.0.0",
"typedoc": "^0.20.24",
"typescript": "^3.9.9"
},
"release": {
"branches": [
Expand Down
3 changes: 2 additions & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ const argv = yargs
.command(promote)
.command(upload)
.env('APKUP')
.help('help').argv
.help('help')
.alias('help', 'h').argv
9 changes: 5 additions & 4 deletions src/cli/promote.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// tslint:disable: no-console
import ora from 'ora'
import { CommandModule } from 'yargs'

import { IPromoteParams } from '../actions/Promote'
import { IEditParams } from '../Edit'
import { Apkup } from '../index'

export const promote = {
export const promote: CommandModule = {
builder: (yargs) => {
yargs
return yargs
.option('track', {
alias: 't',
demandOption: true,
Expand Down Expand Up @@ -37,8 +38,8 @@ export const promote = {
})
},
command: 'promote [options]',
desc: 'Promote an APK',
handler: (argv) => {
describe: 'Promote an APK',
handler: (argv: any) => {
const promoteParams: IPromoteParams = {
track: argv.track
}
Expand Down
9 changes: 5 additions & 4 deletions src/cli/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import assert from 'assert'
import ora from 'ora'
import { CommandModule } from 'yargs'

import { Apkup } from '../index'
import { IUploadParams } from './../actions/Upload'

export const upload = {
export const upload: CommandModule = {
aliases: ['$0'],
builder: (cmd) => {
cmd
return cmd
.option('track', {
alias: 't',
default: 'internal',
Expand All @@ -34,8 +35,8 @@ export const upload = {
.demandOption(['apk'])
},
command: 'upload [options]',
desc: 'Upload an APK',
handler: (argv) => {
describe: 'Upload an APK',
handler: (argv: any) => {
const options: IUploadParams = {
deobfuscation: argv.deobfuscation,
obbs: argv.obbs,
Expand Down

0 comments on commit 153edb6

Please sign in to comment.