Skip to content

ThomasOrs/deno-dash-compiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno-dash-compiler

Dash is an efficient compiler for Minecraft add-ons. This project uses the Dash compiler library to provide bridge.'s built-in compiler as a standalone CLI program.

Installation Options

There are multiple methods to install Dash:

Executables

(For Windows or macOS)

A standalone Dash executable can be downloaded from this repository's Releases page.


Deno

Deno must be installed on your system to use the following methods:

Via Deno's Script Installer

Open your terminal and run:

deno install -A -f --reload -n dash_compiler https://raw.githubusercontent.com/bridge-core/deno-dash-compiler/main/mod.ts

Via Deno's Task Runner

(Requires bridge. v2.3 or higher)

Run from within your project's root directory:

deno task setup

Usage

Building a project

dash_compiler build: Loads all plugins and builds the project inside of your current working directory in production mode.

  • --mode development: Tell bridge. that you want to compile a development build
  • --compilerConfig [path]: Compile the project with a different set of plugins

Watching for changes

dash_compiler watch: Recompile files whenever you make changes to your project

  • --out [path] Set a directory to output to. Default: com.mojang folder; use --out preview to instead output to Minecraft Preview
  • --reload [port] Open a WebSocket which, once connected, runs the /reload command in Minecraft when a script or function is updated. Default port: 8080. This option requires the Minecraft client to be exempt from network loopback restrictions. This exemption is set automatically as long as Dash is running with admin privileges.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%