Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.88 KB

File metadata and controls

56 lines (38 loc) · 1.88 KB

cui javascript module

Status

Java CI with Maven License Maven Central

What is it?

The javascript Module for the cui jsf components. The resulting scripts are:

  • de.cuioss.javascript/cui.js

  • de.cuioss.javascript/cui.min.js

Maven Coordinates

    <dependency>
        <groupId>de.cuioss.jsf</groupId>
        <artifactId>cui-javascript</artifactId>
    </dependency>

Build-Structure

In contrast to other cuioss modules, this module relies entirely on nodes.js / grunt creating the javascript

Technically it consists of certain Type-Script modules that are * compiled * combined * jshinted * minified * tested (jasmine)

using the nodes.js/grunt stack.

Therefore the development can completely take place in specialized tools like VS-Code or similar.

The maven build again calls the grunt task using frontend-maven-plugin that results in the files being created under /target/uglify/. These files will be copied by maven to the appropriate directory and package to a jar-file.

Changes to pre cuioss

  • de.cuioss.registerComponentEnabler → Cui.Core.registerComponentEnabler

  • PrimeFaces.escapeClientId, Cui.Utilities.escapeClientId

TODOs

  • Write sensible Unit-Tests: Currently there are some nonsense tests that need to be fixed

  • Apply sensible Code-Structures: Currently: Work in progress

  • Separate scripts

  • Move from jquery to cash