0.0.14 • Published 7 years ago
@mesa-engine/cli v0.0.14
@mesa-engine/cli
Installation
$ npm install -g @mesa-engine/cliUsage
Creating and running a new application
$ mesa new my-app
$ cd my-app
$ npm install
$ mesa runOnce the project has been generated, you can use the cli to create new components, systems, and blueprints.
For example, creating a position component:
$ mesa component positionWould create a PositionComponent class in the src/components folder.
If you wish to nest elements in sub-folders simply add slashes:
$ mesa component physics/velocityWhich would create a VelocityComponent class in src/components/physics/.
Commands
| Command | Description |
|---|---|
| new name | Creates a new mesa project |
| component name | Creates a new component |
| system name | Creates a new system |
| blueprint name | Creates a new blueprint |
| run | Builds and runs application |
The "run" command will host your code and watch for any changes made. If change is detected it will rebuild and refresh the application.
At any point you can type the "help" command for details.
$ mesa help
...
$ mesa [command] --help
...