Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
Showing with 15 additions and 7 deletions.
  1. +1 −1 Jakefile
  2. +3 −2 lib/nunit.js
  3. +5 −0 lib/paprika.js
  4. +2 −1 lib/zip.js
  5. +1 −1 package.json
  6. +2 −1 spec/nunit.spec.js
  7. +1 −1 spec/zip.spec.js
View
2 Jakefile
@@ -197,7 +197,7 @@ task('default', ['lint', 'test', 'combine:test']);
namespace('nunit', function () {
desc('Download NUnit binaries for testing.');
task('install', function () {
- if (path.existsSync('nunit')) {
+ if (fs.existsSync('nunit')) {
console.log('NUnit already installed');
return complete();
}
View
5 lib/nunit.js
@@ -20,6 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
var run = require('./run'),
path = require('path'),
+ fs = require('fs'),
series = require('./flow').series,
applyDefaults = require('./options').applyDefaults,
validateParameters = require('./options').validateParameters,
@@ -62,10 +63,10 @@ var nunit = module.exports = function (testDlls, opts, callback) {
var nunitPath;
var verifyFrameworkExists = [
- function (cb) { path.exists(options.nunitDir, getExistsCallback(cb)); },
+ function (cb) { fs.exists(options.nunitDir, getExistsCallback(cb)); },
function (cb) {
nunitPath = path.join(options.nunitDir, nunitExe);
- path.exists(nunitPath, getExistsCallback(cb));
+ fs.exists(nunitPath, getExistsCallback(cb));
}
];
series(verifyFrameworkExists, runTests);
View
5 lib/paprika.js
@@ -1,3 +1,8 @@
+var fs = require('fs'),
+ path = require('path');
+if (!fs.exists) { fs.exists = path.exists; }
+if (!fs.existsSync) { fs.existsSync = path.existsSync; }
+
exports.msbuild = require('./msbuild');
exports.nunit = require('./nunit');
exports.zip = require('./zip');
View
3 lib/zip.js
@@ -20,6 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
var childProcess = require('child_process'),
path = require('path'),
+ fs = require('fs'),
log = require('./log');
module.exports = function (args, cb, mockSpawn) {
@@ -39,7 +40,7 @@ function findExecutable(callback) {
var zipexec;
if (process.platform === 'win32') {
var winpath = getWinPath();
- path.exists(winpath, function (exists) {
+ fs.exists(winpath, function (exists) {
callback(exists ? winpath : 'zip');
});
} else {
View
2 package.json
@@ -2,7 +2,7 @@
"name": "paprika",
"description": "Sprinkle JavaScript tasks on your .NET build",
"keywords": [ "build", "cli", ".net", "msbuild", "mono" ],
- "version": "0.5.2-alpha",
+ "version": "0.5.3-alpha",
"author": "Mario Pareja <pareja.mario@gmail.com> (http://mariopareja.com)",
"homepage": "http://mpareja.github.com/paprika",
"engines": { "node": "*" },
View
3 spec/nunit.spec.js
@@ -1,5 +1,6 @@
var nunit = require(process.env.paprika || '..').nunit,
path = require('path'),
+ fs = require('fs'),
nunitDir = path.join('nunit', 'bin');
describe('nunit', function () {
@@ -17,7 +18,7 @@ describe('nunit', function () {
asyncSpecWait();
});
- if (!path.existsSync(nunitDir)) {
+ if (!fs.existsSync(nunitDir)) {
// disable remaining specs
console.log('!!! SKIPPING NUNIT TESTS !!!');
return;
View
2 spec/zip.spec.js
@@ -118,7 +118,7 @@ describe('zip', function () {
describe('zip integration test', function () {
var target = 'ziptest.zip'
, assertExists = function() {
- path.exists(target, function (exists) {
+ fs.exists(target, function (exists) {
expect(exists).toBeTruthy();
if (exists) {
fs.unlinkSync(target);

No commit comments for this range

Something went wrong with that request. Please try again.