Skip to content

Commit

Permalink
Merge branch 'feature/parcel' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartolomeo Sorrentino authored and Bartolomeo Sorrentino committed Mar 24, 2019
2 parents 5438621 + d48c0de commit 957c7d8
Show file tree
Hide file tree
Showing 19 changed files with 8,812 additions and 50 deletions.
2 changes: 1 addition & 1 deletion archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.bsc.processor</groupId>
<artifactId>java2ts-processor-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0-SNAPSHOT</version>
</parent>
<artifactId>java2ts-processor-archetype</artifactId>
<name>java2ts-processor::archetype - ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.bsc.processor</groupId>
<artifactId>java2ts-processor-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0-SNAPSHOT</version>
</parent>
<artifactId>java2ts-processor-core</artifactId>
<name>java2ts-processor::core - ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.bsc.processor</groupId>
<artifactId>java2ts-processor-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>java2ts-processor::parent - ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.bsc.processor</groupId>
<artifactId>java2ts-processor-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0-SNAPSHOT</version>
</parent>

<build>
Expand Down
4 changes: 3 additions & 1 deletion samples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
/.apt_generated/
.apt_generated/
.apt_generated_tests/
.cache/
1 change: 0 additions & 1 deletion samples/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ var process = { argv:$ARG, env:{TERM:'color'} } ;
var exports = {};

var FILE2RUN='main.js'
FILE2RUN='marked.test.js'

load('target/ts/src/main/ts/' + FILE2RUN);
6 changes: 3 additions & 3 deletions samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.bsc.processor</groupId>
<artifactId>java2ts-processor-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0-SNAPSHOT</version>
</parent>

<build>
Expand Down Expand Up @@ -131,7 +131,7 @@
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<outputDirectory>src/main/ts</outputDirectory>
<options>
<ts.outfile>jdk8</ts.outfile>
</options>
Expand All @@ -151,7 +151,7 @@
<argument>-classpath</argument>
<classpath />
<argument>org.bsc.java2ts.JSRun$Nashorn</argument>
<argument>app.js</argument>
<argument>${project.build.directory}/js/main.js</argument>
</arguments>
</configuration>
</execution>
Expand Down
2 changes: 1 addition & 1 deletion samples/src/main/ts/color.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as colors from "colors/safe";
import {
Stream,
Arrays,
} from "ts/jdk8-types";
} from "./ts/jdk8-types";


export function test() {
Expand Down
2 changes: 1 addition & 1 deletion samples/src/main/ts/future.test.rhino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Executor,
Optional,
RuntimeException
} from "ts/jdk8-types";
} from "./ts/jdk8-types";

function doSometing() {
return CompletableFuture.completedFuture("DONE!");
Expand Down
2 changes: 1 addition & 1 deletion samples/src/main/ts/future.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Executor,
Optional,
RuntimeException
} from "ts/jdk8-types";
} from './ts/jdk8-types';

function doSometing() {
return CompletableFuture.completedFuture("DONE!");
Expand Down
2 changes: 1 addition & 1 deletion samples/src/main/ts/main.rhino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
URI,
Optional,
MemoryType,
} from "ts/jdk8-types";
} from "./ts/jdk8-types";


const u1 = "http://localhost:8000/site/";
Expand Down
10 changes: 7 additions & 3 deletions samples/src/main/ts/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

import { MemoryType, Optional, URI } from "ts/jdk8-types";
import { test as future_test } from "./future.test";
import { MemoryType, Optional, URI } from './ts/jdk8-types';

import { test as future_test } from './future.test';
import { test as marked_test } from './marked.test';



Expand Down Expand Up @@ -30,4 +32,6 @@ mustache_test();
validator_test();
stream_test();
*/
future_test();
future_test();

marked_test();
6 changes: 4 additions & 2 deletions samples/src/main/ts/marked.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export function markdown2wiki(md:string) {
}


let res = markdown2wiki( '# TEST' );
export function test() {
let res = markdown2wiki( '# TEST' );

print( res );
print( res );
}

Loading

0 comments on commit 957c7d8

Please sign in to comment.