Skip to content

About

A command line interface (CLI) program for creating and managing Rune-based applications.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rune Tools

A command line application (CLI) for creating and managing Rune (rune-sdk) based projects.

How to use

rune-tools can be executed with two possible flags:

  • rune-tools --help: To print the man page.
  • rune-tools --version: To print current version of rune-tools.

Rune-tools contains four subcommands:

  • add <sprite|scene> APPLICATION.PACKAGE.CLASS: Creates a Sprite or Scene class from a template in the current directory. For example, rune-tools add sprite mygame.mypackage.Player creates Player.js. Use rune-tools add scene mygame.mypackage.Scene to create Scene.js. Nested packages are supported, and existing files are never overwritten. Define the namespace and add the file to your project's loading and build lists before using the class.
  • create [-a=APP] [-d=DEV] [-b=BUILD]: Create new projects. This includes tedious tasks such as creating folders and file structures.
    • -a, --application: App-ID, example: myApp.
    • -d, --developer: Developer-ID, example: vectorpanic.
    • -b, --build: Build version, example: 1.0.0.
  • update: Updates the project's Rune version to the latest build.
  • compile [-r]: Compiles data files (images, audio files, XML/JSON files, etc..) into a bundle.
    • -r, --resource: Include URI, not Base64.

Installation

Install with npm:

npm install -g rune-tools

Or download the source code and use npm link to create a symlink from rune-tools to npm's global folder. Example:

npm link ./rune-tools

Example

The following command creates a new project folder named MyApp, by developer com.example of version 1.0.0.

rune-tools create -a MyApp -d com.example -b 1.0.0

Then navigate into the MyApp directory and run npm update to download the Electron dependency. Use npm test to run the MyApp project:

cd ./MyApp
npm update
npm test

To update to the latest build of Rune (SDK), run the following command:

rune-tools update

About

A command line interface (CLI) program for creating and managing Rune-based applications.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages