Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Update dependencies and release new version (#63)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update version

* Fix formatting and prettier conf
  • Loading branch information
Florian Richter authored Mar 31, 2020
1 parent d04208d commit c7e651e
Show file tree
Hide file tree
Showing 6 changed files with 1,089 additions and 1,248 deletions.
2 changes: 2 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"singleQuote": true,
"printWidth": 150,
"quoteProps": "consistent",
"trailingComma": "none",
"arrowParens": "avoid",
"filepath": "**/*.ts"
}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $ npm install -g @sap-cloud-sdk/cli
$ sap-cloud-sdk COMMAND
running command...
$ sap-cloud-sdk (-v|--version|version)
@sap-cloud-sdk/cli/0.1.7 darwin-x64 node-v13.10.1
@sap-cloud-sdk/cli/0.1.8 darwin-x64 node-v13.11.0
$ sap-cloud-sdk --help [COMMAND]
USAGE
$ sap-cloud-sdk COMMAND
Expand Down Expand Up @@ -102,7 +102,7 @@ EXAMPLE
$ sap-cloud-sdk add-approuter
```

_See code: [src/commands/add-approuter.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.7/src/commands/add-approuter.ts)_
_See code: [src/commands/add-approuter.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.8/src/commands/add-approuter.ts)_

## `sap-cloud-sdk add-cds [PROJECTDIR]`

Expand All @@ -124,7 +124,7 @@ EXAMPLE
$ sap-cloud-sdk add-cds
```

_See code: [src/commands/add-cds.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.7/src/commands/add-cds.ts)_
_See code: [src/commands/add-cds.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.8/src/commands/add-cds.ts)_

## `sap-cloud-sdk add-cx-server [PROJECTDIR]`

Expand All @@ -145,7 +145,7 @@ EXAMPLE
$ sap-cloud-sdk add-cx-server
```

_See code: [src/commands/add-cx-server.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.7/src/commands/add-cx-server.ts)_
_See code: [src/commands/add-cx-server.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.8/src/commands/add-cx-server.ts)_

## `sap-cloud-sdk autocomplete [SHELL]`

Expand Down Expand Up @@ -252,7 +252,7 @@ EXAMPLES
$ sap-cloud-sdk generate-odata-client --help
```

_See code: [src/commands/generate-odata-client.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.7/src/commands/generate-odata-client.ts)_
_See code: [src/commands/generate-odata-client.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.8/src/commands/generate-odata-client.ts)_

## `sap-cloud-sdk help [COMMAND]`

Expand Down Expand Up @@ -280,7 +280,7 @@ USAGE
$ sap-cloud-sdk help-page
```

_See code: [src/commands/help-page.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.7/src/commands/help-page.ts)_
_See code: [src/commands/help-page.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.8/src/commands/help-page.ts)_

## `sap-cloud-sdk init [PROJECTDIR]`

Expand Down Expand Up @@ -311,7 +311,7 @@ EXAMPLES
$ sap-cloud-sdk init --help
```

_See code: [src/commands/init.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.7/src/commands/init.ts)_
_See code: [src/commands/init.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.8/src/commands/init.ts)_

## `sap-cloud-sdk package [PROJECTDIR]`

Expand Down Expand Up @@ -343,7 +343,7 @@ EXAMPLES
$ sap-cloud-sdk package --include="package.json,package-lock.json,index.js,dist/**/*" --exclude="**/*.java"
```

_See code: [src/commands/package.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.7/src/commands/package.ts)_
_See code: [src/commands/package.ts](https://github.com/SAP/cloud-sdk-cli/blob/v0.1.8/src/commands/package.ts)_
<!-- commandsstop -->

## Contribute
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"name": "@sap-cloud-sdk/cli",
"description": "CLI for the SAP Cloud SDK for JavaScript",
"version": "0.1.7",
"version": "0.1.8",
"author": "SAP",
"bin": {
"sap-cloud-sdk": "./bin/run"
},
"bugs": "https://github.com/SAP/cloud-sdk-cli/issues",
"dependencies": {
"@oclif/command": "^1.5.19",
"@oclif/config": "^1.13.3",
"@oclif/config": "^1.14.0",
"@oclif/parser": "^3.8.4",
"@oclif/plugin-autocomplete": "^0.1.5",
"@oclif/plugin-help": "^2.2.3",
"@oclif/plugin-not-found": "^1.2.3",
"@oclif/plugin-warn-if-update-available": "^1.7.0",
"cli-ux": "^5.4.1",
"cli-ux": "^5.4.5",
"execa": "^4.0.0",
"fast-glob": "^3.1.1",
"handlebars": "^4.6.0",
"fast-glob": "^3.2.2",
"handlebars": "^4.7.3",
"js-yaml": "^3.13.1",
"listr": "^0.14.3",
"rimraf": "^3.0.0",
"tslib": "^1.10.0",
"yargs": "15.1.0"
"rimraf": "^3.0.2",
"tslib": "^1.11.1",
"yargs": "15.3.1"
},
"devDependencies": {
"@oclif/dev-cli": "^1.22.2",
"@types/fs-extra": "^8.0.1",
"@types/jest": "^25.1.1",
"@types/js-yaml": "^3.12.1",
"@types/fs-extra": "^8.1.0",
"@types/jest": "^25.1.4",
"@types/js-yaml": "^3.12.3",
"@types/listr": "^0.14.2",
"@types/node": ">=10.0.0",
"@types/rimraf": "^2.0.3",
"fs-extra": "^8.1.0",
"@types/node": ">=13.9.8",
"@types/rimraf": "^3.0.0",
"fs-extra": "^9.0.0",
"globby": "^11.0.0",
"jest": "^25.1.0",
"jest": "^25.2.4",
"jest-extended": "^0.11.2",
"np": "^5.2.1",
"prettier": "^1.19.1",
"ts-jest": "^25.1.0",
"ts-node": "^8.6.0",
"tslint": "^6.0.0",
"np": "^6.2.0",
"prettier": "^2.0.2",
"ts-jest": "^25.3.0",
"ts-node": "^8.8.1",
"tslint": "^6.1.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.4"
"typescript": "^3.8.3"
},
"engines": {
"node": ">=10.0.0"
Expand Down
6 changes: 1 addition & 5 deletions test/generate-odata-client.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/*!
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
const execa = jest
.fn()
.mockRejectedValueOnce({ exitCode: 1 })
.mockResolvedValueOnce('installed')
.mockResolvedValueOnce('generated');
const execa = jest.fn().mockRejectedValueOnce({ exitCode: 1 }).mockResolvedValueOnce('installed').mockResolvedValueOnce('generated');
jest.mock('execa', () => execa);
jest.mock('cli-ux', () => ({
default: {
Expand Down
5 changes: 1 addition & 4 deletions test/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { testDir, testOutputRootDir } from './test-output';

export function getTestOutputDir(file: string): string {
const relativeDirPath = path.relative(testDir, path.dirname(file));
const outputDirName = path
.basename(file, '.ts')
.split('.')
.join('-');
const outputDirName = path.basename(file, '.ts').split('.').join('-');

return path.resolve(testOutputRootDir, relativeDirPath, outputDirName);
}
Expand Down
Loading

0 comments on commit c7e651e

Please sign in to comment.