Categorygithub.com/tbaud0n/dojobuilder
repositorypackage
0.0.0-20181123165429-8e81fdf6446c
Repository: https://github.com/tbaud0n/dojobuilder.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

DojoBuilder

DojoBuilder is a tool to automate the build of Dojo Toolkit based projects in Golang.

Installation

Make sur you have a working Go environment.

To install DojoBuilder, run:

$ go get github.com/tbaud0n/dojoBuilder

Getting started

To run DojoBuilder, simply call dojoBuilder.Run(c *Config, names[]string, reset bool).

This method needs :

  • c: dojoBuilder.Config which contains all the needed information to run the build or install files for non-built mode (see code for more details).
  • names: optional array of build name to execute (for build mode). If nil, all the build configs will be executed.
  • reset: if true the destination folder will be emptied. (The destination folder has to be emptied when switching between non-built and build mode)

Example

An example is provided in the example folder.

To test the example, simply run the initExample.sh which will download dojo in the client folder. Then run:

$ go build main.go

To execute the example in non-built mode, simply run:

$ ./main

To execute the example in build mode, simply run:

$ ./main --buildMode

See the result going to http://127.0.0.1:8080