Skip to content

Commit

Permalink
Update JS impls to ubuntu 24.04, ffi-napi to 4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kanaka committed Aug 5, 2024
1 parent dd2b64c commit 1dd394a
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 17 deletions.
5 changes: 3 additions & 2 deletions impls/coffee/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -19,6 +19,7 @@ WORKDIR /mal
# Specific implementation requirements
##########################################################

RUN DEBIAN_FRONTEND=noninteractive apt-get -y install coffeescript g++ libreadline-dev npm
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install g++ libreadline-dev nodejs npm
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install coffeescript
ENV NPM_CONFIG_CACHE /mal/.npm
RUN touch /.coffee_history && chmod go+w /.coffee_history
2 changes: 1 addition & 1 deletion impls/coffee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "Make a Lisp (mal) language implemented in CoffeeScript",
"dependencies": {
"ffi-napi": "2.4.x",
"ffi-napi": "4.0.3",
"coffeescript": "~1.8"
}
}
2 changes: 1 addition & 1 deletion impls/elm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "bootstrap.js",
"dependencies": {
"ffi-napi": "2.4.x"
"ffi-napi": "4.0.3"
},
"devDependencies": {
"elm": "^0.18.0"
Expand Down
4 changes: 2 additions & 2 deletions impls/es6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -19,6 +19,6 @@ WORKDIR /mal
# Specific implementation requirements
##########################################################

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y g++ libreadline-dev npm
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install g++ libreadline-dev nodejs npm

ENV NPM_CONFIG_CACHE /mal/.npm
2 changes: 1 addition & 1 deletion impls/es6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Make a Lisp (mal) language implemented in ES6 (ECMAScript 6 / ECMAScript 2015)",
"dependencies": {
"esm": "3.1.x",
"ffi-napi": "2.4.x"
"ffi-napi": "4.0.3"
},
"esm": {
"cjs": true
Expand Down
2 changes: 2 additions & 0 deletions impls/es6/printer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export function pr_str(obj, print_readably) {
return "nil"
} else if (obj instanceof Atom) {
return "(atom " + pr_str(obj.val,_r) + ")"
} else if (obj instanceof Function) {
return "#<function>"
} else {
return obj.toString()
}
Expand Down
5 changes: 3 additions & 2 deletions impls/haxe/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -20,7 +20,8 @@ WORKDIR /mal
##########################################################

# Haxe
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install g++ haxe libreadline-dev npm
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install g++ libreadline-dev nodejs npm
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install haxe

ENV NPM_CONFIG_CACHE /mal/.npm
ENV HOME /
Expand Down
2 changes: 1 addition & 1 deletion impls/haxe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "0.0.1",
"description": "Make a Lisp (mal) language implemented in Haxe/Javascript",
"dependencies": {
"ffi-napi": "2.4.x"
"ffi-napi": "4.0.3"
}
}
2 changes: 1 addition & 1 deletion impls/js/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand Down
2 changes: 1 addition & 1 deletion impls/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "0.0.1",
"description": "Make a Lisp (mal) language implemented in Javascript",
"dependencies": {
"ffi-napi": "2.4.x"
"ffi-napi": "4.0.3"
}
}
2 changes: 1 addition & 1 deletion impls/livescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"dependencies": {
"ffi-napi": "2.4.x",
"ffi-napi": "4.0.3",
"prelude-ls": "^1.1.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions impls/ts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -19,6 +19,6 @@ WORKDIR /mal
# Specific implementation requirements
##########################################################

RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libreadline-dev nodejs npm
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install g++ libreadline-dev nodejs npm

ENV NPM_CONFIG_CACHE /mal/.npm
2 changes: 1 addition & 1 deletion impls/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:stepA": "cd .. && make 'test^ts^stepA'"
},
"dependencies": {
"ffi-napi": "^2.4.0"
"ffi-napi": "^4.0.3"
},
"devDependencies": {
"@types/ffi-napi": "4.0.4",
Expand Down
2 changes: 1 addition & 1 deletion impls/wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Make a Lisp (mal) language implemented in WebAssembly",
"dependencies": {
"@kanaka/wamp": "1.0.9",
"ffi-napi": "^2.4.4",
"ffi-napi": "^4.0.3",
"text-encoding": "0.6.4"
}
}

0 comments on commit 1dd394a

Please sign in to comment.