BABEL-CODEGEN Parent

transform BABEL file into JS file

License

License

GroupId

GroupId

org.tinywind
ArtifactId

ArtifactId

babel-codegen-parent
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

pom
Description

Description

BABEL-CODEGEN Parent
transform BABEL file into JS file
Project URL

Project URL

https://github.com/tinywind/BABEL-CODEGEN
Source Code Management

Source Code Management

https://github.com/tinywind/BABEL-CODEGEN.git

Download babel-codegen-parent

How to add to project

<!-- https://jarcasting.com/artifacts/org.tinywind/babel-codegen-parent/ -->
<dependency>
    <groupId>org.tinywind</groupId>
    <artifactId>babel-codegen-parent</artifactId>
    <version>0.1.3</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.tinywind/babel-codegen-parent/
implementation 'org.tinywind:babel-codegen-parent:0.1.3'
// https://jarcasting.com/artifacts/org.tinywind/babel-codegen-parent/
implementation ("org.tinywind:babel-codegen-parent:0.1.3")
'org.tinywind:babel-codegen-parent:pom:0.1.3'
<dependency org="org.tinywind" name="babel-codegen-parent" rev="0.1.3">
  <artifact name="babel-codegen-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.tinywind', module='babel-codegen-parent', version='0.1.3')
)
libraryDependencies += "org.tinywind" % "babel-codegen-parent" % "0.1.3"
[org.tinywind/babel-codegen-parent "0.1.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • babel-codegen
  • babel-codegen-maven

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