RequireJS in APEX 5.1 APEX Connect 2017 Berlin, 2017-05-09 2 RequireJS in APEX 5.1 7-5-2017 @mennooo About me mennooo Menno Hoogendijk Fulltime APEX developer Working with Oracle since 2008 Tries to be a fullstack developer Speaking at: APEX Connect 2017 RequireJS in Apex 5.1 Automating developer tasks with custom SQLcl scripts Kscope17 Plugin your APEX widgets Powerful JavaScript skills for all APEX developers 3 RequireJS in APEX 5.1 7-5-2017 Qualogy in numbers Today’s menu Why Modularity RequireJS APEX 5.1 & RequireJS Configuration Best Practices Live demo Advanced usage The optimizer Automating things With RequireJS we can build a toolbox • Create our own JavaScript library • Reuse it in all our projects 6 RequireJS in APEX 5.1 7-5-2017 By using a toolbox we can.. • Solve bugs in one place -> Single Point Of Definition • Work in small, separate files • Replace a tool with something better And the APEX team has theirs! 7 RequireJS in APEX 5.1 7-5-2017 8 RequireJS in APEX 5.1 7-5-2017 If APEX already uses modules, why do we need RequireJS?? The advantages of RequireJS 1. Track dependencies between modules 2. Use modules without exposing them “Onlya hammerusesa nail, nailsshouldonlybe availablefora hammer” Menno Hoogendijk 9 RequireJS in APEX 5.1 7-5-2017 10 RequireJS in APEX 5.1 7-5-2017
Description: