drop lodash dependency

This commit is contained in:
Joao Moreno
2016-07-28 09:07:22 +02:00
parent d546a4a6ef
commit 6ef86d5f85
2 changed files with 5 additions and 8 deletions

View File

@@ -9,7 +9,6 @@ const gulp = require('gulp');
const path = require('path');
const assert = require('assert');
const cp = require('child_process');
const _ = require('lodash');
const util = require('./lib/util');
const pkg = require('../package.json');
const product = require('../product.json');
@@ -23,13 +22,12 @@ function packageInnoSetup(iss, options, cb) {
options = options || {};
const definitions = options.definitions || {};
const defs = _(definitions)
.forEach((value, key) => assert(typeof value === 'string', `Missing value for '${ key }' in Inno Setup package step`))
.map((value, key) => `/d${ key }=${ value }`)
.value();
const keys = Object.keys(definitions);
const args = [iss]
.concat(defs);
keys.forEach(key => assert(typeof definitions[key] === 'string', `Missing value for '${ key }' in Inno Setup package step`));
const defs = keys.map(key => `/d${ key }=${ definitions[key] }`);
const args = [iss].concat(defs);
cp.spawn(innoSetupPath, args, { stdio: 'inherit' })
.on('error', cb)

View File

@@ -71,7 +71,6 @@
"istanbul": "^0.3.17",
"jsdom-no-contextify": "^3.1.0",
"lazy.js": "^0.4.2",
"lodash": "^4.14.0",
"mime": "1.2.11",
"minimatch": "^2.0.10",
"mkdirp": "^0.5.0",