sap-commerce-cloudsmartedit

Hybris exclude Smart Edit grunt from compilation


Is there any way to exclude smart edit grunt rush compile from ant build process? This grunt process adds almost 2 extra minutes to ant build compilation to finish.


Solution

  • The rush build is triggered inside smartedittools extension so it will exeute even if you don't have an addon installed in your storefront or if you don't have a storefront at all (e.g. when using decoupled frontend like Spartacus)

    You can use smartedittools.only.build.once=true flag to tell it to build only once, see comment in smartedittools/project.properties:

    # Introduce new flag to skip smartedit build if bundle files(smartedit/apps/smartedit-master/dist/**) already generated.
    # Smartedit dev team: Will keep value false by default since Rush incremental build working fine under git working tree.
    # Other hybris team and Non-Smartedit partner: Use true to avoid build smartedit everytime in commerce-suite.zip env.
    # Smartedit partner: Update the value on-demand, delete the smartedit bundle or change flag to true will build again.
    smartedittools.only.build.once=false