tools-scripts-mcbe is a command-line tool designed to simplify the process of creating, developing, and building script projects for Minecraft Bedrock Edition. It provides a streamlined workflow for both JavaScript and TypeScript projects, with features like project initialization, development mode, production builds, and project compilation.
- Supports both JavaScript and TypeScript
- Automatic dependency management
- Custom project initialization with interactive prompts
- Development mode with hot reloading
- Production builds with minification
- Easy compilation for distribution
You can use this package directly with npx without installing it globally.
-
Initialize a new project
npx tools-scripts-mcbe init
This command will guide you through creating a new project by asking a series of questions about your project setup.
-
Run the project in development mode
npm run dev
This command will run your project in development mode, watching for changes and rebuilding as necessary.
-
Build the project for production
npm run build
This command will build your project for production use.
-
Compile the project
npm run compile
This command will compile your project, creating a zip file containing all necessary files.
This project uses several key dependencies:
-
esbuild
: For fast and efficient building of JavaScript/TypeScript projects -
inquirer
: For interactive command-line user interfaces -
commander
: For parsing command-line options -
archiver
: For creating zip archives of compiled projects -
fs-extra
: For enhanced file system operations
This project is licensed under a custom license. The key points of this license are:
- You may use this software for both personal and commercial purposes.
- Redistribution is allowed, but you must include this license and the copyright notice.
- Modification or creation of derivative works is prohibited without explicit permission from the copyright holder.
- You may not sublicense, sell, lease, or rent this software.
- Attribution to the original author (IDuckPhone) is required in projects or products using this software.
- Reverse engineering is prohibited unless explicitly authorized by law.
For the full license text, please see the LICENSE file in this repository.
If you encounter any problems or have suggestions, please file an issue on the GitHub repository.