Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-simctl

Package Overview
Dependencies
Maintainers
2
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-simctl - npm Package Compare versions

Comparing version 1.0.10 to 2.0.0

build/lib/simctl.js

82

gulpfile.js
"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

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