Skip to content

Commit

Permalink
Merge pull request #20 from purescript-node/compiler/0.12
Browse files Browse the repository at this point in the history
Compiler/0.12
  • Loading branch information
kritzcreek authored Jun 2, 2018
2 parents 5c09f73 + 3271efc commit 97fd9c0
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 116 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
language: node_js
dist: trusty
sudo: required
node_js: 6
node_js: stable
env:
- PATH=$HOME/purescript:$PATH
install:
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
- npm install -g bower
- npm install
script:
Expand Down
20 changes: 10 additions & 10 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
"package.json"
],
"dependencies": {
"purescript-exceptions": "^3.0.0",
"purescript-foreign": "^4.0.0",
"purescript-functions": "^3.0.0",
"purescript-maps": "^3.0.0",
"purescript-node-fs": "^4.0.0",
"purescript-node-streams": "^3.0.0",
"purescript-nullable": "^3.0.0",
"purescript-posix-types": "^3.0.0",
"purescript-unsafe-coerce": "^3.0.0"
"purescript-exceptions": "^4.0.0",
"purescript-foreign": "^5.0.0",
"purescript-functions": "^4.0.0",
"purescript-node-fs": "^5.0.0",
"purescript-node-streams": "^4.0.0",
"purescript-nullable": "^4.0.0",
"purescript-posix-types": "^4.0.0",
"purescript-unsafe-coerce": "^4.0.0",
"purescript-foreign-object": "^1.0.0"
},
"devDependencies": {
"purescript-console": "^3.0.0"
"purescript-console": "^4.1.0"
}
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"build": "eslint src && pulp build -- --censor-lib --strict"
},
"devDependencies": {
"eslint": "^3.17.1",
"pulp": "^11.0.0",
"purescript-psa": "^0.5.0",
"purescript": "^0.11.1",
"rimraf": "^2.5.4"
"eslint": "^4.19.1",
"pulp": "^12.2.0",
"purescript-psa": "^0.6.0",
"rimraf": "^2.6.2"
}
}
21 changes: 20 additions & 1 deletion src/Node/ChildProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports.execImpl = function execImpl (command) {
};
};


exports.execFileImpl = function execImpl (command) {
return function (args) {
return function (opts) {
Expand All @@ -45,6 +46,24 @@ exports.execFileImpl = function execImpl (command) {
};
};

exports.execSyncImpl = function execSyncImpl (command) {
return function (opts) {
return function () {
return require('child_process').execSync(command, opts);
};
};
};

exports.execFileSyncImpl = function execFileSyncImpl (command) {
return function (args) {
return function (opts) {
return function () {
return require('child_process').execFileSync(command, args, opts);
};
};
};
};

exports.fork = function fork (cmd) {
return function (args) {
return function () {
Expand All @@ -69,7 +88,7 @@ exports.mkOnClose = function mkOnClose (mkChildExit) {
return function onClose (cp) {
return function (cb) {
return function () {
cp.on('exit', function (code, signal) {
cp.on('close', function (code, signal) {
cb(mkChildExit(code)(signal))();
});
};
Expand Down
Loading

0 comments on commit 97fd9c0

Please sign in to comment.