This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
var nexe = require('nexe');
|
||||
|
||||
nexe.compile(
|
||||
{
|
||||
input: "./index.js",
|
||||
output: "./out.exe",
|
||||
nodeVersion: "latest",
|
||||
nodeTempDir: "",
|
||||
python: "C:\\Python27\\python.exe",
|
||||
flags: true
|
||||
},
|
||||
function (err) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -0,0 +1 @@
|
||||
{ "head": "Success!" }
|
||||
@@ -0,0 +1,7 @@
|
||||
if(false) {
|
||||
require('./not-found-file.json');
|
||||
}
|
||||
|
||||
var out = require('./found-file.json');
|
||||
|
||||
console.log(out.head);
|
||||
@@ -0,0 +1,2 @@
|
||||
all:
|
||||
nexe -i ./ -o ./hello-world.nex
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"main": "./index.js",
|
||||
"dependencies": {
|
||||
"nexe": "*"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user