Skip to content

Commit

Permalink
[fixed] Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Apr 13, 2015
1 parent af1e0c9 commit 2111799
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion docs/server.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion docs/src/NavMain.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
1 change: 0 additions & 1 deletion ie8/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import express from 'express';
import path from 'path';
import webpack from 'webpack';
Expand Down
2 changes: 1 addition & 1 deletion tools/amd/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions tools/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -48,4 +47,3 @@ export default function Build(noExitOnFailure) {
return result;
}
}

3 changes: 1 addition & 2 deletions tools/dist/build.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
3 changes: 1 addition & 2 deletions tools/lib/build.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/changelog.js
Original file line number Diff line number Diff line change
@@ -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}`)
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/pre-conditions.js
Original file line number Diff line number Diff line change
@@ -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 --')
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/repo-release.js
Original file line number Diff line number Diff line change
@@ -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, '../../');
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/tag-and-publish.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/test.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tools/release-scripts/version-bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2111799

Please sign in to comment.