BABEL-CODEGEN Maven

transform BABEL file into JS file

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.tinywind
ArtifactId

ArtifactId

babel-codegen-maven
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

BABEL-CODEGEN Maven
transform BABEL file into JS file

Download babel-codegen-maven

How to add to project

<plugin>
    <groupId>org.tinywind</groupId>
    <artifactId>babel-codegen-maven</artifactId>
    <version>0.1.3</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.tinywind : babel-codegen jar 0.1.3
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-project jar 2.2.1

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

BABEL-CODEGEN

transform BABEL file into JS file

configure maven

<build>
    <plugins>
      <plugin>
        <groupId>org.tinywind</groupId>
        <artifactId>babel-codegen-maven</artifactId>
        <version>0.1.3</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <sources>
              <source>
                <sourceDir>${project.basedir}/src/main/resources/static/js</sourceDir>
                <sourceEncoding>UTF-8</sourceEncoding>
                <sourceFilePostfix>.jsx</sourceFilePostfix>
                <targetDir>${project.basedir}/src/main/resources/static/js</targetDir>
                <targetEncoding>UTF-8</targetEncoding>
                <overwrite>true</overwrite>
                <recursive>true</recursive>
              </source>
            </sources>
            <babelOptions>
              <presets>REACT</presets>
              <minified>true</minified>
            </babelOptions>
        </configuration>
      </plugin>
    </plugins>
  </build>

result

"C:\Program Files\Java\jdk1.8.0_73\bin\java" "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1\plugins\maven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.1.3 org.tinywind:babel-codegen-maven:0.1.3:generate
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building spring-boot-reactive 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- babel-codegen-maven:0.1.3:generate (default-cli) @ reactive ---
   transformed: C:\Users\tinywind\IdeaProjects\tinywind-spring-boot-reactive\src\main\resources\static\js\doms.jsx -> C:\Users\tinywind\IdeaProjects\tinywind-spring-boot-reactive\src\main\resources\static\js\doms.js
   transformed: C:\Users\tinywind\IdeaProjects\tinywind-spring-boot-reactive\src\main\resources\static\js\playfield.jsx -> C:\Users\tinywind\IdeaProjects\tinywind-spring-boot-reactive\src\main\resources\static\js\playfield.js
[INFO] Complete BABEL-CODEGEN
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.319s
[INFO] Finished at: Sat Jun 25 15:02:39 KST 2016
[INFO] Final Memory: 25M/619M
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

LICENSE

The MIT License (MIT)

Versions

Version
0.1.3