Merge branch 'master' of github.com:crcn/nexe
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
## This repository is not actively maintained.
|
||||
|
||||
### Nexe
|
||||
|
||||
Nexe is a command-line utility that compiles your Node.js application into a single executable file.
|
||||
@@ -61,7 +63,8 @@ var nexe = require('nexe');
|
||||
nexe.compile({
|
||||
input: 'input.js',
|
||||
output: 'path/to/bin',
|
||||
runtime: '0.8.15',
|
||||
nodeVersion: '0.8.15',
|
||||
nodeTempDir: __dirname
|
||||
flags: true
|
||||
}, function(err) {
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
var path = require('path');
|
||||
|
||||
var cli = require('optimist').
|
||||
var cli = require('yargs').
|
||||
usage('Usage: $0 -i [sources] -o [binary]').
|
||||
options('i', {
|
||||
demand: true,
|
||||
|
||||
@@ -54,6 +54,8 @@ exports.compile = function (options, complete) {
|
||||
bundlePath = path.join(nodeCompiler.dir, "lib", "nexe.js");
|
||||
_log("bundle -> %s", bundlePath);
|
||||
|
||||
//Remove all non-ascii code from sources
|
||||
source = source.replace(/[^\x00-\x7F]/g, "");
|
||||
// same path as all the other JS files
|
||||
fs.writeFile(bundlePath, source, next);
|
||||
},
|
||||
|
||||
+2
-2
@@ -16,7 +16,6 @@
|
||||
"mkdirp": "~0.3.5",
|
||||
"module-deps": "^3.5.4",
|
||||
"ncp": "~0.2.7",
|
||||
"optimist": "~0.3.7",
|
||||
"outcome": "0.0.18",
|
||||
"progress": "~1.1.3",
|
||||
"request": "~2.12.0",
|
||||
@@ -24,7 +23,8 @@
|
||||
"step": "0.0.x",
|
||||
"tar.gz": "0.1.1",
|
||||
"through": "^2.3.4",
|
||||
"uglify-js": "^2.4.15"
|
||||
"uglify-js": "^2.4.15",
|
||||
"yargs": "~1.3.1"
|
||||
},
|
||||
"preferGlobal": "true",
|
||||
"bin": {
|
||||
|
||||
Reference in New Issue
Block a user