@vited/cli 0.0.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 - 2023-09-02
4
+
5
+ - Added something
6
+ - Changed something
7
+ - Fixed something
8
+ - Removed something
9
+ - Deprecated something
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Guo Yunhe
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # cli
2
+
3
+ ## Install
4
+
5
+ ### Run directly
6
+
7
+ ```bash
8
+ npx cli
9
+ ```
10
+
11
+ ### Install on system
12
+
13
+ ```bash
14
+ npm i -g cli
15
+ %binName%
16
+ ```
17
+
18
+ ### Install in project
19
+
20
+ ```bash
21
+ npm i -D cli
22
+ ```
23
+
24
+ Add script entry:
25
+
26
+ ```json
27
+ {
28
+ "scripts": {
29
+ "%binName%": "%binName%"
30
+ }
31
+ }
32
+ ```
33
+
34
+ Run:
35
+
36
+ ```bash
37
+ npm run %binName%
38
+ ```
39
+
40
+ ## Options
41
+
42
+ ### `--help`
43
+
44
+ Show help
45
+
46
+ ### `--version`
47
+
48
+ Show version
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@vited/cli",
3
+ "version": "0.0.1",
4
+ "description": "Vited CLI",
5
+ "keywords": [],
6
+ "homepage": "https://github.com/vitedjs/cli#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/vitedjs/cli/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/vitedjs/cli.git"
13
+ },
14
+ "funding": "https://github.com/sponsors/guoyunhe",
15
+ "license": "MIT",
16
+ "author": {
17
+ "name": "Guo Yunhe",
18
+ "email": "i@guoyunhe.me"
19
+ },
20
+ "main": "dist/index.js",
21
+ "module": "dist/index.mjs",
22
+ "typings": "dist/index.d.ts",
23
+ "bin": {
24
+ "cli": "dist/cli.js"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "CHANGELOG.md",
29
+ "LICENSE",
30
+ "README.md"
31
+ ],
32
+ "prettier": {
33
+ "printWidth": 100,
34
+ "singleQuote": true
35
+ },
36
+ "eslintConfig": {
37
+ "extends": "@guoyunhe/node-scripts"
38
+ },
39
+ "jest": {
40
+ "preset": "@guoyunhe/node-scripts"
41
+ },
42
+ "dependencies": {
43
+ "commander": "^11.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "@guoyunhe/node-scripts": "^2.2.0",
47
+ "@tsconfig/node20": "^20.1.2",
48
+ "@tsconfig/strictest": "^2.0.1",
49
+ "@types/jest": "^29.5.2",
50
+ "@types/node": "^20.3.1",
51
+ "typescript": "^5.1.3"
52
+ },
53
+ "scripts": {
54
+ "build": "node-scripts build",
55
+ "format": "node-scripts format",
56
+ "lint": "node-scripts lint",
57
+ "test": "node-scripts test",
58
+ "watch": "node-scripts watch"
59
+ }
60
+ }