Skip to content

Commit 704a1ff

Browse files
committed
cleanup
1 parent f450bf2 commit 704a1ff

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

lib/cmd.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
let program = require('commander');
2-
let colors = require('colors');
3-
let shelljs = require('shelljs');
4-
let promptly = require('promptly');
5-
let path = require('path');
1+
const program = require('commander');
2+
const promptly = require('promptly');
63
const Embark = require('../lib/index');
74
let embark = new Embark;
85

@@ -30,11 +27,11 @@ class Cmd {
3027
program.parse(args);
3128
}
3229

33-
newApp(name) {
30+
newApp() {
3431

3532
let validateName = function (value) {
3633
try {
37-
if (value.match(/^[a-zA-Z\s\-]+$/)) return value;
34+
if (value.match(/^[a-zA-Z\s-]+$/)) return value;
3835
} catch (e) {
3936
throw new Error('Name must be only letters, spaces, or dashes');
4037
}
@@ -79,7 +76,7 @@ class Cmd {
7976
program
8077
.command('build [environment]')
8178
.description('deploy and build dapp at dist/ (default: development)')
82-
.action(function (env, options) {
79+
.action(function (env, _options) {
8380
embark.build({env: env || 'development'});
8481
});
8582
}
@@ -150,7 +147,7 @@ class Cmd {
150147
program
151148
.command('upload [platform] [environment]')
152149
.description('upload your dapp to a decentralized storage. possible options: ipfs, swarm (e.g embark upload swarm)')
153-
.action(function (platform, env, options) {
150+
.action(function (platform, env, _options) {
154151
// TODO: get env in cmd line as well
155152
embark.initConfig(env || 'development', {
156153
embarkConfig: 'embark.json', interceptLogs: false

lib/cmds/blockchain/blockchain.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var colors = require('colors');
21
var shelljs = require('shelljs');
32

43
var fs = require('../../core/fs.js');

0 commit comments

Comments
 (0)