Skip to content

Commit 4e078d4

Browse files
committed
chore(): add readme file and clean up a little
1 parent 9561c79 commit 4e078d4

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

packages/core/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Orbital
2+
3+
Orbital is the CLI framework from the future. Using powerful features from TypeScript, like metadata and decorators, there is no limit to what you can create with Orbital.
4+
5+
## Features
6+
7+
- Support for options and parameters (arguments)
8+
- Command and option aliases
9+
- Automatic help generation out of the box
10+
- Git-style subcommands
11+
12+
## Example
13+
14+
Here's an example of the simplest CLI you can build with Orbital.
15+
16+
```ts
17+
import { CLI, Command, OrbitalFactory } from '@orbital/core';
18+
19+
@Command({
20+
name: 'hello'
21+
})
22+
export class HelloCommand {
23+
execute() {
24+
console.log('Hello, World!');
25+
}
26+
}
27+
28+
@CLI({
29+
declarations: [
30+
HelloCommand
31+
]
32+
})
33+
export class HelloCLI { }
34+
35+
OrbitalFactory
36+
.bootstrap(HelloCLI)
37+
.execute(process.argv)
38+
```

packages/core/tsconfig-build.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "dist"
5+
"outDir": "dist",
6+
"sourceRoot": "src",
7+
"sourceMap": true,
8+
"declaration": true
69
},
710
"include": [
811
"index.ts"
912
],
1013
"exclude": [
11-
"test",
14+
"src/test",
1215
"node_modules"
1316
]
1417
}

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"target": "es6",
55
"module": "commonjs",
66
"baseUrl": ".",
7-
"sourceRoot": "./src",
87
"declaration": true,
98
"outDir": "./dist",
109
"experimentalDecorators": true,

0 commit comments

Comments
 (0)