Skip to content

Commit

Permalink
generate js in target
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Feb 12, 2018
1 parent 15f6f43 commit e5c800c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 44 deletions.
9 changes: 7 additions & 2 deletions jjs/src/main/ts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@

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

require.paths = [
"../../../target/ts"
];

java.lang.System.setProperty( "jvm-npm.debug", "true");


// PLOYFILL
//The $ENV variable provides the shell environment variables.
//The $ARG variable is an array of the program command-line arguments.
print( "args", $ARG.length );

var process = { argv:$ARGS, env:{TERM:'color'} } ;
var process = { argv:$ARG, env:{TERM:'color'} } ;

var exports = {};
load('./main.js');
load('../../../target/ts/main.js');
12 changes: 0 additions & 12 deletions jjs/src/main/ts/jdk8-types.js

This file was deleted.

28 changes: 0 additions & 28 deletions jjs/src/main/ts/main.js

This file was deleted.

2 changes: 1 addition & 1 deletion jjs/src/main/ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Stream, URI, Arrays} from "./jdk8-types";
let b = "hello jjs";


let a = Arrays.asList( [ "item1", "item2", "item3"] );
let a = Arrays.asList( [ "item1", "item2", "item3", "item4.1"] );

print( colors.red(b) );

Expand Down
2 changes: 1 addition & 1 deletion jjs/src/main/ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
"outDir": "../../../target/ts", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
Expand Down

0 comments on commit e5c800c

Please sign in to comment.