Development

Contents

Build Mode

Enonic XP Run mode

Comment

production

production

Pros:

  • default setup (should just work after enonic project create)

  • you test what runs in production (especially with clean in the cmdline)

Cons:

  • takes a long time to build

  • debugging could be hard

Notes:

  • it should minimize assets and generate map files

production

development

Basically the same as the previous one

dev

production

Pros:

  • should build somewhat quickly

  • useful when debugging

Cons:

  • incremental/watch MUST be done by Gradle since a fresh jar file is needed

  • browserSync MUST watch build/resources/main

  • build system "code" is probably more complex

Notes:

  • it should not waste time minimizing assets nor generate map files

dev

dev

Pros:

  • should build VERY quickly

  • useful when debugging

  • incremental/watch can be done by Node since a the old jar file can be used

  • browserSync can watch src/main/resources

Cons:

  • build system "code" is probably more complex

  • if code is changed in src/main/java a fresh jar file is still needed

Notes:

  • it should not waste time minimizing assets nor generate map files


Contents

Contents