mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
fix eslint issues
This commit is contained in:
parent
6098d3cca6
commit
9211279f8e
@ -1,3 +1,4 @@
|
|||||||
|
/*eslint no-unused-vars: off*/
|
||||||
let Web3 = require('web3');
|
let Web3 = require('web3');
|
||||||
let web3;
|
let web3;
|
||||||
let __mainContext;
|
let __mainContext;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
let colors = require('colors');
|
require('colors');
|
||||||
|
|
||||||
// TODO: just logFunction changes, probably doesn't need a whole new module just
|
// TODO: just logFunction changes, probably doesn't need a whole new module just
|
||||||
// for this
|
// for this
|
||||||
|
@ -32,7 +32,7 @@ class Npm {
|
|||||||
|
|
||||||
var download = function(url, dest, cb) {
|
var download = function(url, dest, cb) {
|
||||||
var file = o_fs.createWriteStream(dest);
|
var file = o_fs.createWriteStream(dest);
|
||||||
var _request = (url.substring(0,5) === 'https' ? https : http).get(url, function(response) {
|
(url.substring(0,5) === 'https' ? https : http).get(url, function(response) {
|
||||||
response.pipe(file);
|
response.pipe(file);
|
||||||
file.on('finish', function() {
|
file.on('finish', function() {
|
||||||
file.close(cb); // close() is async, call cb after close completes.
|
file.close(cb); // close() is async, call cb after close completes.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*jshint esversion: 6, loopfunc: true */
|
/*jshint esversion: 6, loopfunc: true */
|
||||||
let fs = require('../core/fs.js');
|
let fs = require('../core/fs.js');
|
||||||
let async = require('async');
|
let async = require('async');
|
||||||
var Plugins = require('../core/plugins.js');
|
//var Plugins = require('../core/plugins.js');
|
||||||
var utils = require('../utils/utils.js');
|
var utils = require('../utils/utils.js');
|
||||||
var Npm = require('../pipeline/npm.js');
|
//var Npm = require('../pipeline/npm.js');
|
||||||
let currentWeb3Version = require('../../package.json').dependencies.web3.replace("^","");
|
//let currentWeb3Version = require('../../package.json').dependencies.web3.replace("^","");
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
|
|
||||||
class Pipeline {
|
class Pipeline {
|
||||||
@ -69,13 +69,13 @@ class Pipeline {
|
|||||||
{
|
{
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
use: [
|
use: [
|
||||||
{ loader: "style-loader" },
|
{loader: "style-loader"},
|
||||||
{ loader: "css-loader" }
|
{loader: "css-loader"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}).run((err, stats) => {
|
}).run((_err, _stats) => {
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -103,15 +103,15 @@ class Pipeline {
|
|||||||
{
|
{
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
use: [
|
use: [
|
||||||
{ loader: "style-loader" },
|
{loader: "style-loader"},
|
||||||
{ loader: "css-loader" }
|
{loader: "css-loader"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
use: [
|
use: [
|
||||||
{ loader: "style-loader" },
|
{loader: "style-loader"},
|
||||||
{ loader: "css-loader" }
|
{loader: "css-loader"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -120,13 +120,13 @@ class Pipeline {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}).run((err, stats) => {
|
}).run((_err, _stats) => {
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
], function(err, _result) {
|
], function(_err, _result) {
|
||||||
let fileContent = fs.readFileSync('./.embark/' + file.filename).toString();
|
let fileContent = fs.readFileSync('./.embark/' + file.filename).toString();
|
||||||
fileCb(null, {content: fileContent, filename: file.filename, path: file.path, modified: true});
|
fileCb(null, {content: fileContent, filename: file.filename, path: file.path, modified: true});
|
||||||
});
|
});
|
||||||
@ -364,9 +364,6 @@ class Pipeline {
|
|||||||
//
|
//
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
function (err, contentFiles) {
|
function (err, contentFiles) {
|
||||||
|
@ -46,7 +46,7 @@ class IPFS {
|
|||||||
|
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
], function (err, result) {
|
], function (err, _result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log("error uploading to ipfs".red);
|
console.log("error uploading to ipfs".red);
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global exit */
|
|
||||||
let path = require('path');
|
let path = require('path');
|
||||||
let globule = require('globule');
|
let globule = require('globule');
|
||||||
let merge = require('merge');
|
let merge = require('merge');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user