Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(build): remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawilson committed Mar 28, 2017
1 parent 4b0e6a5 commit f689402
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 46 deletions.
8 changes: 0 additions & 8 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,15 @@ const path = require('path'),
/**
* Webpack Plugins
*/
// const AssetsPlugin = require('assets-webpack-plugin');
// const autoprefixer = require('autoprefixer');
// const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
// const CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
// const CopyWebpackPlugin = require('copy-webpack-plugin');
const DefinePlugin = require('webpack/lib/DefinePlugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
// const HtmlElementsPlugin = require('./html-elements-plugin');
const IgnorePlugin = require('webpack/lib/IgnorePlugin');
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
// const ngcWebpack = require('ngc-webpack');
const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin');
const OptimizeJsPlugin = require('optimize-js-plugin');
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
// const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin');
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');

// ExtractTextPlugin
Expand Down
40 changes: 8 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,45 +68,38 @@
"node": ">= 6.9.1",
"npm": ">= 3"
},
"dependencies": {},
"dependencies": {
"@angular/core": "2.4.9",
"@angular/http": "2.4.9",
"lodash": "4.17.4",
"ngx-base": "1.2.2",
"rxjs": "5.0.1"
},
"peerDependencies": {},
"devDependencies": {
"@angular/common": "2.4.9",
"@angular/compiler": "2.4.9",
"@angular/compiler-cli": "2.4.9",
"@angular/core": "2.4.9",
"@angular/forms": "2.4.9",
"@angular/http": "2.4.9",
"@angular/platform-browser": "2.4.9",
"@angular/platform-browser-dynamic": "2.4.9",
"@angular/router": "3.4.9",
"@krux/condition-jenkins": "1.0.1",
"@types/jasmine": "2.5.43",
"@types/lodash": "4.14.54",
"angular2-load-children-loader": "0.1.3",
"angular2-router-loader": "0.3.5",
"angular2-template-loader": "0.6.2",
"angular2-tree-component": "2.8.2",
"assets-webpack-plugin": "3.5.1",
"autoprefixer": "6.7.6",
"awesome-typescript-loader": "3.1.2",
"child_process": "1.0.2",
"clean-css": "4.0.8",
"clean-webpack-plugin": "0.1.15",
"codelyzer": "3.0.0-beta.3",
"copy-webpack-plugin": "4.0.1",
"copyfiles": "1.2.0",
"core-js": "2.4.1",
"cpy-cli": "1.0.1",
"css-loader": "0.26.2",
"css-to-string-loader": "0.1.2",
"cz-conventional-changelog": "2.0.0",
"del": "2.2.2",
"exports-loader": "0.6.4",
"expose-loader": "0.7.3",
"extract-text-webpack-plugin": "2.1.0",
"file-loader": "0.10.1",
"gh-pages": "0.12.0",
"gulp": "3.9.1",
"gulp-changed": "2.0.0",
"gulp-ngc": "0.2.0",
Expand All @@ -116,13 +109,12 @@
"gulp-uglify": "2.0.1",
"gulp-util": "3.0.8",
"html-loader": "0.4.5",
"html-minifier": "3.4.0",
"html-webpack-plugin": "2.28.0",
"husky": "0.13.2",
"imports-loader": "0.7.1",
"istanbul-instrumenter-loader": "2.0.0",
"jasmine-core": "2.5.2",
"json-loader": "0.5.4",
"json-stringify": "1.0.0",
"karma": "1.5.0",
"karma-chrome-launcher": "2.0.0",
"karma-cli": "1.0.1",
Expand All @@ -134,38 +126,23 @@
"karma-phantomjs-launcher": "1.0.2",
"karma-sourcemap-loader": "0.3.7",
"karma-webpack": "2.0.2",
"lodash": "4.17.4",
"mocha": "3.2.0",
"moment": "2.17.1",
"ng-router-loader": "2.1.0",
"ngx-base": "1.2.2",
"node-sass": "4.5.0",
"npm-run-all": "4.0.2",
"null-loader": "0.1.1",
"opt-cli": "1.5.1",
"optimize-js-plugin": "0.0.4",
"parse5": "2.2.3",
"phantomjs-prebuilt": "2.1.14",
"postcss-loader": "1.3.3",
"precss": "1.4.0",
"protractor": "5.1.1",
"raw-loader": "0.5.1",
"reflect-metadata": "0.1.10",
"resolve-url-loader": "2.0.2",
"rimraf": "2.6.1",
"rollup": "0.41.4",
"rollup-plugin-angular-aot": "0.0.4",
"run-sequence": "1.2.2",
"rxjs": "5.0.1",
"sass-loader": "6.0.3",
"script-ext-html-webpack-plugin": "1.7.1",
"semantic-release": "6.3.2",
"source-map-loader": "0.1.6",
"string-replace-loader": "1.0.5",
"style-loader": "0.13.2",
"to-string-loader": "1.1.5",
"ts-helpers": "1.1.2",
"ts-loader": "2.0.1",
"ts-node": "2.1.0",
"tslint": "4.5.1",
"tslint-loader": "3.4.3",
Expand All @@ -181,7 +158,6 @@
"webpack-dll-bundles-plugin": "1.0.0-beta.5",
"webpack-md5-hash": "0.0.5",
"webpack-merge": "3.0.0",
"webpack-validator": "2.3.0",
"zone.js": "0.7.7"
},
"release": {
Expand Down
4 changes: 2 additions & 2 deletions src/app/auth/authentication.service.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Injectable, Inject } from '@angular/core';
import { Http, Response, Headers, RequestOptions } from '@angular/http';

import { Observable } from 'rxjs';
import { Broadcaster } from 'ngx-base';

import { Token } from '../user/token';
import { AUTH_API_URL } from '../shared/auth-api';
import { Observable } from 'rxjs';
import { SSO_API_URL } from '../shared/sso-api';
import { Token } from '../user/token';

@Injectable()
export class AuthenticationService {
Expand Down
3 changes: 2 additions & 1 deletion src/app/user/alm-user-name.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { User } from './user';
import { Pipe, PipeTransform } from '@angular/core';

import { User } from './user';

// tslint:disable-next-line:use-pipe-transform-interface
@Pipe({ name: 'almUserName', pure: true })
export class AlmUserName implements PipeTransform {
Expand Down
11 changes: 8 additions & 3 deletions src/app/user/user.service.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { Injectable, Inject } from '@angular/core';
import { Headers, Http } from '@angular/http';
import { Observable, ConnectableObservable, ReplaySubject, Subject } from 'rxjs';

import {
Observable,
ConnectableObservable,
ReplaySubject,
Subject
} from 'rxjs';

import { cloneDeep } from 'lodash';
import { Broadcaster } from 'ngx-base';
import { Logger } from 'ngx-base';
import { Broadcaster, Logger } from 'ngx-base';

import { AUTH_API_URL } from '../shared/auth-api';
import { User } from './user';
Expand Down

0 comments on commit f689402

Please sign in to comment.