Skip to content

Commit

Permalink
moving to js2args
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaelicke committed Nov 17, 2022
1 parent 6bf4cd0 commit 4b4b590
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 86 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ COPY ./src /src

WORKDIR /src

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

# run command
CMD ["node", "run.js"]
2 changes: 1 addition & 1 deletion in/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"foo_string": "Never eat yellow snow",
"foo_enum": "bar",
"foo_array": [34, 55, 23, 43, 23],
"foo_matrix": "/in/foo_matrix.dat",
"foo_matrix": "/in/foo_mat.dat",
"foo_csv": "/in/foo_csv.csv"
}
}
80 changes: 0 additions & 80 deletions src/getParameter.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/run.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const getParameter = require('./getParameter');
const getParameter = require('js2args');

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

0 comments on commit 4b4b590

Please sign in to comment.