Socket
Socket
Sign inDemoInstall

appium-gulp-plugins

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-gulp-plugins - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

.jscsrc

34

gulpfile.js

@@ -0,4 +1,8 @@

"use strict";
var gulp = require('gulp'),
Q = require('q'),
del = Q.denodeify(require('del')),
jshint = require('gulp-jshint'),
jscs = require('gulp-jscs'),
Transpiler = require('./index').Transpiler,

@@ -9,3 +13,21 @@ mocha = require('gulp-mocha'),

gulp.task('del-build', function (cb) {
gulp.task('jscs', function () {
return gulp
.src(['*.js', 'lib/**/*.js', 'test/*.js'])
.pipe(jscs())
.on('error', spawnWatcher.handleError);
});
gulp.task('jshint', function () {
return gulp
.src(['*.js', 'lib/**/*.js', 'test/**/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('fail'))
.on('error', spawnWatcher.handleError);
});
gulp.task('lint',['jshint','jscs']);
gulp.task('del-build', function () {
return del(['build']);

@@ -36,3 +58,3 @@ });

gulp.task('test', function() {
gulp.task('test', function () {
return gulp.src(['test/**/*-specs.js', '!test/fixtures'])

@@ -43,5 +65,9 @@ .pipe(mocha())

gulp.task('once', function () {
return runSequence('lint', 'test');
});
spawnWatcher.clear(false);
spawnWatcher.configure('watch', ['lib/**/*.js','test/**/*.js','!test/fixtures'], function() {
return runSequence('test');
spawnWatcher.configure('watch', ['lib/**/*.js','test/**/*.js','!test/fixtures'], function () {
return runSequence('lint', 'test');
});

@@ -48,0 +74,0 @@

22

lib/spawn-watcher.js

@@ -22,3 +22,3 @@ "use strict";

});
}
};

@@ -34,3 +34,3 @@ var notifyOK = notify.bind(null,'Build success!', 'All Good!');

clear: function(_clearTerminal) {
clear: function (_clearTerminal) {
clearTerminal = _clearTerminal;

@@ -62,24 +62,24 @@ return this;

if(!isRespawn) {
Q.delay(500).then(function() {
if (!isRespawn) {
Q.delay(500).then(function () {
watchFn().then(notifyOK);
});
}
})
});
gulp.task(taskName, function() {
gulp.task(taskName, function () {
if (clearTerminal) clear();
var spawnWatch = function(respawn) {
var spawnWatch = function (respawn) {
var args = [subtaskName];
if(process.argv.indexOf('--no-notif') >= 0) args.push('--no-notif');
if (process.argv.indexOf('--no-notif') >= 0) args.push('--no-notif');
if (respawn) args.push('--respawn');
var proc = spawn('./node_modules/.bin/gulp', args, {stdio: 'inherit'});
proc.on('close', function (code) {
spawnWatch(code !== 0)
spawnWatch(code !== 0);
});
}
};
spawnWatch();
})
});
}
};

@@ -22,9 +22,9 @@ "use strict";

var renameEsX = function() {
var renameEsX = function () {
return rename(function (path) {
path.basename = path.basename.replace(/\.es[67]$/, '');
})
}
});
};
module.exports = function() {
module.exports = function () {
this.traceurOpts = _.clone(TRACEUR_OPTS);

@@ -38,3 +38,3 @@ this.header = HEADER;

}.bind(this);
}
};
{
"name": "appium-gulp-plugins",
"version": "0.0.7",
"description": "Custom gulp plugins to be used accross all appium modules",
"main": "index.js",
"scripts": {
"test": "gulp test"
},
"keywords": [
"appium"
],
"author": "appium contributors",
"license": "Apache2",
"devDependencies": {
"appium-transpile-runtime": "0.0.2",
"chai": "~1.10.0",
"del": "~1.1.0",
"gulp": "~3.8.10",
"gulp-mocha": "~2.0.0",
"mocha": "~2.0.1",
"mochawait": "~1.1.0",
"run-sequence": "~1.0.2",
"vargs": "~0.1.0"
"version": "0.0.8",
"author": "appium",
"license": "Apache License 2.0",
"repository": {
"type": "git",
"url": "https://github.com/appium/appium-gulp-plugins.git"
},
"bugs": {
"url": "https://github.com/appium/appium-gulp-plugins/issues"
},
"engines": [
"node"
],
"main": "./index.js",
"bin": {},
"directories": {
"lib": "lib"
},
"dependencies": {
"clear": "~0.0.1",
"gulp-rename": "~1.2.0",
"gulp-replace": "~0.5.0",
"gulp-traceur": "~0.14.1",
"clear": "^0.0.1",
"gulp-rename": "^1.2.0",
"gulp-replace": "^0.5.0",
"gulp-traceur": "~0.15",
"gulp-util": "^3.0.1",

@@ -34,7 +34,22 @@ "lodash": "^2.4.1",

"node-notifier": "^4.0.3",
"q": "~1.1.2"
"q": "^1.1.2"
},
"directories": {
"test": "test"
"scripts": {
"test": "./node_modules/.bin/gulp once",
"watch": "./node_modules/.bin/gulp"
},
"devDependencies": {
"appium-transpile-runtime": "0.0.2",
"chai": "^1.10.0",
"del": "^1.1.0",
"gulp": "^3.8.10",
"gulp-jscs": "^1.3.1",
"gulp-jshint": "https://github.com/appium/gulp-jshint/archive/master.tar.gz",
"gulp-mocha": "^2.0.0",
"jshint-stylish": "^1.0.0",
"mocha": "^2.0.1",
"mochawait": "^1.1.0",
"run-sequence": "^1.0.2",
"vargs": "^0.1.0"
}
}

@@ -0,1 +1,3 @@

"use strict";
var Q = require('q'),

@@ -36,3 +38,3 @@ Args = require("vargs").Constructor,

}).then(function () {
return openFile('build/lib/a.js', 'r')
return openFile('build/lib/a.js', 'r');
}).then(function (fd) {

@@ -43,5 +45,5 @@ return closeFile(fd);

describe('check transpiled code', function() {
describe('check transpiled code', function () {
before(function() {
before(function () {
return exec('./node_modules/.bin/gulp transpile-es7-fixtures');

@@ -56,3 +58,3 @@ });

stdout.should.include('hello world!');
})
});
});

@@ -66,3 +68,3 @@

stdout.should.include('1 passing');
})
});
});

@@ -78,3 +80,3 @@

output.should.include('throw.es7.js:7');
})
});
});

@@ -90,3 +92,3 @@

output.should.include('a-throw-specs.es7.js:13');
})
});
});

@@ -100,3 +102,3 @@

stdout.should.include('Finished');
})
});
});

@@ -111,6 +113,6 @@

output.should.include('.es7.js');
})
});
});
})
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc