Skip to content

Commit a8baa65

Browse files
committed
Redesigned basic APIs.
1 parent 20f4462 commit a8baa65

33 files changed

+403
-2661
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules/
2-
/dist/
2+
/lib/
3+
/samples/

.vscode/launch.json

Lines changed: 0 additions & 72 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules\\typescript\\lib"
3+
}

.vscode/tasks.json

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
{
22
// See https://go.microsoft.com/fwlink/?LinkId=733558
33
// for the documentation about the tasks.json format
4-
"version": "0.1.0",
5-
"command": "tsc",
6-
"isShellCommand": true,
7-
"args": ["-w", "-p", "."],
8-
"showOutput": "silent",
9-
"isBackground": true,
10-
"problemMatcher": "$tsc-watch"
11-
}
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "[LiteRT/Clap.js] Build (Prefer Local Compiler)",
8+
"type": "npm",
9+
"script": "build",
10+
"problemMatcher": [
11+
"$tsc-watch"
12+
],
13+
"isBackground": true
14+
},
15+
{
16+
"label": "[LiteRT/Clap.js] Build (Watching, Prefer Local Compiler)",
17+
"type": "npm",
18+
"script": "build-watch",
19+
"problemMatcher": [
20+
"$tsc-watch"
21+
],
22+
"isBackground": true
23+
}
24+
]
25+
}

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

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

5+
## v1.0.0
6+
7+
- Upgraded [`@litert/core`][Dep:LRT.Core] to the v1.0.x.
8+
- Refactored the APIs, for more easier usage.
9+
- Added `windows` style options supports.
10+
- Added `go` style options supports.
11+
- Added unlimited commands supports.
12+
513
## v0.2.2
614

715
- Upgraded [`@litert/core`][Dep:LRT.Core] to the v0.6.0.

package-lock.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "@litert/clap",
3-
"version": "0.2.2",
3+
"version": "1.0.0",
44
"description": "A simple library for parsing commandline arguments.",
5-
"main": "dist/index.js",
5+
"main": "./lib/index.js",
66
"scripts": {
77
"prepare": "npm run rebuild",
8-
"build": "tsc -p .",
8+
"build": "echo Using TypeScript && tsc -v && tsc -p .",
9+
"build-watch": "echo Using TypeScript && tsc -v && tsc -w -p .",
910
"rebuild": "npm run clean && npm run lint && npm run build",
10-
"test": "echo See directory sources/samples",
11-
"clean": "rm -rf ./dist/",
11+
"test": "echo See directory src/samples",
12+
"clean": "rm -rf lib samples",
1213
"lint": "tslint -p . -c tslint.json"
1314
},
1415
"repository": {
@@ -28,16 +29,16 @@
2829
],
2930
"author": "Angus.Fenying <i.am.x.fenying@gmail.com> (https://fenying.net)",
3031
"license": "Apache-2.0",
31-
"typings": "dist/index.d.ts",
32-
"types": "dist/index.d.ts",
32+
"types": "./lib/index.d.ts",
33+
"typings": "./lib/index.d.ts",
3334
"devDependencies": {
3435
"@types/node": "^8.0.6",
35-
"typescript": "^2.7.0"
36+
"typescript": "^3.2.0"
3637
},
3738
"engines": {
3839
"node": ">=8.0.0"
3940
},
4041
"dependencies": {
41-
"@litert/core": "^0.6.0"
42+
"@litert/core": "^1.0.0"
4243
}
4344
}

sources/class.AbstractCommand.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)