Skip to content

Commit 4b4b590

Browse files
committed
moving to js2args
1 parent 6bf4cd0 commit 4b4b590

File tree

4 files changed

+4
-86
lines changed

4 files changed

+4
-86
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ COPY ./src /src
99

1010
WORKDIR /src
1111

12-
# install dependencies: js-yaml and papaparse
13-
# in node, the dependencies are directly install into /src/
14-
RUN npm install js-yaml
15-
RUN npm install papaparse
12+
# install dependencies: js2args
13+
RUN npm install js2args@v0.3.0
1614

1715
# run command
1816
CMD ["node", "run.js"]

in/parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"foo_string": "Never eat yellow snow",
66
"foo_enum": "bar",
77
"foo_array": [34, 55, 23, 43, 23],
8-
"foo_matrix": "/in/foo_matrix.dat",
8+
"foo_matrix": "/in/foo_mat.dat",
99
"foo_csv": "/in/foo_csv.csv"
1010
}
1111
}

src/getParameter.js

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const getParameter = require('./getParameter');
1+
const getParameter = require('js2args');
22

33
// get the tool names
44
const toolName = process.env.RUN_TOOL || 'foobar';

0 commit comments

Comments
 (0)