moomodding 1.1.0 → 1.1.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/README.md +53 -53
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
# MooModding
|
|
1
|
+
# MooModding CLI (`moo`)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official developer command-line tool and game SDK for building, testing, syncing, and publishing MooMoo.io mods on **MooModding.io**.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
- **Zero-Friction Setup:** Use with `npx moomodding` or install globally via `npm i -g moomodding`.
|
|
10
|
-
- **Directory-First Auto-Walk:** No manual file lists in `mod.json`. Add, remove, and nest folders (`src/combat/`, `assets/`, `utils/`) freely.
|
|
11
|
-
- **Instant Hot-Sync (`moo dev`):** Automatically pushes changes to the cloud on every `Ctrl + S`.
|
|
12
|
-
- **Reconciliation:** Deleted local files are cleaned up from the cloud mirror automatically.
|
|
13
|
-
- **Smart Ignore:** Built-in `.mooignore` ignores `node_modules`, `.git`, `.env`, and build artifacts.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## 🚀 Quick Start
|
|
18
|
-
|
|
19
|
-
### 1. Installation
|
|
7
|
+
## Installation
|
|
20
8
|
|
|
21
9
|
```bash
|
|
22
|
-
#
|
|
10
|
+
# Install globally
|
|
23
11
|
npm install -g moomodding
|
|
24
12
|
|
|
25
|
-
# Or run directly
|
|
13
|
+
# Or run directly with npx
|
|
26
14
|
npx moomodding --help
|
|
27
15
|
```
|
|
28
16
|
|
|
29
|
-
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
30
20
|
|
|
31
21
|
```bash
|
|
22
|
+
# 1. Authenticate with your MooModding account
|
|
32
23
|
moo login
|
|
33
|
-
```
|
|
34
|
-
*Generates or prompts for your Personal Access Token from `https://moomodding.io/settings`.*
|
|
35
24
|
|
|
36
|
-
|
|
25
|
+
# 2. Scaffold a new mod project
|
|
26
|
+
moo init my-mod --community
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
moo
|
|
41
|
-
cd my-combat-mod
|
|
28
|
+
# 3. Start live sync watcher (pushes to sandbox on save)
|
|
29
|
+
cd my-mod
|
|
30
|
+
moo dev
|
|
42
31
|
|
|
43
|
-
#
|
|
44
|
-
moo
|
|
45
|
-
cd elite-combat-suite
|
|
32
|
+
# 4. Publish release to the Community Gallery
|
|
33
|
+
moo publish patch -m "Initial release"
|
|
46
34
|
```
|
|
47
35
|
|
|
48
|
-
|
|
36
|
+
---
|
|
49
37
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
38
|
+
## Commands
|
|
39
|
+
|
|
40
|
+
| Command | Description |
|
|
41
|
+
| :--- | :--- |
|
|
42
|
+
| `moo login [token]` | Log in to your MooModding account |
|
|
43
|
+
| `moo whoami` | View logged-in account and cloud storage quota |
|
|
44
|
+
| `moo init [dir] [flags]` | Scaffold a new mod project (`--community`, `-t`, `-d`) |
|
|
45
|
+
| `moo list` (or `ls`) | List your cloud mods and storage usage |
|
|
46
|
+
| `moo clone <target> [dir]` | Clone a personal cloud mod or community mod (`@author/slug`) |
|
|
47
|
+
| `moo push` | Scan directory and upload mod files to cloud |
|
|
48
|
+
| `moo pull` | Download latest mod files from cloud |
|
|
49
|
+
| `moo dev` | Watch local directory and auto-sync to cloud on every save |
|
|
50
|
+
| `moo publish [version]` | Publish release to Community Gallery (`patch`, `minor`, `major`, or `1.0.0`) |
|
|
51
|
+
| `moo config <action>` | View or update CLI configuration |
|
|
52
|
+
| `moo logout` | Clear local credentials and log out |
|
|
55
53
|
|
|
56
54
|
---
|
|
57
55
|
|
|
58
|
-
##
|
|
56
|
+
## Options & Flags
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
58
|
+
### `moo init [dir]`
|
|
59
|
+
* `-n, --name <name>`: Mod display name
|
|
60
|
+
* `-t, --type <type>`: Mod architecture (`hook`, `bundle_replacement`, or `html_replacement`)
|
|
61
|
+
* `-c, --community`: Scaffold as an open-source community mod
|
|
62
|
+
* `-d, --description <desc>`: Mod description for showcase
|
|
63
|
+
* `-v, --version <version>`: Initial version (default: `1.0.0`)
|
|
64
|
+
|
|
65
|
+
### `moo publish [version]`
|
|
66
|
+
* `[version]`: `patch`, `minor`, `major`, or explicit semver (e.g. `1.1.0`)
|
|
67
|
+
* `-m, --message <changelog>`: Release changelog notes
|
|
68
|
+
* `--status <status>`: Visibility status (`active`, `unlisted`, `archived`)
|
|
69
|
+
* `-d, --description <desc>`: Update mod description
|
|
70
|
+
* `--youtube <url>`: Video showcase URL
|
|
71
|
+
* `-y, --yes`: Skip confirmation prompt
|
|
72
|
+
|
|
73
|
+
### `moo clone <target>`
|
|
74
|
+
* Private mod: `moo clone my-private-mod`
|
|
75
|
+
* Community mod: `moo clone @author/slug`
|
|
71
76
|
|
|
72
77
|
---
|
|
73
78
|
|
|
74
|
-
##
|
|
79
|
+
## License
|
|
75
80
|
|
|
76
|
-
|
|
77
|
-
cd moomodding-cli
|
|
78
|
-
npm install
|
|
79
|
-
npm run build
|
|
80
|
-
npm link # links 'moo' globally on your machine for testing
|
|
81
|
-
```
|
|
81
|
+
MIT © [MooModding.io](https://moomodding.io)
|
package/dist/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ const program = new Command();
|
|
|
14
14
|
program
|
|
15
15
|
.name("moo")
|
|
16
16
|
.description("MooModding Developer CLI — Build, test, and sync MooMoo.io mods with zero friction.")
|
|
17
|
-
.version("1.1.
|
|
17
|
+
.version("1.1.1");
|
|
18
18
|
// 1. Auth Commands
|
|
19
19
|
program
|
|
20
20
|
.command("login [token]")
|