eser 4.1.5 → 4.1.6
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/README.md +146 -108
- package/eser.js +350 -330
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
# eser
|
|
1
|
+
# 🖥️ [@eser/cli](./)
|
|
2
2
|
|
|
3
|
-
Eser Ozvataf's command-line tooling to access things.
|
|
3
|
+
Eser Ozvataf's command-line tooling to access things. A multi-purpose CLI that
|
|
4
|
+
dispatches to library modules for codebase management, workflow automation,
|
|
5
|
+
framework scaffolding, and more.
|
|
4
6
|
|
|
5
|
-
##
|
|
7
|
+
## 🚀 Quick Start
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
# Using npx (no installation required)
|
|
@@ -15,167 +17,203 @@ deno run --allow-all jsr:@eser/cli <command>
|
|
|
15
17
|
npm install -g eser
|
|
16
18
|
```
|
|
17
19
|
|
|
18
|
-
##
|
|
20
|
+
## 🛠 Command Tree
|
|
19
21
|
|
|
20
|
-
### laroux
|
|
21
|
-
|
|
22
|
-
laroux.js framework commands for building React Server Components applications.
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
eser laroux <subcommand> [options]
|
|
26
22
|
```
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
23
|
+
eser
|
|
24
|
+
├── codebase Codebase management tools
|
|
25
|
+
│ ├── scaffolding Initialize project from template
|
|
26
|
+
│ ├── install Install git hooks from .manifest.yml
|
|
27
|
+
│ ├── uninstall Remove managed git hooks
|
|
28
|
+
│ ├── status Show git hook installation status
|
|
29
|
+
│ ├── versions Manage workspace package versions
|
|
30
|
+
│ ├── changelog-gen Generate CHANGELOG from commits
|
|
31
|
+
│ ├── release-notes Sync changelog to GitHub Releases
|
|
32
|
+
│ ├── release-tag Create and push release git tags
|
|
33
|
+
│ ├── validate-eof Ensure files end with newline
|
|
34
|
+
│ ├── validate-trailing-whitespace
|
|
35
|
+
│ ├── validate-bom Remove UTF-8 byte order markers
|
|
36
|
+
│ ├── validate-line-endings
|
|
37
|
+
│ ├── validate-large-files
|
|
38
|
+
│ ├── validate-case-conflict
|
|
39
|
+
│ ├── validate-merge-conflict
|
|
40
|
+
│ ├── validate-json Validate JSON syntax
|
|
41
|
+
│ ├── validate-toml Validate TOML syntax
|
|
42
|
+
│ ├── validate-yaml Validate YAML syntax
|
|
43
|
+
│ ├── validate-symlinks
|
|
44
|
+
│ ├── validate-shebangs
|
|
45
|
+
│ ├── validate-secrets Detect credentials and private keys
|
|
46
|
+
│ ├── validate-filenames
|
|
47
|
+
│ ├── validate-submodules
|
|
48
|
+
│ ├── validate-commit-msg
|
|
49
|
+
│ ├── validate-docs Validate JSDoc documentation
|
|
50
|
+
│ ├── validate-circular-deps
|
|
51
|
+
│ ├── validate-export-names
|
|
52
|
+
│ ├── validate-licenses
|
|
53
|
+
│ ├── validate-mod-exports
|
|
54
|
+
│ └── validate-package-configs
|
|
55
|
+
├── workflows Workflow engine — run tool pipelines
|
|
56
|
+
│ ├── run Run workflows by event or id
|
|
57
|
+
│ └── list List available workflows and tools
|
|
58
|
+
├── laroux laroux.js framework commands
|
|
59
|
+
│ ├── init Create a new laroux.js project
|
|
60
|
+
│ ├── dev Start development server with hot reload
|
|
61
|
+
│ ├── build Build for production
|
|
62
|
+
│ └── serve Serve production build locally
|
|
63
|
+
├── system Commands related with this CLI
|
|
64
|
+
├── install Install eser CLI globally
|
|
65
|
+
├── update Update eser CLI to latest version
|
|
66
|
+
└── version Show version number
|
|
41
67
|
```
|
|
42
68
|
|
|
43
|
-
|
|
69
|
+
## 📋 Commands
|
|
44
70
|
|
|
45
|
-
|
|
46
|
-
(default: minimal)
|
|
47
|
-
- `-f, --force` - Overwrite existing files
|
|
48
|
-
- `--no-git` - Skip git initialization
|
|
49
|
-
- `--no-install` - Skip dependency installation
|
|
71
|
+
### workflows
|
|
50
72
|
|
|
51
|
-
|
|
73
|
+
Run tool pipelines driven by events (pre-commit, pre-push, etc.).
|
|
52
74
|
|
|
53
75
|
```bash
|
|
54
|
-
#
|
|
55
|
-
eser
|
|
76
|
+
# Run all tools for a specific event
|
|
77
|
+
npx eser workflows run -e precommit
|
|
56
78
|
|
|
57
|
-
#
|
|
58
|
-
eser
|
|
79
|
+
# Run all tools for pre-push
|
|
80
|
+
npx eser workflows run -e prepush
|
|
59
81
|
|
|
60
|
-
#
|
|
61
|
-
eser
|
|
82
|
+
# List available workflows and tools
|
|
83
|
+
npx eser workflows list
|
|
62
84
|
```
|
|
63
85
|
|
|
64
|
-
|
|
86
|
+
### codebase
|
|
65
87
|
|
|
66
|
-
|
|
88
|
+
Codebase management, validation, and release tools.
|
|
67
89
|
|
|
68
90
|
```bash
|
|
69
|
-
|
|
70
|
-
|
|
91
|
+
# Initialize a new project from template
|
|
92
|
+
npx eser codebase scaffolding
|
|
93
|
+
npx eser codebase init # alias for scaffolding
|
|
71
94
|
|
|
72
|
-
|
|
95
|
+
# Install git hooks
|
|
96
|
+
npx eser codebase install
|
|
73
97
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- `--no-hmr` - Disable hot module replacement
|
|
77
|
-
- `--log-level <level>` - Log level: debug, info, warn, error (default: info)
|
|
98
|
+
# Check git hook installation status
|
|
99
|
+
npx eser codebase status
|
|
78
100
|
|
|
79
|
-
|
|
101
|
+
# Remove managed git hooks
|
|
102
|
+
npx eser codebase uninstall
|
|
80
103
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
eser laroux dev
|
|
104
|
+
# Validate JSON files
|
|
105
|
+
npx eser codebase validate-json
|
|
84
106
|
|
|
85
|
-
#
|
|
86
|
-
eser
|
|
87
|
-
```
|
|
107
|
+
# Validate YAML files
|
|
108
|
+
npx eser codebase validate-yaml
|
|
88
109
|
|
|
89
|
-
|
|
110
|
+
# Detect secrets and credentials
|
|
111
|
+
npx eser codebase validate-secrets
|
|
90
112
|
|
|
91
|
-
|
|
113
|
+
# Run all validation checks
|
|
114
|
+
npx eser codebase validate-eof
|
|
115
|
+
npx eser codebase validate-trailing-whitespace
|
|
116
|
+
npx eser codebase validate-bom
|
|
117
|
+
npx eser codebase validate-line-endings
|
|
92
118
|
|
|
93
|
-
|
|
94
|
-
eser
|
|
119
|
+
# Release management
|
|
120
|
+
npx eser codebase versions
|
|
121
|
+
npx eser codebase changelog-gen
|
|
122
|
+
npx eser codebase release-notes
|
|
123
|
+
npx eser codebase release-tag
|
|
95
124
|
```
|
|
96
125
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
- `--out-dir <path>` - Output directory (default: dist)
|
|
100
|
-
- `--clean` - Clean output directory first
|
|
101
|
-
- `--no-minify` - Disable minification
|
|
102
|
-
- `--analyze` - Analyze bundle size
|
|
126
|
+
### laroux
|
|
103
127
|
|
|
104
|
-
|
|
128
|
+
laroux.js framework commands for building React Server Components applications.
|
|
105
129
|
|
|
106
130
|
```bash
|
|
107
|
-
#
|
|
108
|
-
eser laroux
|
|
131
|
+
# Create a new laroux.js project
|
|
132
|
+
npx eser laroux init my-app
|
|
133
|
+
npx eser laroux init my-blog --template blog
|
|
109
134
|
|
|
110
|
-
#
|
|
111
|
-
eser laroux
|
|
135
|
+
# Start development server
|
|
136
|
+
npx eser laroux dev
|
|
137
|
+
npx eser laroux dev --port 3000 --open
|
|
112
138
|
|
|
113
|
-
# Build
|
|
114
|
-
eser laroux build
|
|
115
|
-
|
|
139
|
+
# Build for production
|
|
140
|
+
npx eser laroux build
|
|
141
|
+
npx eser laroux build --analyze
|
|
116
142
|
|
|
117
|
-
|
|
143
|
+
# Serve production build
|
|
144
|
+
npx eser laroux serve
|
|
145
|
+
npx eser laroux serve --port 8080
|
|
146
|
+
```
|
|
118
147
|
|
|
119
|
-
|
|
148
|
+
#### laroux init
|
|
120
149
|
|
|
121
150
|
```bash
|
|
122
|
-
eser laroux
|
|
151
|
+
eser laroux init [folder] [options]
|
|
123
152
|
```
|
|
124
153
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
154
|
+
| Option | Description |
|
|
155
|
+
| ---------------- | ------------------------------------------------ |
|
|
156
|
+
| `-t, --template` | Project template: minimal, blog, dashboard, docs |
|
|
157
|
+
| `-f, --force` | Overwrite existing files |
|
|
158
|
+
| `--no-git` | Skip git initialization |
|
|
159
|
+
| `--no-install` | Skip dependency installation |
|
|
129
160
|
|
|
130
|
-
|
|
161
|
+
#### laroux dev
|
|
131
162
|
|
|
132
163
|
```bash
|
|
133
|
-
|
|
134
|
-
eser laroux serve
|
|
135
|
-
|
|
136
|
-
# Serve on custom port
|
|
137
|
-
eser laroux serve --port 8080
|
|
164
|
+
eser laroux dev [options]
|
|
138
165
|
```
|
|
139
166
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
167
|
+
| Option | Description |
|
|
168
|
+
| ------------- | ----------------------------------- |
|
|
169
|
+
| `-p, --port` | Server port (default: 8000) |
|
|
170
|
+
| `-o, --open` | Open browser automatically |
|
|
171
|
+
| `--no-hmr` | Disable hot module replacement |
|
|
172
|
+
| `--log-level` | Log level: debug, info, warn, error |
|
|
143
173
|
|
|
144
|
-
|
|
174
|
+
#### laroux build
|
|
145
175
|
|
|
146
176
|
```bash
|
|
147
|
-
eser
|
|
177
|
+
eser laroux build [options]
|
|
148
178
|
```
|
|
149
179
|
|
|
150
|
-
|
|
180
|
+
| Option | Description |
|
|
181
|
+
| ------------- | -------------------------------- |
|
|
182
|
+
| `--out-dir` | Output directory (default: dist) |
|
|
183
|
+
| `--clean` | Clean output directory first |
|
|
184
|
+
| `--no-minify` | Disable minification |
|
|
185
|
+
| `--analyze` | Analyze bundle size |
|
|
151
186
|
|
|
152
|
-
|
|
153
|
-
- `check-circular-deps` - Check for circular dependencies
|
|
154
|
-
- `check-docs` - Check documentation coverage
|
|
155
|
-
- `check-export-names` - Check export naming conventions
|
|
156
|
-
- `check-licenses` - Check license compliance
|
|
157
|
-
- `check-mod-exports` - Check module exports
|
|
158
|
-
- `check-package-configs` - Check package configurations
|
|
159
|
-
- `init` - Initialize a new project from a template
|
|
187
|
+
#### laroux serve
|
|
160
188
|
|
|
161
|
-
|
|
189
|
+
```bash
|
|
190
|
+
eser laroux serve [options]
|
|
191
|
+
```
|
|
162
192
|
|
|
163
|
-
|
|
164
|
-
|
|
193
|
+
| Option | Description |
|
|
194
|
+
| ------------ | -------------------------------------- |
|
|
195
|
+
| `-p, --port` | Server port (default: 8000) |
|
|
196
|
+
| `--dist-dir` | Distribution directory (default: dist) |
|
|
165
197
|
|
|
166
|
-
|
|
198
|
+
### system
|
|
167
199
|
|
|
168
200
|
```bash
|
|
169
|
-
#
|
|
170
|
-
eser
|
|
201
|
+
# Install eser CLI globally
|
|
202
|
+
npx eser install
|
|
171
203
|
|
|
172
|
-
#
|
|
173
|
-
eser
|
|
204
|
+
# Update to the latest version
|
|
205
|
+
npx eser update
|
|
174
206
|
|
|
175
|
-
#
|
|
176
|
-
eser
|
|
207
|
+
# Show version
|
|
208
|
+
npx eser version
|
|
209
|
+
npx eser version --bare # version number only
|
|
177
210
|
```
|
|
178
211
|
|
|
179
212
|
## License
|
|
180
213
|
|
|
181
214
|
Apache-2.0
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
🔗 For further details, visit the
|
|
219
|
+
[eserstack repository](https://github.com/eser/stack).
|