mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-22 18:38:23 +00:00
jshint it
This commit is contained in:
parent
03f81c47d7
commit
3a5891810a
@ -4,7 +4,7 @@ var Console = function(options) {
|
||||
};
|
||||
|
||||
Console.prototype.runCode = function(code) {
|
||||
eval(code);
|
||||
eval(code); // jshint ignore:line
|
||||
};
|
||||
|
||||
Console.prototype.executeCmd = function(cmd, callback) {
|
||||
@ -20,10 +20,10 @@ Console.prototype.executeCmd = function(cmd, callback) {
|
||||
return callback(helpText.join('\n'));
|
||||
} else if (cmd === 'quit') {
|
||||
exit();
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
var result = eval(cmd);
|
||||
var result = eval(cmd); // jshint ignore:line
|
||||
return callback(result);
|
||||
}
|
||||
catch(e) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
/* eslint-disable */
|
||||
"use strict";
|
||||
/*jshint esversion: 6 */
|
||||
|
||||
var blessed = require("blessed");
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
/*jshint esversion: 6, loopfunc: true */
|
||||
var fs = require('fs');
|
||||
var grunt = require('grunt');
|
||||
var mkdirp = require('mkdirp');
|
||||
@ -13,7 +14,7 @@ Pipeline.prototype.build = function(abi) {
|
||||
var self = this;
|
||||
for(var targetFile in this.assetFiles) {
|
||||
|
||||
var content = this.assetFiles[targetFile].map(function(file) {
|
||||
var content = this.assetFiles[targetFile].map(file => {
|
||||
self.logger.info("reading " + file.filename);
|
||||
if (file.filename === 'embark.js') {
|
||||
return file.content + "\n" + abi;
|
||||
|
14
lib/watch.js
14
lib/watch.js
@ -24,15 +24,15 @@ Watch.prototype.start = function() {
|
||||
});
|
||||
assetWatcher
|
||||
.on('add', path => {
|
||||
this.logger.info(`File ${path} has been added`)
|
||||
this.logger.info(`File ${path} has been added`);
|
||||
this.trigger('rebuildAssets', path);
|
||||
})
|
||||
.on('change', path => {
|
||||
this.logger.info(`File ${path} has been changed`)
|
||||
this.logger.info(`File ${path} has been changed`);
|
||||
this.trigger('rebuildAssets', path);
|
||||
})
|
||||
.on('unlink', path => {
|
||||
this.logger.info(`File ${path} has been removed`)
|
||||
this.logger.info(`File ${path} has been removed`);
|
||||
this.trigger('rebuildAssets', path);
|
||||
})
|
||||
.on('ready', () => this.logger.info('ready to watch changes'));
|
||||
@ -45,7 +45,7 @@ Watch.prototype.start = function() {
|
||||
});
|
||||
contractWatcher
|
||||
.on('add', path => {
|
||||
this.logger.info(`File ${path} has been added`)
|
||||
this.logger.info(`File ${path} has been added`);
|
||||
this.trigger('redeploy', path);
|
||||
})
|
||||
.on('change', path => {
|
||||
@ -61,15 +61,15 @@ Watch.prototype.start = function() {
|
||||
});
|
||||
configWatcher
|
||||
.on('add', path => {
|
||||
this.logger.info(`File ${path} has been added`)
|
||||
this.logger.info(`File ${path} has been added`);
|
||||
this.trigger('redeploy', path);
|
||||
})
|
||||
.on('change', path => {
|
||||
this.logger.info(`File ${path} has been changed`)
|
||||
this.logger.info(`File ${path} has been changed`);
|
||||
this.trigger('redeploy', path);
|
||||
})
|
||||
.on('unlink', path => {
|
||||
this.logger.info(`File ${path} has been removed`)
|
||||
this.logger.info(`File ${path} has been removed`);
|
||||
this.trigger('redeploy', path);
|
||||
})
|
||||
.on('ready', () => this.logger.info('ready to watch changes'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user