node-simctl
Advanced tools
Comparing version 1.0.10 to 2.0.0
"use strict"; | ||
var gulp = require('gulp') | ||
, gutil = require('gulp-util') | ||
, merge = require('merge-stream') | ||
, sourcemaps = require('gulp-sourcemaps') | ||
, traceur = require('gulp-traceur') | ||
, clear = require('clear') | ||
, Q = require('q') | ||
, runSequence = Q.denodeify(require('run-sequence')); | ||
var gulp = require('gulp'), | ||
boilerplate = require('appium-gulp-plugins').boilerplate.use(gulp); | ||
var argv = require('yargs') | ||
.count('prod') | ||
.argv; | ||
var exitOnError = false; | ||
function handleError(err) { | ||
var displayErr = gutil.colors.red(err); | ||
gutil.log(displayErr); | ||
if (exitOnError) process.exit(1); | ||
} | ||
var traceurOpts = { | ||
asyncFunctions: true, | ||
blockBinding: true, | ||
modules: 'commonjs', | ||
annotations: true, | ||
arrayComprehension: true, | ||
sourceMaps: true, | ||
types: true | ||
}; | ||
var getTraceurStream = function (src, dest) { | ||
return gulp.src(src) | ||
.pipe(sourcemaps.init()) | ||
.pipe(traceur(traceurOpts)) | ||
.pipe(sourcemaps.write()) | ||
.on('error', handleError) | ||
.pipe(gulp.dest(dest)); | ||
}; | ||
var transpile = function () { | ||
var lib = getTraceurStream('lib/es6/**/*.js', 'lib/es5'); | ||
var test = getTraceurStream('test/es6/**/*.js', 'test/es5'); | ||
return merge(lib, test); | ||
}; | ||
gulp.task('transpile', transpile); | ||
gulp.task('kill-gulp', function() { | ||
process.exit(0); | ||
}); | ||
gulp.task('clear-terminal', function() { | ||
clear(); | ||
return Q.delay(100); | ||
}) | ||
// gulp error handling is not very well geared toward watch | ||
// so we have to do that to be safe. | ||
// that should not be needed in gulp 4.0 | ||
gulp.task('watch-build', function() { | ||
return runSequence('clear-terminal', ['transpile']); | ||
}); | ||
gulp.task('watch', function () { | ||
exitOnError = true; | ||
gulp.watch(['lib/es6/**/*.js', 'test/es6/**/*.js'], ['watch-build']); | ||
gulp.watch('gulpfile.js', ['clear-terminal','kill-gulp']); | ||
}); | ||
gulp.task('spawn-watch', ['clear-terminal'], function() { | ||
var spawnWatch = function() { | ||
var proc = require('child_process').spawn('./node_modules/.bin/gulp', ['watch'], {stdio: 'inherit'}); | ||
proc.on('close', function (code) { | ||
spawnWatch() | ||
}); | ||
} | ||
spawnWatch(); | ||
}) | ||
// default target is watch | ||
gulp.task('default', ['spawn-watch']); | ||
boilerplate({build: "node-simctl", jscs: false, jshint: false}); |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "1.0.10", | ||
"version": "2.0.0", | ||
"author": "https://github.com/appium", | ||
@@ -28,33 +28,27 @@ "licenses": [ | ||
], | ||
"main": "./lib/es5/simctl.js", | ||
"main": "./build/lib/simctl.js", | ||
"bin": {}, | ||
"directories": { | ||
"lib": "./lib/es6" | ||
"lib": "./lib" | ||
}, | ||
"dependencies": { | ||
"traceur": "0.0.74", | ||
"asyncbox": "^2.0.2", | ||
"babel-runtime": "^5.0.12", | ||
"es6-mapify": "^1.0.0", | ||
"npmlog": "^1.2.0", | ||
"q": "^1.0.1", | ||
"source-map-support": "^0.2.8", | ||
"npmlog": "^0.1.1", | ||
"es6-mapify": "^1.0.0", | ||
"asyncbox": "^1.0.3" | ||
"source-map-support": "^0.2.8" | ||
}, | ||
"scripts": { | ||
"test": "$(npm bin)/mocha -t 15000 test/es5/specs.js" | ||
"prepublish": "$(npm bin)/gulp prepublish", | ||
"test": "$(npm bin)/gulp once", | ||
"watch": "$(npm bin)/gulp" | ||
}, | ||
"devDependencies": { | ||
"clear": "0.0.1", | ||
"appium-gulp-plugins": "^1.0.3", | ||
"gulp": "^3.8.11", | ||
"gulp-filter": "^1.0.2", | ||
"gulp-sourcemaps": "^1.2.8", | ||
"gulp-traceur": "^0.14.1", | ||
"gulp-util": "^3.0.1", | ||
"lodash": "^2.4.1", | ||
"merge-stream": "^0.1.6", | ||
"mocha": "^2.0.1", | ||
"mochawait": "^1.1.0", | ||
"run-sequence": "^1.0.2", | ||
"should": "^4.1.0", | ||
"yargs": "^1.3.3" | ||
"lodash": "^3.6.0", | ||
"mochawait": "^2.0.0", | ||
"should": "^5.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
5
3
43930
533
+ Addedbabel-runtime@^5.0.12
+ Added@types/bluebird@3.5.42(transitive)
+ Addedare-we-there-yet@1.0.6(transitive)
+ Addedasyncbox@2.9.4(transitive)
+ Addedbabel-runtime@5.8.38(transitive)
+ Addedbluebird@3.7.2(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addedgauge@1.2.7(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash.pad@4.5.1(transitive)
+ Addedlodash.padend@4.6.1(transitive)
+ Addedlodash.padstart@4.6.1(transitive)
+ Addednpmlog@1.2.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-support@0.5.21(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedtraceur@0.0.74
- Removedast-types@0.5.7(transitive)
- Removedasyncbox@1.0.9(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcls@0.1.5(transitive)
- Removedcommander@2.20.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddepd@1.0.1(transitive)
- Removedes6-mapify@1.0.2(transitive)
- Removedesprima-fb@7001.1.0-dev-harmony-fb(transitive)
- Removedglob@4.5.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedjsesc@0.5.0(transitive)
- Removedminimatch@2.0.10(transitive)
- Removednpmlog@0.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedprivate@0.1.8(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)
- Removedrsvp@3.6.2(transitive)
- Removedsemver@2.3.2(transitive)
- Removedtraceur@0.0.74(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedasyncbox@^2.0.2
Updatednpmlog@^1.2.0