-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodejs.linux.nexss.config.js
More file actions
39 lines (33 loc) · 960 Bytes
/
Copy pathnodejs.linux.nexss.config.js
File metadata and controls
39 lines (33 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
let languageConfig = Object.assign({}, require("./nodejs.win32.nexss.config"));
let sudo = process.sudo;
languageConfig.compilers = {
node: {
install: `${sudo}apt install nodejs`, // but this is installed already.
command: "node",
args: "<file>",
help: ``,
},
bun: {
install: "curl -fsSL https://bun.sh/install | bash",
command: "bun",
args: "run <file>",
help: ``,
},
deno: {
install:
process.replacePMByDistro(`${sudo}apt-get install unzip`) +
`
curl -fsSL https://deno.land/x/install/install.sh | sh`,
command: "deno",
args: "run <file>",
help: ``,
templates: "templates_deno",
},
};
const distro = process.distro;
// This function just replace all apt-get,apt to the right distribution pkg installer.
languageConfig.compilers.node.install = process.replacePMByDistro(
languageConfig.compilers.node.install
);
languageConfig.dist = distro;
module.exports = languageConfig;