@myvillage/cli 1.0.4 → 1.1.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MyVillageOS CLI
2
2
 
3
- A command-line interface for MyVillage Project student developers to create, manage, and deploy educational games built with Three.js for the M-UNI platform.
3
+ A command-line interface for MyVillage Project student developers to create educational games built with Three.js for the M-UNI platform.
4
4
 
5
5
  ## Installation
6
6
 
@@ -22,9 +22,6 @@ myvillage create-game
22
22
  # 3. Develop your game
23
23
  cd my-game
24
24
  npm run dev
25
-
26
- # 4. Deploy to MyVillageOS
27
- myvillage deploy
28
25
  ```
29
26
 
30
27
  ## Commands
@@ -69,25 +66,6 @@ All templates include:
69
66
  myvillage create-game
70
67
  ```
71
68
 
72
- ### `myvillage deploy`
73
-
74
- Build and deploy your game to the MyVillageOS platform. Run this from inside a game project directory.
75
-
76
- ```bash
77
- cd my-game
78
- myvillage deploy
79
- ```
80
-
81
- You earn MVT tokens for each successful deployment.
82
-
83
- ### `myvillage status`
84
-
85
- Check deployment status and analytics. If run inside a game project directory, shows status for that game. Otherwise, lists all your deployed games.
86
-
87
- ```bash
88
- myvillage status
89
- ```
90
-
91
69
  ## Game Project Structure
92
70
 
93
71
  Games created with the CLI follow this structure:
@@ -148,9 +126,6 @@ Credentials are stored encrypted in `~/.myvillage/credentials.json` with restric
148
126
  **"Authentication required" error:**
149
127
  Run `myvillage login` to authenticate before using other commands.
150
128
 
151
- **"Not a valid game project directory" error:**
152
- Make sure you're inside a game directory created with `myvillage create-game`. The `package.json` must contain a `myvillage` configuration block.
153
-
154
129
  **Browser doesn't open during login:**
155
130
  Copy the URL printed in the terminal and open it manually in your browser.
156
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myvillage/cli",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "MyVillageOS CLI for student game developers",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -4,8 +4,6 @@ import updateNotifier from 'update-notifier';
4
4
  import { loginCommand } from './commands/login.js';
5
5
  import { logoutCommand } from './commands/logout.js';
6
6
  import { createGameCommand } from './commands/create-game.js';
7
- import { deployCommand } from './commands/deploy.js';
8
- import { statusCommand } from './commands/status.js';
9
7
 
10
8
  const require = createRequire(import.meta.url);
11
9
  const pkg = require('../package.json');
@@ -36,15 +34,5 @@ export function run() {
36
34
  .description('Create a new game project with interactive wizard')
37
35
  .action(createGameCommand);
38
36
 
39
- program
40
- .command('deploy')
41
- .description('Deploy your game to MyVillageOS')
42
- .action(deployCommand);
43
-
44
- program
45
- .command('status')
46
- .description('Check deployment status and game analytics')
47
- .action(statusCommand);
48
-
49
37
  program.parse();
50
38
  }
@@ -40,7 +40,7 @@ export function createGameProject(targetDir, options) {
40
40
  writeFileSync(join(targetDir, 'vite.config.js'), generateViteConfig());
41
41
  writeFileSync(join(targetDir, '.gitignore'), generateGitignore());
42
42
  writeFileSync(join(targetDir, 'README.md'), generateReadme(name, description, type, ageGroup));
43
- writeFileSync(join(targetDir, 'public/index.html'), generateIndexHtml(name));
43
+ writeFileSync(join(targetDir, 'index.html'), generateIndexHtml(name));
44
44
 
45
45
  // Write base source files
46
46
  writeFileSync(join(targetDir, 'src/main.js'), generateMainJs(type));