「src: add initial support for single executable applications by RaisinTen · Pull Request #45038 · nodejs/node · GitHub」

Compile a JavaScript file into a single executable application. $ cat index.js console.log('Hello, world!'); $ node --compile=cli index.js $ ./cli Hello, world! Signed-off-by: Darshan Sen raisinten@gmail.com  It was decided in the Node.js Collaborator Summit that we want to come up with an MVP that is capable of compiling a single JavaScript file into a single executable application. More features will be added incrementally. Meeting notes for reference: https://github.com/nodejs/single-executable/blob/c7008ecd67a395c7c902d602f2f116e2c5744bc9/meetings/2022-10-01.md  TODOs:   Fix compilation warning that are turning into errors  The added test takes around ~39s on my Intel macOS, so it would probably timeout on CI, so find a way to fix that  cc @nodejs/single-executable

Compile a JavaScript file into a single executable application. $ cat index.js console.log('Hello, world!'); $ node --compile=cli index.js $ ./cli Hello, world! Signed-off-by: Darshan Sen raisinten@gmail.com It was decided in the Node.js Collaborator Summit that we want to come up with an MVP that is capable of compiling a single JavaScript file into a single executable application. More features will be added incrementally. Meeting notes for reference: https://github.com/nodejs/single-executable/blob/c7008ecd67a395c7c902d602f2f116e2c5744bc9/meetings/2022-10-01.md TODOs: Fix compilation warning that are turning into errors The added test takes around ~39s on my Intel macOS, so it would probably timeout on CI, so find a way to fix that cc @nodejs/single-executable

github.com

Webページ

コンテンツ文字数:0 文字

見出し数(H2/H3タグ):0 個

閲覧数:80 件

2022-10-18 08:10:23

オリジナルページを開く