qaos 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +6 -0
- package/dist/app.js +7 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +24 -0
- package/package.json +57 -0
- package/readme.md +25 -0
package/dist/app.d.ts
ADDED
package/dist/app.js
ADDED
package/dist/cli.d.ts
ADDED
package/dist/cli.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import meow from 'meow';
|
|
5
|
+
import App from './app.js';
|
|
6
|
+
const cli = meow(`
|
|
7
|
+
Usage
|
|
8
|
+
$ qaos
|
|
9
|
+
|
|
10
|
+
Options
|
|
11
|
+
--name Your name
|
|
12
|
+
|
|
13
|
+
Examples
|
|
14
|
+
$ qaos --name=Jane
|
|
15
|
+
Hello, Jane
|
|
16
|
+
`, {
|
|
17
|
+
importMeta: import.meta,
|
|
18
|
+
flags: {
|
|
19
|
+
name: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
render(React.createElement(App, { name: cli.flags.name }));
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "qaos",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"bin": {
|
|
6
|
+
"qaos": "dist/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=16"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"dev": "tsc --watch",
|
|
15
|
+
"test": "prettier --check . && xo && ava"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"ink": "^4.1.0",
|
|
22
|
+
"meow": "^11.0.0",
|
|
23
|
+
"react": "^18.2.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@sindresorhus/tsconfig": "^3.0.1",
|
|
27
|
+
"@types/react": "^18.0.32",
|
|
28
|
+
"@vdemedes/prettier-config": "^2.0.1",
|
|
29
|
+
"ava": "^5.2.0",
|
|
30
|
+
"chalk": "^5.2.0",
|
|
31
|
+
"eslint-config-xo-react": "^0.27.0",
|
|
32
|
+
"eslint-plugin-react": "^7.32.2",
|
|
33
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
34
|
+
"ink-testing-library": "^3.0.0",
|
|
35
|
+
"prettier": "^2.8.7",
|
|
36
|
+
"ts-node": "^10.9.1",
|
|
37
|
+
"typescript": "^5.0.3",
|
|
38
|
+
"xo": "^0.53.1"
|
|
39
|
+
},
|
|
40
|
+
"ava": {
|
|
41
|
+
"extensions": {
|
|
42
|
+
"ts": "module",
|
|
43
|
+
"tsx": "module"
|
|
44
|
+
},
|
|
45
|
+
"nodeArguments": [
|
|
46
|
+
"--loader=ts-node/esm"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"xo": {
|
|
50
|
+
"extends": "xo-react",
|
|
51
|
+
"prettier": true,
|
|
52
|
+
"rules": {
|
|
53
|
+
"react/prop-types": "off"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"prettier": "@vdemedes/prettier-config"
|
|
57
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# qaos
|
|
2
|
+
|
|
3
|
+
> This readme is automatically generated by [create-ink-app](https://github.com/vadimdemedes/create-ink-app)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
$ npm install --global qaos
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## CLI
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
$ qaos --help
|
|
15
|
+
|
|
16
|
+
Usage
|
|
17
|
+
$ qaos
|
|
18
|
+
|
|
19
|
+
Options
|
|
20
|
+
--name Your name
|
|
21
|
+
|
|
22
|
+
Examples
|
|
23
|
+
$ qaos --name=Jane
|
|
24
|
+
Hello, Jane
|
|
25
|
+
```
|