Skip to content

OVYA/dojoBuilder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DojoBuilder

DojoBuilder is a tool to automate the build of [dojo] (https://dojotoolkit.org/) 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 81.6%
  • JavaScript 16.6%
  • Shell 1.8%