[JS] Remove kotlin-archetype-js
^KT-54868 fixed
This commit is contained in:
committed by
Space Team
parent
9bda7571fd
commit
ed247a3892
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-archetypes-parent</artifactId>
|
||||
<version>2.0.255-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<name>kotlin-archetype-js</name>
|
||||
<description>Kotlin single-module JavaScript project archetype</description>
|
||||
<artifactId>kotlin-archetype-js</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
</project>
|
||||
-28
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archetype-descriptor
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
|
||||
name="kotlin-archetype"
|
||||
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<fileSets>
|
||||
<fileSet encoding="UTF-8" filtered="true" packaged="true">
|
||||
<directory>src/main/kotlin</directory>
|
||||
<includes>
|
||||
<include>**/*.kt</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="true" packaged="false">
|
||||
<directory></directory>
|
||||
<includes>
|
||||
<include>index.html</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
|
||||
<requiredProperties>
|
||||
<requiredProperty key="kotlinVersion">
|
||||
<defaultValue>${project.version}</defaultValue>
|
||||
</requiredProperty>
|
||||
</requiredProperties>
|
||||
</archetype-descriptor>
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<title>Test page</title>
|
||||
|
||||
<!-- include kotlin runtime (run mvn package to get it there) -->
|
||||
<script type="text/javascript" src="target/classes/lib/kotlin.js"></script>
|
||||
|
||||
<!-- your compiled script (run mvn compile to get it up to date) -->
|
||||
<!-- see src/main/kotlin/${packageInPathFormat}/Hello.kt for implementation -->
|
||||
<script type="text/javascript" src="target/classes/${artifactId}.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
-74
@@ -1,74 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<version>${version}</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>${groupId} ${artifactId}</name>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<kotlin.version>${kotlinVersion}</kotlin.version>
|
||||
<kotlin.code.style>official</kotlin.code.style>
|
||||
<junit.version>4.13.1</junit.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib-js</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>src/main/kotlin</sourceDirectory>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>kotlin-maven-plugin</artifactId>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<version>${kotlin.version}</version>
|
||||
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compile</id>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>js</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sourceMap>true</sourceMap> <!-- source map is useful for debugging in tools that support source maps -->
|
||||
<outputFile>${project.build.outputDirectory}/${project.artifactId}.js</outputFile>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- unpack kotlin.js to target/classes/lib for example index.html -->
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>extract-kotlinjs</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>unpack-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<includeArtifactIds>kotlin-stdlib-js</includeArtifactIds>
|
||||
<outputDirectory>${build.outputDirectory}/lib</outputDirectory>
|
||||
<includes>**\/*.js</includes>
|
||||
<excludes>**\/*.meta.js</excludes> <!-- we don't need meta.js files in runtime -->
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
package ${package}
|
||||
|
||||
import kotlinx.browser.window
|
||||
|
||||
/**
|
||||
* Example main function. Started at script body.
|
||||
* At first time you have to run `mvn package`.
|
||||
* Open example index.html in browser once you compile it.
|
||||
*/
|
||||
fun main(args: Array<String>) {
|
||||
window.alert("Hello, World!")
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
<modules>
|
||||
<module>kotlin-archetype-jvm</module>
|
||||
<module>kotlin-archetype-js</module>
|
||||
</modules>
|
||||
|
||||
<build>
|
||||
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-archetypes-parent</artifactId>
|
||||
<version>ArtifactsTest.version</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<name>kotlin-archetype-js</name>
|
||||
<description>Kotlin single-module JavaScript project archetype</description>
|
||||
<artifactId>kotlin-archetype-js</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
</project>
|
||||
-1
@@ -18,7 +18,6 @@
|
||||
|
||||
<modules>
|
||||
<module>kotlin-archetype-jvm</module>
|
||||
<module>kotlin-archetype-js</module>
|
||||
</modules>
|
||||
|
||||
<build>
|
||||
|
||||
Reference in New Issue
Block a user