Skip to content

Commit

Permalink
add sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Dec 29, 2017
1 parent 24c3247 commit 3bfa408
Show file tree
Hide file tree
Showing 7 changed files with 1,167 additions and 0 deletions.
43 changes: 43 additions & 0 deletions jjs/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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>
<groupId>org.jjs</groupId>
<artifactId>jjs</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<build>
<finalName>jjs</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<executable>jjs</executable>
<workingDirectory>${basedir}/src/main/ts</workingDirectory>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>app.js</argument>
</arguments>
</configuration>
</plugin>

</plugins>
</build>
<properties>
<failOnMissingWebXml>false</failOnMissingWebXml>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>org.bsc</groupId>
<artifactId>jvm-npm-core</artifactId>
<version>1.1.0</version>
</dependency>

</dependencies>
</project>
8 changes: 8 additions & 0 deletions jjs/src/main/ts/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// STARTUP
//

load('classpath:jvm-npm.js');

var exports = {};
load('./main.js');
Loading

0 comments on commit 3bfa408

Please sign in to comment.