diff --git a/docs/build.js b/docs/build.js index 942995a5d8..09fd145dfd 100644 --- a/docs/build.js +++ b/docs/build.js @@ -5,7 +5,7 @@ import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; const repoRoot = path.resolve(__dirname, '../'); const docsBuilt = path.join(repoRoot, 'docs-built'); diff --git a/docs/server.js b/docs/server.js index 6093bc0565..8953f6c09c 100644 --- a/docs/server.js +++ b/docs/server.js @@ -1,7 +1,6 @@ import React from 'react'; import express from 'express'; import path from 'path'; -import url from 'url'; import webpack from 'webpack'; import webpackMiddleware from 'webpack-dev-middleware'; import webpackConfigBuilder from '../webpack/webpack.config'; diff --git a/docs/src/NavMain.js b/docs/src/NavMain.js index 4ec0218027..a91beb2a6d 100644 --- a/docs/src/NavMain.js +++ b/docs/src/NavMain.js @@ -1,5 +1,5 @@ import React from 'react'; -import Router, { Link } from 'react-router'; +import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; diff --git a/ie8/server.js b/ie8/server.js index 0796f23bff..da4fdd2a7c 100644 --- a/ie8/server.js +++ b/ie8/server.js @@ -1,4 +1,3 @@ -import React from 'react'; import express from 'express'; import path from 'path'; import webpack from 'webpack'; diff --git a/tools/amd/build.js b/tools/amd/build.js index 7d06d527d2..94919f78e6 100644 --- a/tools/amd/build.js +++ b/tools/amd/build.js @@ -2,7 +2,7 @@ import _ from 'lodash'; import path from 'path'; import fsp from 'fs-promise'; import { copy } from '../fs-utils'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; const repoRoot = path.resolve(__dirname, '../../'); const amd = path.join(repoRoot, 'amd'); diff --git a/tools/build.js b/tools/build.js index 0873cfac2c..13051de53b 100644 --- a/tools/build.js +++ b/tools/build.js @@ -7,7 +7,6 @@ import lib from './lib/build'; import docs from '../docs/build'; import dist from './dist/build'; import { copy } from './fs-utils'; -import { exec, spawn } from 'child-process-promise'; import yargs from 'yargs'; @@ -48,4 +47,3 @@ export default function Build(noExitOnFailure) { return result; } } - diff --git a/tools/dist/build.js b/tools/dist/build.js index e3a15536e3..9ad329f37f 100644 --- a/tools/dist/build.js +++ b/tools/dist/build.js @@ -1,6 +1,5 @@ import path from 'path'; -import fsp from 'fs-promise'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; const repoRoot = path.resolve(__dirname, '../../'); const dist = path.join(repoRoot, 'dist'); diff --git a/tools/lib/build.js b/tools/lib/build.js index 01adeb9164..3281a33be1 100644 --- a/tools/lib/build.js +++ b/tools/lib/build.js @@ -1,7 +1,6 @@ import from 'colors'; import path from 'path'; -import fsp from 'fs-promise'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; const repoRoot = path.resolve(__dirname, '../../'); const lib = path.join(repoRoot, 'lib'); diff --git a/tools/release-scripts/changelog.js b/tools/release-scripts/changelog.js index b1f67ea6c0..232e6381ba 100644 --- a/tools/release-scripts/changelog.js +++ b/tools/release-scripts/changelog.js @@ -1,6 +1,6 @@ import from 'colors'; import path from 'path'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; export default (repoRoot, version) => { return exec(`node_modules/.bin/changelog -t v${version}`) diff --git a/tools/release-scripts/pre-conditions.js b/tools/release-scripts/pre-conditions.js index 8d727f628a..4129d8b92e 100644 --- a/tools/release-scripts/pre-conditions.js +++ b/tools/release-scripts/pre-conditions.js @@ -1,5 +1,5 @@ import from 'colors'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; function ensureClean() { return exec('git diff-index --name-only HEAD --') diff --git a/tools/release-scripts/release.js b/tools/release-scripts/release.js index 45b07e3bfd..413f47376a 100644 --- a/tools/release-scripts/release.js +++ b/tools/release-scripts/release.js @@ -2,7 +2,7 @@ import path from 'path'; import yargs from 'yargs'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; import preConditions from './pre-conditions'; import versionBump from './version-bump'; diff --git a/tools/release-scripts/repo-release.js b/tools/release-scripts/repo-release.js index e798fe8bf9..b990a7b0dc 100644 --- a/tools/release-scripts/repo-release.js +++ b/tools/release-scripts/repo-release.js @@ -1,7 +1,7 @@ import from 'colors'; import path from 'path'; import fsp from 'fs-promise'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; import { copy } from '../fs-utils'; const repoRoot = path.resolve(__dirname, '../../'); diff --git a/tools/release-scripts/tag-and-publish.js b/tools/release-scripts/tag-and-publish.js index 4dc3fcaf28..50692cc521 100644 --- a/tools/release-scripts/tag-and-publish.js +++ b/tools/release-scripts/tag-and-publish.js @@ -1,4 +1,4 @@ -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; export default (version) => { console.log('Releasing: '.cyan + 'npm module'.green); diff --git a/tools/release-scripts/test.js b/tools/release-scripts/test.js index c5658877ab..f3ff17c37a 100644 --- a/tools/release-scripts/test.js +++ b/tools/release-scripts/test.js @@ -1,5 +1,5 @@ import from 'colors'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; function test() { console.log('Running: '.cyan + 'tests'.green); diff --git a/tools/release-scripts/version-bump.js b/tools/release-scripts/version-bump.js index 785b3e262f..1afd44e81f 100644 --- a/tools/release-scripts/version-bump.js +++ b/tools/release-scripts/version-bump.js @@ -2,7 +2,7 @@ import from 'colors'; import path from 'path'; import fsp from 'fs-promise'; import semver from 'semver'; -import { exec, spawn } from 'child-process-promise'; +import { exec } from 'child-process-promise'; export default function(repoRoot, { preid, type }) { const packagePath = path.join(repoRoot, 'package.json');