@cododel/alto 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/LICENSE +21 -0
- package/README.md +91 -0
- package/dist/alto +0 -0
- package/dist/fsevents-hj42pnne.node +0 -0
- package/dist/index.js +1086 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 @cododelia
|
|
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,91 @@
|
|
|
1
|
+
# Alto CLI
|
|
2
|
+
|
|
3
|
+
A powerful CLI tool for generating TypeScript types and more.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Generate TypeScript types from Directus schemas
|
|
8
|
+
- Modern CLI built with Bun and TypeScript
|
|
9
|
+
- Global installation support
|
|
10
|
+
- Works with bunx/npx for one-time usage
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### Global Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Install globally using bun
|
|
18
|
+
bun install -g @cododel/alto
|
|
19
|
+
|
|
20
|
+
# Or using npm
|
|
21
|
+
npm install -g @cododel/alto
|
|
22
|
+
|
|
23
|
+
# Or using yarn
|
|
24
|
+
yarn global add @cododel/alto
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Using bunx (no installation required)
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Run directly with bunx
|
|
31
|
+
bunx @cododel/alto <command>
|
|
32
|
+
|
|
33
|
+
# Or with npx
|
|
34
|
+
npx @cododel/alto <command>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Binary Installation (Standalone)
|
|
38
|
+
|
|
39
|
+
The package also includes pre-compiled binaries for different platforms:
|
|
40
|
+
|
|
41
|
+
- `alto` - JavaScript version (requires Node.js/Bun)
|
|
42
|
+
- `alto-binary` - Standalone binary (no runtime required)
|
|
43
|
+
|
|
44
|
+
The standalone binary is automatically available after installation and can be used without any runtime dependencies.
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
After installation, you can use the CLI with the `alto` command:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Global installation
|
|
52
|
+
alto <command>
|
|
53
|
+
|
|
54
|
+
# With bunx
|
|
55
|
+
bunx @cododel/alto <command>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Available Commands
|
|
59
|
+
|
|
60
|
+
- `types` - Generate TypeScript types
|
|
61
|
+
|
|
62
|
+
## Development
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Install dependencies
|
|
66
|
+
bun install
|
|
67
|
+
|
|
68
|
+
# Run locally
|
|
69
|
+
bun run alto
|
|
70
|
+
|
|
71
|
+
# Test local installation
|
|
72
|
+
bun run test:install
|
|
73
|
+
|
|
74
|
+
# Build for distribution
|
|
75
|
+
bun run build
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Local Development
|
|
79
|
+
|
|
80
|
+
For local development and testing:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Link the package globally for testing
|
|
84
|
+
bun link
|
|
85
|
+
|
|
86
|
+
# Now the 'alto' command will be available globally
|
|
87
|
+
alto --help
|
|
88
|
+
|
|
89
|
+
# Unlink the package
|
|
90
|
+
bun unlink @cododel/alto
|
|
91
|
+
```
|
package/dist/alto
ADDED
|
Binary file
|
|
Binary file
|