Grunt reference

Grunt command reference as you can find in grunt help

Compile GBC

$ grunt [--customization=NONE|<customizationId>|ALL] \
  [--compile-mode=dev|cdev|prod] [--build-dist=<build-dist>] [--create-zip]

Compiles GBC

Options are:

  • --customization: supersedes the value set in file custom.json. Can take the following values:
    • NONE: explicitly build GBC without customization in dist/web (unless --build-dist is defined)
    • <customizationId>: explicitly build the given GBC customization in dist/<customizationId> (unless --build-dist is defined)
    • ALL: build GBC without customization and each customization in customization folder in their default build output folders (--build-dist has no effect)
  • --compile-mode: is defined, compiles in specified mode
    • dev: every file is provided separately
    • cdev (default): files are packed
    • prod: files are packed and minified
  • --build-dist: custom target build dir, relative to dist/ folder
  • --create-zip: creates a runtime zip in archive/ folder
$ grunt doc

opens this technical documentation locally

$ grunt clean

erases the .cache/, dist/, archive/ folders

$ grunt cleanall

erases the .cache/, dist/, archive/, node_modules/ folders

$ grunt dev [--customization=<customizationId>]

compiles GBC (possibly with given customization) and live watches for source changes

$ grunt help

displays this present help