appium-gulp-plugins
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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,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'); | ||
}) | ||
}); | ||
}); | ||
}) | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
26994
19
301
0
6
12
+ Addedglob@4.3.5(transitive)
+ Addedgulp-rename@1.4.0(transitive)
+ Addedgulp-traceur@0.15.0(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedq@1.5.1(transitive)
+ Addedtraceur@0.0.79(transitive)
- Removedast-types@0.5.7(transitive)
- Removedcls@0.1.5(transitive)
- Removeddepd@1.0.1(transitive)
- Removedesprima-fb@7001.1.0-dev-harmony-fb(transitive)
- Removedglob@4.5.3(transitive)
- Removedgulp-rename@1.2.3(transitive)
- Removedgulp-traceur@0.14.1(transitive)
- Removedjsesc@0.5.0(transitive)
- Removedobject-assign@1.0.0(transitive)
- Removedprivate@0.1.8(transitive)
- Removedq@1.1.2(transitive)
- Removedrecast@0.8.8(transitive)
- Removedregenerate@1.4.2(transitive)
- Removedregexpu@0.3.0(transitive)
- Removedregjsgen@0.2.0(transitive)
- Removedregjsparser@0.1.5(transitive)
- Removedtraceur@0.0.74(transitive)
Updatedclear@^0.0.1
Updatedgulp-rename@^1.2.0
Updatedgulp-replace@^0.5.0
Updatedgulp-traceur@~0.15
Updatedq@^1.1.2