Remove one .bat file an add an optional argument to jake run (see README.md).
This commit is contained in:
Родитель
8f33b74011
Коммит
4177e7d40d
5
Jakefile
5
Jakefile
|
@ -267,14 +267,15 @@ task('test', [ 'nodeclient/client.js', 'default' ], { async: true }, function ()
|
|||
jake.exec([ 'node nodeclient/client.js buildtest' ], {}, function() { complete(); });
|
||||
});
|
||||
|
||||
task('run', [ 'default' ], { async: true }, function () {
|
||||
task('run', [ 'default' ], { async: true }, function (port) {
|
||||
port = port || 80;
|
||||
// XXX fix this too
|
||||
console.log("[F] copying browser/browser.js to browser.js");
|
||||
if (fs.exists("browser.js"))
|
||||
fs.unlink("browser.js");
|
||||
fs.writeFileSync("browser.js", fs.readFileSync("browser/browser.js"));
|
||||
jake.exec(
|
||||
[ 'node noderunner 80 silent ' ],
|
||||
[ 'node noderunner '+port+' silent ' ],
|
||||
{ printStdout: true, printStderr: true },
|
||||
function() { complete(); }
|
||||
);
|
||||
|
|
|
@ -72,10 +72,11 @@ Build:
|
|||
After building, you can run TouchDevelop from a local node server by running:
|
||||
|
||||
jake run
|
||||
# or, if port 80 is already used on your machine
|
||||
jake run[8080]
|
||||
|
||||
## Tests
|
||||
|
||||
|
||||
jake test
|
||||
|
||||
## Documentation
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
@echo off
|
||||
setlocal
|
||||
attrib -R browser.js
|
||||
attrib -R main.js
|
||||
cd build
|
||||
"c:\Program Files\nodejs\node.exe" boot.js %*
|
|
@ -1 +0,0 @@
|
|||
node noderunner.js 15669 slave
|
Загрузка…
Ссылка в новой задаче