Skip to content

Latest commit

 

History

History
executable file
·
27 lines (17 loc) · 1.05 KB

File metadata and controls

executable file
·
27 lines (17 loc) · 1.05 KB

Resources generator

Generates ember generate mu-resource ... commands and dispatcher rules from a domain.lisp file by introspecting the resulting model.

Example build command

docker build -t semtech/mu-cl-resources-ember-generator .

Example usage

    docker run -v [folder containing domain.lisp]:/config semtech/mu-cl-resources-ember-generator

Before exiting, the program outputs ember generate mu-resource ... commands and dispatcher rules. The commands have to be run in the root of an Ember project. See the mu-resource blueprint documentation for more information and options.

The rules can be copied and pasted in a dispatcher.ex file.

Readonly option

The ember generate mu-resource ... command takes a --readonly flag. To generate commands with this flag set, run the generator with the environment variable READONLY set to any value.

    docker run -v [folder containing domain.lisp]:/config --env READONLY=t semtech/mu-cl-resources-ember-generator