Skip to content

Commit

Permalink
Upgrade dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
fenying committed Mar 5, 2018
1 parent fca7c4f commit e2b4f73
Show file tree
Hide file tree
Showing 26 changed files with 70 additions and 64 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

[Dep:LRT.Core]: https://github.com/litert/core.js

## v0.2.1

- Upgraded @litert/core to the v0.3.x.
- Upgraded TypeScript to the v2.7.x.

## v0.2.0

- Now allows that only options input without commands in command mode.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ recommend that a file or class name and description of purpose be included on
the same "printed page" as the copyright notice for easier identification within
third-party archives.

Copyright 2017 Angus.Fenying
Copyright 2018 Angus.Fenying

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

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

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "@litert/clap",
"version": "0.2.0",
"version": "0.2.1",
"description": "A simple library for parsing commandline arguments.",
"main": "dist/index.js",
"scripts": {
"prepare": "npm run rebuild",
"build": "tsc -p .",
"rebuild": "npm run clean && npm run build",
"rebuild": "npm run clean && npm run lint && npm run build",
"test": "echo See directory sources/samples",
"clean": "rm -rf ./dist/"
"clean": "rm -rf ./dist/",
"lint": "tslint -p . -c tslint.json"
},
"repository": {
"type": "git",
Expand All @@ -31,12 +32,12 @@
"types": "dist/index.d.ts",
"devDependencies": {
"@types/node": "^8.0.6",
"typescript": "^2.5.2"
"typescript": "^2.7.0"
},
"engines": {
"node": ">=8.0.0"
},
"dependencies": {
"@litert/core": "^0.2.0"
"@litert/core": "^0.3.3"
}
}
4 changes: 2 additions & 2 deletions sources/class.AbstractCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/class.CommandParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/class.Exception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/class.MainCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
6 changes: 3 additions & 3 deletions sources/class.Option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand All @@ -26,7 +26,7 @@ export class Option implements Internal.IOption {

public withArgument: boolean;

public defaultArgument: string;
public defaultArgument!: string;

public shortcut?: string;

Expand Down
10 changes: 5 additions & 5 deletions sources/class.ParseResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand All @@ -19,7 +19,7 @@ import * as Internal from "./internal";

export class ParseResult implements Internal.IParseResult {

protected _success: boolean;
protected _success!: boolean;

protected _error?: Exception;

Expand Down Expand Up @@ -137,9 +137,9 @@ export class ParseResult implements Internal.IParseResult {

export class CommandParseResult extends ParseResult implements Internal.ICommandParseResult {

protected _mainCommand: string;
protected _mainCommand!: string;

protected _subCommand: string;
protected _subCommand!: string;

public constructor() {

Expand Down
4 changes: 2 additions & 2 deletions sources/class.SimpleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/samples/sample-01.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/samples/sample-02.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/samples/sample-03.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
4 changes: 2 additions & 2 deletions sources/samples/sample-04.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
+----------------------------------------------------------------------+
| LiteRT Clap.js Library |
+----------------------------------------------------------------------+
| Copyright (c) 2007-2017 Fenying Studio |
| Copyright (c) 2018 Fenying Studio |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://github.com/litert/clap.js/blob/master/LICENSE |
+----------------------------------------------------------------------+
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
| Authors: Angus Fenying <fenying@litert.org> |
+----------------------------------------------------------------------+
*/

Expand Down
Loading

0 comments on commit e2b4f73

Please sign in to comment.