Enonic Market Enonic Market
Babel Starter icon

Babel Starter

Use ES2015 (ES6) as well as React with JSX

Some web browsers, and the Java 8 Nashorn JavaScript engine, do not support ES6 without a transpiler like Babel. The purpose of this starter kit is to enable the use of ES6 and/or JSX in XP applications. This starter kit contains a webjar dependency that will download the React files when the app is built. It also contains the required folder structure for creating an app to run on Enonic XP.

Releases

  1. 1.4.0

    • Upgraded to the latest version of nodeJs
    • Compatibility:
      • 6.15.0
  2. 1.3.0

    • Updated to the latest version of the Gradle plugin
    • Compatibility:
      • 6.12
  3. 1.2.0

    • Updated to the latest version of the Gradle plugin
    • Compatibility:
      • 6.12.0
  4. 1.1.0

    • Update to work for 6.12.0. Backward compatible to 6.4.0, so use this version!
    • Compatibility:
      • 6.4.0
  5. 1.0.0

    • First release - Works from 6.4.0 to 6.11.1, but is incompatible with 6.12.0
    • Compatibility:
      • 6.4.0
      • 6.11.1

Comments

Clone Babel Starter

To initialize a new project based on Babel Starter, execute the command below. Remember to replace <com.company.myapp> with a unique name for your app, and </my/projects> with the location you want to store the project. <$XP_INSTALL> is the location of your XP installation.

OSX/Linux

Windows

The init-project tool initializes a new application project structure by retrieving a Git repository, removing all references to the Git repository, and adapting its build file properties (gradle.properties).

Complete init-project documentation