diff --git a/bin/now b/bin/now index 57247a5..75ef567 100755 --- a/bin/now +++ b/bin/now @@ -1,8 +1,13 @@ #!/usr/bin/env node +// Native +import {resolve} from 'path'; + +// Packages import minimist from 'minimist'; -import { resolve } from 'path'; -import { spawn } from 'cross-spawn'; +import {spawn} from 'cross-spawn'; + +// Ours import checkUpdate from '../lib/check-update'; const argv = minimist(process.argv.slice(2)); diff --git a/bin/now-alias b/bin/now-alias index bac59e7..0c02d69 100755 --- a/bin/now-alias +++ b/bin/now-alias @@ -1,10 +1,13 @@ #!/usr/bin/env node +// Packages import chalk from 'chalk'; import minimist from 'minimist'; import table from 'text-table'; -import strlen from '../lib/strlen'; import ms from 'ms'; + +// Ours +import strlen from '../lib/strlen'; import NowAlias from '../lib/alias'; import login from '../lib/login'; import * as cfg from '../lib/cfg'; diff --git a/bin/now-certs b/bin/now-certs index e2aa4f8..51f3c3a 100755 --- a/bin/now-certs +++ b/bin/now-certs @@ -1,16 +1,21 @@ #!/usr/bin/env node +// Native +import path from 'path'; + +// Packages import chalk from 'chalk'; import table from 'text-table'; -import strlen from '../lib/strlen'; import minimist from 'minimist'; -import * as cfg from '../lib/cfg'; -import { handleError, error } from '../lib/error'; -import NowCerts from '../lib/certs'; -import path from 'path'; import fs from 'fs-promise'; import ms from 'ms'; +// Ours +import strlen from '../lib/strlen'; +import * as cfg from '../lib/cfg'; +import {handleError, error} from '../lib/error'; +import NowCerts from '../lib/certs'; + const argv = minimist(process.argv.slice(2), { string: ['config', 'token', 'crt', 'key', 'ca'], boolean: ['help', 'debug'], diff --git a/bin/now-deploy b/bin/now-deploy index 79bb165..d21c5cf 100755 --- a/bin/now-deploy +++ b/bin/now-deploy @@ -1,21 +1,26 @@ #!/usr/bin/env node +// Native +import {resolve} from 'path'; + +// Packages import Progress from 'progress'; +import {stat} from 'fs-promise'; +import bytes from 'bytes'; +import chalk from 'chalk'; +import minimist from 'minimist'; +import ms from 'ms'; + +// Ours import copy from '../lib/copy'; -import { resolve } from 'path'; import login from '../lib/login'; -import { stat } from 'fs-promise'; import * as cfg from '../lib/cfg'; -import { version } from '../../package'; +import {version} from '../../package'; import Logger from '../lib/build-logger'; -import bytes from 'bytes'; -import chalk from 'chalk'; -import minimist from 'minimist'; import Now from '../lib'; import toHumanPath from '../lib/utils/to-human-path'; import promptOptions from '../lib/utils/prompt-options'; -import ms from 'ms'; -import { handleError, error } from '../lib/error'; +import {handleError, error} from '../lib/error'; const argv = minimist(process.argv.slice(2), { string: [ diff --git a/bin/now-domains b/bin/now-domains index 9b69dec..e8c624e 100755 --- a/bin/now-domains +++ b/bin/now-domains @@ -1,9 +1,12 @@ #!/usr/bin/env node +// Packages import chalk from 'chalk'; import minimist from 'minimist'; import table from 'text-table'; import ms from 'ms'; + +// Ours import login from '../lib/login'; import * as cfg from '../lib/cfg'; import { error } from '../lib/error'; diff --git a/bin/now-list b/bin/now-list index 481e8dc..b6fd058 100755 --- a/bin/now-list +++ b/bin/now-list @@ -1,15 +1,18 @@ #!/usr/bin/env node +// Packages import fs from 'fs-promise'; import minimist from 'minimist'; import chalk from 'chalk'; import table from 'text-table'; -import strlen from '../lib/strlen'; import ms from 'ms'; + +// Ours +import strlen from '../lib/strlen'; import Now from '../lib'; import login from '../lib/login'; import * as cfg from '../lib/cfg'; -import { handleError, error } from '../lib/error'; +import {handleError, error} from '../lib/error'; const argv = minimist(process.argv.slice(2), { string: ['config', 'token'], diff --git a/bin/now-remove b/bin/now-remove index f0eb9d7..d110ed1 100755 --- a/bin/now-remove +++ b/bin/now-remove @@ -1,13 +1,16 @@ #!/usr/bin/env node +// Packages import minimist from 'minimist'; import chalk from 'chalk'; import ms from 'ms'; import table from 'text-table'; + +// Ours import Now from '../lib'; import login from '../lib/login'; import * as cfg from '../lib/cfg'; -import { handleError, error } from '../lib/error'; +import {handleError, error} from '../lib/error'; const argv = minimist(process.argv.slice(2), { string: ['config', 'token'], diff --git a/bin/now-secrets b/bin/now-secrets index 7cca706..8b4d04d 100755 --- a/bin/now-secrets +++ b/bin/now-secrets @@ -1,13 +1,16 @@ #!/usr/bin/env node +// Packages import chalk from 'chalk'; import table from 'text-table'; -import strlen from '../lib/strlen'; import minimist from 'minimist'; +import ms from 'ms'; + +// Ours +import strlen from '../lib/strlen'; import * as cfg from '../lib/cfg'; -import { handleError, error } from '../lib/error'; +import {handleError, error} from '../lib/error'; import NowSecrets from '../lib/secrets'; -import ms from 'ms'; import login from '../lib/login'; const argv = minimist(process.argv.slice(2), {