Skip to content

Commit

Permalink
[Feat] Remove bluebird
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v2a committed Jan 3, 2019
1 parent 05b204d commit 2535820
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion Commands/laravelConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* global app,appdir */
/* eslint global-require: 0 */

var Promise = require('bluebird');
var shelljs = require('shelljs');
var utils = require('../lib/utilsCmd');
var fs = require('fs-promise');
Expand Down
1 change: 0 additions & 1 deletion lib/Mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* global appdir,app */
// var console = app.logger(config('core.log.prefix') + ':mail');

var Promise = require('bluebird');
var ect = require('ect');
var defaults = require('lodash/defaults');
var nodemailer = require('nodemailer');
Expand Down
1 change: 0 additions & 1 deletion lib/db-models/lib/Model-export.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';
/* global app */
/* eslint new-cap: 0*/
var Promise = require('bluebird');
var console = app.logger(app.config('core.log.prefix') + ':model-export');
var _ = require('lodash');
_.mixin(require('lodash-inflection'));
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"license": "MIT",
"dependencies": {
"bee-queue": "^0.3.0",
"bluebird": "~3.5.3",
"colors": "~1.3.3",
"debug-logger": "^0.4.1",
"diff": "~3.5.0",
Expand Down
7 changes: 3 additions & 4 deletions test/Commands/testLaravelConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
var rewire = require('rewire');
var each = require('lodash/each');
var intercept = require('intercept-stdout');
var promise = require('bluebird');
var BddStdin = require('../utils/bdd-stdin');
var shell = require('../../lib/shell');
var fs = require('fs-promise');
Expand Down Expand Up @@ -41,10 +40,10 @@ module.exports = {
process.argv = ['node', appdir + '/artisan', 'laravel:config'];
var fsMock = {
writeFile: function writeFile() {
return promise.reject(new Error('file not writable'));
return Promise.reject(new Error('file not writable'));
},
mkdir: function mkdir() {
return promise.resolve();
return Promise.resolve();
}
};
laravelConfig.__set__({
Expand Down Expand Up @@ -91,7 +90,7 @@ module.exports = {
var fsMock = clone(fs);
fsMock.writeFile = function writeFile(file, content) {
if ((/Config\/app\.js$/).test(file)) {
return promise.reject(new Error('file not writable'));
return Promise.reject(new Error('file not writable'));
}
return fs.writeFile(file, content);
};
Expand Down

0 comments on commit 2535820

Please sign in to comment.