mirror of
https://github.com/kou029w/_.git
synced 2025-02-04 16:18:41 +00:00
Compare commits
4 commits
fc42b614d1
...
2c1f06277d
Author | SHA1 | Date | |
---|---|---|---|
|
2c1f06277d | ||
5f09fbedc1 | |||
574b7a2906 | |||
|
4c9d891503 |
4 changed files with 40 additions and 6 deletions
29
node-sea/README.md
Normal file
29
node-sea/README.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Node.js Single Executable Application
|
||||||
|
|
||||||
|
```
|
||||||
|
$ node --experimental-sea-config sea-config.json
|
||||||
|
$ cp "$(which node)" hello
|
||||||
|
$ npx postject hello NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
|
||||||
|
$ ./hello
|
||||||
|
Hello, undefined!
|
||||||
|
(node:918684) ExperimentalWarning: Single executable application is an experimental feature and might change at any time
|
||||||
|
(Use `hello --trace-warnings ...` to show where the warning was created)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Environment
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npx envinfo --system --binaries
|
||||||
|
|
||||||
|
System:
|
||||||
|
OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
|
||||||
|
CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1365U
|
||||||
|
Memory: 19.25 GB / 31.00 GB
|
||||||
|
Container: Yes
|
||||||
|
Shell: 5.1.16 - /bin/bash
|
||||||
|
Binaries:
|
||||||
|
Node: 20.5.1 - /usr/bin/node
|
||||||
|
Yarn: 1.22.19 - ~/.local/bin/yarn
|
||||||
|
npm: 9.8.0 - /usr/bin/npm
|
||||||
|
pnpm: 8.6.2 - ~/.local/bin/pnpm
|
||||||
|
```
|
1
node-sea/hello.js
Normal file
1
node-sea/hello.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log(`Hello, ${process.argv[2]}!`);
|
4
node-sea/sea-config.json
Normal file
4
node-sea/sea-config.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"main": "hello.js",
|
||||||
|
"output": "sea-prep.blob"
|
||||||
|
}
|
12
npm-run-script/package-lock.json
generated
12
npm-run-script/package-lock.json
generated
|
@ -421,9 +421,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minimatch": {
|
"node_modules/minimatch": {
|
||||||
"version": "3.0.4",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||||
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brace-expansion": "^1.1.7"
|
"brace-expansion": "^1.1.7"
|
||||||
|
@ -1088,9 +1088,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"minimatch": {
|
"minimatch": {
|
||||||
"version": "3.0.4",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||||
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"brace-expansion": "^1.1.7"
|
"brace-expansion": "^1.1.7"
|
||||||
|
|
Loading…
Add table
Reference in a new issue