refactor: replace "async" with "neo-async"

The main reason is that neo-async takes a lot less space due to the missing lodash-dependency.
The other is speed.

closes #1431
This commit is contained in:
Nils Knappmeier
2019-02-16 22:15:37 +01:00
parent b92589a3b0
commit 048f2ce7d2
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
var async = require('async'),
var async = require('neo-async'),
fs = require('fs'),
zlib = require('zlib');
+1 -1
View File
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import Async from 'async';
import Async from 'neo-async';
import fs from 'fs';
import * as Handlebars from './handlebars';
import {basename} from 'path';
+1 -1
View File
@@ -21,7 +21,7 @@
"node": ">=0.4.7"
},
"dependencies": {
"async": "^2.5.0",
"neo-async": "^2.6.0",
"optimist": "^0.6.1",
"source-map": "^0.6.1"
},
+1 -1
View File
@@ -1,5 +1,5 @@
var _ = require('underscore'),
async = require('async'),
async = require('neo-async'),
metrics = require('../bench');
module.exports = function(grunt) {
+2 -2
View File
@@ -1,5 +1,5 @@
var _ = require('underscore'),
async = require('async'),
async = require('neo-async'),
AWS = require('aws-sdk'),
git = require('./util/git'),
semver = require('semver');
@@ -66,7 +66,7 @@ module.exports = function(grunt) {
var s3 = new AWS.S3(),
bucket = process.env.S3_BUCKET_NAME;
async.forEach(_.keys(files), function(file, callback) {
async.each(_.keys(files), function(file, callback) {
var params = {Bucket: bucket, Key: file, Body: grunt.file.read(files[file])};
s3.putObject(params, function(err) {
if (err) {
+1 -1
View File
@@ -1,4 +1,4 @@
var async = require('async'),
var async = require('neo-async'),
git = require('./util/git'),
semver = require('semver');